Conflict with Cryptocompare script
-
Dear M,
I get a conflict when I add the following script to a wordpress widget in my sidebar.
<script type=”text/javascript”>
baseUrl = “https://widgets.cryptocompare.com/”;
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 = baseUrl+’serve/v1/coin/multi?fsyms=BTC,ETH,BCH,XMR,LTC,DASH,XRP&tsyms=BTC,EUR,USD,GBP’;
s.src = theUrl + ( theUrl.indexOf(“?”) >= 0 ? “&” : “?”) + “app=” + appName;
embedder.parentNode.appendChild(s);
})();
</script>Kind regards,
Webagent05
The page I need help with: [log in to see the link]
- The topic ‘Conflict with Cryptocompare script’ is closed to new replies.