/ ‘grepolis.user.js’
This commit is contained in:
parent
46efaaa006
commit
ddb30e8c95
@ -40,6 +40,27 @@
|
|||||||
"top": "auto"
|
"top": "auto"
|
||||||
});
|
});
|
||||||
logWindowElement.empty();
|
logWindowElement.empty();
|
||||||
|
|
||||||
|
var s = document.createElement("script");
|
||||||
|
s.type = "text/javascript";
|
||||||
|
s.innerHTML = '
|
||||||
|
function countdown(time, id){
|
||||||
|
t = time;
|
||||||
|
|
||||||
|
h = Math.floor(t/(60*60)) % 24;
|
||||||
|
m = Math.floor(t/60) %60;
|
||||||
|
s = t %60;
|
||||||
|
|
||||||
|
h = (h < 10) ? "0"+h : h;
|
||||||
|
m = (m < 10) ? "0"+m : m;
|
||||||
|
s = (s < 10) ? "0"+s : s;
|
||||||
|
|
||||||
|
strZeit = h + ":" + m + ":" + s;
|
||||||
|
|
||||||
|
window.setTimeout(\'countdown(\'+ --time+\',\\\'\'+id+\'\\\')\',1000);
|
||||||
|
document.getElementById(id).innerHTML = strZeit;
|
||||||
|
}';
|
||||||
|
document.getElementsByTagName("head")[0].appendChild(s);
|
||||||
|
|
||||||
farm_ids.forEach(function(xFarmId) {
|
farm_ids.forEach(function(xFarmId) {
|
||||||
var tmout = 5000 + rand(5);
|
var tmout = 5000 + rand(5);
|
||||||
@ -156,26 +177,4 @@
|
|||||||
function buttonIsInitialized() {
|
function buttonIsInitialized() {
|
||||||
return typeof(btn) != "undefined" && btn != null && btn[0] != null;
|
return typeof(btn) != "undefined" && btn != null && btn[0] != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var s = document.createElement("script");
|
|
||||||
s.type = "text/javascript";
|
|
||||||
s.innerHTML = '
|
|
||||||
function countdown(time, id){
|
|
||||||
t = time;
|
|
||||||
|
|
||||||
h = Math.floor(t/(60*60)) % 24;
|
|
||||||
m = Math.floor(t/60) %60;
|
|
||||||
s = t %60;
|
|
||||||
|
|
||||||
h = (h < 10) ? "0"+h : h;
|
|
||||||
m = (m < 10) ? "0"+m : m;
|
|
||||||
s = (s < 10) ? "0"+s : s;
|
|
||||||
|
|
||||||
strZeit = h + ":" + m + ":" + s;
|
|
||||||
|
|
||||||
window.setTimeout(\'countdown(\'+ --time+\',\\\'\'+id+\'\\\')\',1000);
|
|
||||||
document.getElementById(id).innerHTML = strZeit;
|
|
||||||
}'
|
|
||||||
document.getElementsByTagName("head")[0].appendChild(s);
|
|
||||||
})()
|
})()
|
Loading…
x
Reference in New Issue
Block a user