Indent + convert emojis to code form.

This commit is contained in:
Kasen IO 2020-06-30 19:33:42 -04:00
parent 16ef73c6f7
commit c99a62b719

View file

@ -182,22 +182,22 @@
case ext == "GIF": case ext == "GIF":
case ext == "JPEG": case ext == "JPEG":
elContent = elContent.replace(this, "<br/><img src='" + this elContent = elContent.replace(this, "<br/><img src='" + this
+ "'class=\"responsive z-depth-2\"><br/><a href=\"javascript:gotoClipboard('" + this + "');\" target='_blank'>" + this + "'class=\"responsive z-depth-2\"><br/><a href=\"javascript:gotoClipboard('" + this + "');\" target='_blank'>" + this
+ "</a><a onclick=\"gotoExternalURL('" + this + "</a><a onclick=\"gotoExternalURL('" + this
+ "');return false;\"href=\"" + this + "');return false;\"href=\"" + this
+ "\">📲</a>"); + "\">&#x1F4F2;</a>");
break; break;
case ext == "iframe": case ext == "iframe":
elContent = elContent.replace(this, "<br/><iframe class=\"z-depth-2\" src='" + this elContent = elContent.replace(this, "<br/><iframe class=\"z-depth-2\" src='" + this
+ "'width=\"440\" height=\"248\" frameborder=\"0\"></iframe>"); + "'width=\"440\" height=\"248\" frameborder=\"0\"></iframe>");
break; break;
case ext == "webm": case ext == "webm":
elContent = elContent.replace(this, "<br/><video controls class=\"z-depth-2 responsive\"><source src='" + this elContent = elContent.replace(this, "<br/><video controls class=\"z-depth-2 responsive\"><source src='" + this
+ "' type='video/" + ext + "'></video><br/><a href=\"javascript:gotoClipboard('" + this + "' type='video/" + ext + "'></video><br/><a href=\"javascript:gotoClipboard('" + this
+ "');\">" + this + "');\">" + this
+ "</a><a onclick=\"gotoExternalURL('" + this + "</a><a onclick=\"gotoExternalURL('" + this
+ "');return false;\"href=\"" + this + "');return false;\"href=\"" + this
+ "\">📲</a>"); + "\">&#x1F4F2;</a>");
break; break;
case protocol === "HIFI": case protocol === "HIFI":
case protocol === "hifi": case protocol === "hifi":
@ -207,21 +207,21 @@
var youtubeMatch = this.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/); var youtubeMatch = this.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);
if (youtubeMatch && youtubeMatch[2].length == 11) { if (youtubeMatch && youtubeMatch[2].length == 11) {
elContent = "<br/><iframe class=\"z-depth-2\" width='420' height='236' src='https://www.youtube.com/embed/" + youtubeMatch[2] elContent = "<br/><iframe class=\"z-depth-2\" width='420' height='236' src='https://www.youtube.com/embed/" + youtubeMatch[2]
+ "' frameborder='0'></iframe><br/><a href=\"javascript:gotoURL('" + this + "' frameborder='0'></iframe><br/><a href=\"javascript:gotoURL('" + this
+ "');\">" + this + "');\">" + this
+ "</a><a onclick=\"gotoExternalURL('" + this + "</a><a onclick=\"gotoExternalURL('" + this
+ "');return false;\"href=\"" + this + "');return false;\"href=\"" + this
+ "\">📲</a>"; + "\">&#x1F4F2;</a>";
break; break;
} }
// else fall through to default // else fall through to default
default: default:
elContent = elContent.replace(this, "<br/><a onclick=\"gotoURL('" + this elContent = elContent.replace(this, "<br/><a onclick=\"gotoURL('" + this
+ "');return false;\" href=\"" + this + "');return false;\" href=\"" + this
+ "\">" + this + "\">" + this
+ "</a><a onclick=\"gotoExternalURL('" + this + "</a><a onclick=\"gotoExternalURL('" + this
+ "');return false;\"href=\"" + this + "');return false;\"href=\"" + this
+ "\">📲</a>"); + "\">&#x1F4F2;</a>");
break; break;
} }