Skip to content

Commit

Permalink
Merge pull request fancoder#22 from pmitchev/master
Browse files Browse the repository at this point in the history
Use /config.json:symbol option to define currencies rate in /website/config.js
  • Loading branch information
fancoder committed Sep 1, 2014
2 parents c822d8a + 5d50b35 commit 20952dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion website/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var irc = "irc.freenode.net/#poolhost";

var email = "[email protected]";

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/";

Expand Down
1 change: 1 addition & 0 deletions website/pages/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ <h4 class="yourStats">Payments</h4>
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;
Expand Down

0 comments on commit 20952dc

Please sign in to comment.