/ ‘grepolis.user.js’
This commit is contained in:
parent
7e5e77b63e
commit
c387609cc8
@ -80,16 +80,6 @@
|
||||
|
||||
|
||||
for(var town_id in farm_ids) {
|
||||
var town_countdown = document.createElement("span");
|
||||
town_countdown.textContent = "" + ITowns.getTown(town_id).name + ":";
|
||||
timerWindow.append(town_countdown);
|
||||
farm_ids[town_id].forEach(function(xFarmId) {
|
||||
var tmout = 20000 + rand(10);
|
||||
setTimeout(getWaresTick(town_id, xFarmId), tmout);
|
||||
var tmoutId = 'farm-' + xFarmId
|
||||
$(town_countdown).append('<span id="' + tmoutId + '"><script>j_countdown(' + Math.floor(tmout/1000) + ', "' + tmoutId + '");</script></span>, ');
|
||||
});
|
||||
|
||||
HelperTown.townSwitch(town_id);
|
||||
HelperTown.handleInfoWindowJumpToTownClick();
|
||||
var farmtowns = $(".farmtown_owned_on_same_island");
|
||||
@ -97,11 +87,22 @@
|
||||
var farmtownId = farmtown["id"].split("_")[2];
|
||||
farm_ids[town_id].push(+farmtownId);
|
||||
});
|
||||
|
||||
|
||||
$(town_countdown).append('<br />');
|
||||
}
|
||||
|
||||
setTimeout(function() {
|
||||
for(var town_id in farm_ids) {
|
||||
var town_countdown = document.createElement("span");
|
||||
town_countdown.textContent = "" + ITowns.getTown(town_id).name + ":";
|
||||
timerWindow.append(town_countdown);
|
||||
farm_ids[town_id].forEach(function(xFarmId) {
|
||||
var tmout = 20000 + rand(10);
|
||||
setTimeout(getWaresTick(town_id, xFarmId), tmout);
|
||||
var tmoutId = 'farm-' + xFarmId
|
||||
$(town_countdown).append('<span id="' + tmoutId + '"><script>j_countdown(' + Math.floor(tmout/1000) + ', "' + tmoutId + '");</script></span>, ');
|
||||
});
|
||||
$(town_countdown).append('<br />');
|
||||
}
|
||||
}, 5000);
|
||||
|
||||
$("#gpwnd_" + logGPWindow.getID()).parent().parent().find(".ui-dialog-titlebar").empty().append("<select id=choosefarmduration><option value=-1>disable</option><option value=300 selected>5min</option><option value=600>10min</option><option value=1200>20min</option><option value=2400>40min</option><option value=5400>90min</option><option value=10800>3h</option><option value=14400>4h</option><option value=28800>8h</option></select>" + GM_info.script.version);
|
||||
var choose = $("#choosefarmduration")[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user