Nuevo plugin Additionals 2.0.20
This commit is contained in:
parent
a2a901b71b
commit
93e1e28683
354 changed files with 40514 additions and 0 deletions
16
plugins/additionals/app/views/wiki/_cryptocompare.html.slim
Executable file
16
plugins/additionals/app/views/wiki/_cryptocompare.html.slim
Executable file
|
@ -0,0 +1,16 @@
|
|||
.cryptocompare
|
||||
javascript:
|
||||
var scripts = document.getElementsByTagName("script");
|
||||
var embedder = scripts[scripts.length - 1];
|
||||
(function() {
|
||||
var appName = encodeURIComponent(window.location.hostname);
|
||||
if (appName == "") {
|
||||
appName = "local";
|
||||
}
|
||||
var s = document.createElement("script");
|
||||
s.type = "text/javascript";
|
||||
s.async = true;
|
||||
var theUrl = "#{raw url}";
|
||||
s.src = theUrl + (theUrl.indexOf("?") >= 0 ? "&" : "?") + "app=" + appName;
|
||||
embedder.parentNode.appendChild(s);
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue