Merge pull request #22 from pmitchev/master
Use /config.json:symbol option to define currencies rate in /website/config.jspull/23/head
commit
20952dc94f
|
@ -6,7 +6,7 @@ var irc = "irc.freenode.net/#poolhost";
|
|||
|
||||
var email = "support@poolhost.com";
|
||||
|
||||
var cryptonatorWidget = ["XDN-BTC", "XDN-USD", "XDN-EUR"];
|
||||
var cryptonatorWidget = ["{symbol}-BTC", "{symbol}-USD", "{symbol}-EUR"];
|
||||
|
||||
var easyminerDownload = "https://github.com/zone117x/cryptonote-easy-miner/releases/";
|
||||
|
||||
|
|
|
@ -401,6 +401,7 @@
|
|||
var marketsData = [];
|
||||
for (var i = 0; i < cryptonatorWidget.length; i++){
|
||||
(function(i){
|
||||
cryptonatorWidget[i] = cryptonatorWidget[i].replace('{symbol}', lastStats.config.symbol.toLowerCase());
|
||||
xhrMarketGets[cryptonatorWidget[i]] = $.get('https://www.cryptonator.com/api/ticker/' + cryptonatorWidget[i], function(data){
|
||||
if(data.error) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue