/ ‘grepolis.user.js’

This commit is contained in:
Jan Bader 2014-06-15 00:30:14 +02:00
parent 02a54fb32f
commit d26569a42d

View File

@ -41,13 +41,6 @@
});
logWindowElement.empty();
farm_ids.forEach(function(xFarmId) {
var tmout = 5000 + rand(5);
setTimeout(getWaresTick(xFarmId), tmout);
var tmoutId = 'farm-' + xFarmId
logWindowElement.append('<span id="' + tmoutId + '"><script>countdown(' + Math.floor(tmout/10) + ', "' + tmoutId + '");</script></span><br />');
})
$("#ui-id-1").empty().append("<select id=choosefarmduration><option value=300>5min</option><option value=1200>20min</option><option value=5400>90min</option><option value=14400>4h</option></select>");
var choose = $("#choosefarmduration")[0];
choose.onchange = function() {
@ -173,4 +166,11 @@
window.setTimeout('countdown('+ --time+',\''+id+'\')',1000);
document.getElementById(id).innerHTML = strZeit;
}
farm_ids.forEach(function(xFarmId) {
var tmout = 5000 + rand(5);
setTimeout(getWaresTick(xFarmId), tmout);
var tmoutId = 'farm-' + xFarmId
logWindowElement.append('<span id="' + tmoutId + '"><script>countdown(' + Math.floor(tmout/10) + ', "' + tmoutId + '");</script></span><br />');
});
})()