MediaWiki:Skin/Projekt:Adventure2/init.js: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
J* (Diskussion | Beiträge) |
J* (Diskussion | Beiträge) |
||
Zeile 6: | Zeile 6: | ||
} | } | ||
}); | }); | ||
+ | |||
+ | window.setInterval(function () { | ||
+ | if ( a2.latestHash != location.hash) { | ||
+ | $("#a2loader").show(); | ||
+ | a2.stateDecode(a2.crypt(location.hash.substr(1))) | ||
+ | } | ||
+ | }, 1000); |
Version vom 10. Juli 2012, 22:07 Uhr
$(function(){
if (location.hash.length > 1) {
a2.stateDecode(a2.crypt(location.hash.substr(1)));
} else {
a2.loadPage(1);
}
});
window.setInterval(function () {
if ( a2.latestHash != location.hash) {
$("#a2loader").show();
a2.stateDecode(a2.crypt(location.hash.substr(1)))
}
}, 1000);