/ ‘grepolis.user.js’
This commit is contained in:
parent
04abbc8571
commit
9f3faafe36
@ -40,6 +40,9 @@
|
|||||||
"top": "auto"
|
"top": "auto"
|
||||||
});
|
});
|
||||||
logWindowElement.empty();
|
logWindowElement.empty();
|
||||||
|
logWindowElement.append('<div id="timerwindow" /><div id="logwindow">');
|
||||||
|
logWindow = $("#logwindow");
|
||||||
|
timerWindow = $("#timerwindow");
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
var s = document.createElement("script");
|
var s = document.createElement("script");
|
||||||
@ -59,7 +62,7 @@
|
|||||||
var tmout = 5000 + rand(5);
|
var tmout = 5000 + rand(5);
|
||||||
setTimeout(getWaresTick(xFarmId), tmout);
|
setTimeout(getWaresTick(xFarmId), tmout);
|
||||||
var tmoutId = 'farm-' + xFarmId
|
var tmoutId = 'farm-' + xFarmId
|
||||||
logWindowElement.append('Farm ID ' + xFarmId + ': <span id="' + tmoutId + '"><script>j_countdown(' + Math.floor(tmout/1000) + ', "' + tmoutId + '");</script></span><br />');
|
timerWindow.append('Farm ID ' + xFarmId + ': <span id="' + tmoutId + '"><script>j_countdown(' + Math.floor(tmout/1000) + ', "' + 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>");
|
$("#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>");
|
||||||
@ -73,8 +76,8 @@
|
|||||||
function log(xText) {
|
function log(xText) {
|
||||||
var date = new Date(); // Timestamp to prepend
|
var date = new Date(); // Timestamp to prepend
|
||||||
var timestamp = new Date(date.getTime() - (date.getTimezoneOffset() * 60000)).toJSON();
|
var timestamp = new Date(date.getTime() - (date.getTimezoneOffset() * 60000)).toJSON();
|
||||||
logWindowElement.append('<span title="' + timestamp +'">' + xText + "</span><br />");
|
logWindow.append('<span title="' + timestamp +'">' + xText + "</span><br />");
|
||||||
logWindowElement.scrollTop(logWindowElement[0].scrollHeight);
|
logWindow.scrollTop(logWindow[0].scrollHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
function rand(min, max) {
|
function rand(min, max) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user