BipCoin web widget

Share

thanks @KittyCatTech
Code to put ’em on your site is below example. ProTip:
If you want to make the widget smaller put it in a fixed width (in px) or % <div>
i.e.
<div style=”width:250px;”>

BIP/BTC (BipCoin Price in Bitcoin BTC):

Code:
<script type="text/javascript">
baseUrl = "https://widgets.cryptocompare.com/";
var scripts = document.getElementsByTagName("script");
var embedder = scripts[ scripts.length - 1 ];
var cccTheme = {"Header":{"displayFollowers":false},"Followers":{"color":"#6b55d1"},"Chart":{"borderColor":"#6b55d1"}};
(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/v2/coin/chart?fsym=BIP&tsym=BTC&period=1W';
s.src = theUrl + ( theUrl.indexOf("?") >= 0 ? "&" : "?") + "app=" + appName;
embedder.parentNode.appendChild(s);
})();
</script>

BIP/USD (BipCoin Price in US Dollars):

Code:
<script type="text/javascript">
baseUrl = "https://widgets.cryptocompare.com/";
var scripts = document.getElementsByTagName("script");
var embedder = scripts[ scripts.length - 1 ];
var cccTheme = {"Header":{"displayFollowers":false},"Followers":{"color":"#6b55d1"},"Chart":{"borderColor":"#6b55d1"}};
(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/v2/coin/chart?fsym=BIP&tsym=USD&period=1W';
s.src = theUrl + ( theUrl.indexOf("?") >= 0 ? "&" : "?") + "app=" + appName;
embedder.parentNode.appendChild(s);
})();
</script>

Leave a Comment

Your email address will not be published. Required fields are marked *