diff --git a/grepolis.user.js b/grepolis.user.js index c8b77f0..9c50d07 100644 --- a/grepolis.user.js +++ b/grepolis.user.js @@ -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('
'); - }) - $("#ui-id-1").empty().append(""); 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('
'); + }); })() \ No newline at end of file