Magomed,
$(function() {
var a = $.getJSON("http://etps.mole-pool.net/api/stats").done(function(data) {
etpssh_r = data.hashrate;
etpsminer = data.minersTotal;
etpsexp = etpssh_r * 0.000001;
document.getElementById('etpsHR').innerHTML = etpsexp.toFixed(3);
document.getElementById('etpsMR').innerHTML = etpsminer;
});
var b = $.getJSON("http://vic.mole-pool.net/api/stats").done(function(data) {
vich_r = data.hashrate;
vicminer = data.minersTotal;
vicexp = vich_r * 0.000001;
document.getElementById('vicHR').innerHTML = vicexp.toFixed(3);
document.getElementById('vicMR').innerHTML = vicminer;
});
var c = $.getJSON("http://aura.mole-pool.net/api/stats").done(function(data) {
aurach_r = data.hashrate;
auraminer = data.minersTotal;
auraexp = aurach_r * 0.000001;
document.getElementById('auraHR').innerHTML = auraexp.toFixed(3);
document.getElementById('auraMR').innerHTML = auraminer;
});
$.when( a, b, c ).done(function( a, b, c ) {
var data = a[0].hashrate + b[0].hashrate + c[0].hashrate;
alert( data );
});
});