MediaWiki:Common.js

De Bitcoin Wiki
Ir para: navegação, pesquisa

Nota: Após gravar, terá de limpar a cache do seu navegador para ver as alterações.

  • Firefox / Safari: Pressione Shift enquanto clica Recarregar, ou pressione Ctrl-F5 ou Ctrl-R (⌘-R no Mac)
  • Google Chrome: Pressione Ctrl-Shift-R (⌘-Shift-R no Mac)
  • Internet Explorer: Pressione Ctrl enquanto clica Recarregar, ou pressione Ctrl-F5
  • Opera: Limpe a cache em Ferramentas → Preferências (Tools → Preferences)
/* Código Javascript colocado aqui será carregado para todos os utilizadores em cada carregamento de página */
var myElement = document.getElementById('coinmarketcap-ether');
if (myElement !== null) {
 myElement.innerHTML = '<div class="coinmarketcap-currency-widget" data-currency="ethereum" data-base="USD"  data-secondary="BTC"></div>';
 var s = document.createElement("script");
 s.type = "text/javascript";
 s.src = "https://files.coinmarketcap.com/static/widget/currency.js";
 document.body.appendChild(s);
}

var myElement1 = document.getElementById('coinmarketcap-waves');
if (myElement1 !== null) {
 myElement1.innerHTML = '<div class="coinmarketcap-currency-widget" data-currency="waves" data-base="USD"  data-secondary="BTC"></div>';
 var m = document.createElement("script");
 m.type = "text/javascript";
 m.src = "https://files.coinmarketcap.com/static/widget/currency.js";
 document.body.appendChild(m);
}

var myElement2 = document.getElementById('coinmarketcap-bitcoin');
if (myElement2 !== null) {
 myElement2.innerHTML = '<div class="coinmarketcap-currency-widget" data-currency="bitcoin" data-base="USD"  data-secondary="BTC"></div>';
 var m = document.createElement("script");
 m.type = "text/javascript";
 m.src = "https://files.coinmarketcap.com/static/widget/currency.js";
 document.body.appendChild(m);
}

var myElement3 = document.getElementById('coinmarketcap-whitecoin');
if (myElement3 !== null) {
 myElement3.innerHTML = '<div class="coinmarketcap-currency-widget" data-currency="whitecoin" data-base="USD"  data-secondary="BTC"></div>';
 var m = document.createElement("script");
 m.type = "text/javascript";
 m.src = "https://files.coinmarketcap.com/static/widget/currency.js";
 document.body.appendChild(m);
}

var myElement4 = document.getElementById('coinmarketcap-particl');
if (myElement4 !== null) {
 myElement4.innerHTML = '<div class="coinmarketcap-currency-widget" data-currency="particl" data-base="USD"  data-secondary="BTC"></div>';
 var m = document.createElement("script");
 m.type = "text/javascript";
 m.src = "https://files.coinmarketcap.com/static/widget/currency.js";
 document.body.appendChild(m);
}