MediaWiki:Skin/Projekt:Adventure2/init.js: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
J* (Diskussion | Beiträge) |
J* (Diskussion | Beiträge) (umgestellt auf kp.loader) |
||
Zeile 1: | Zeile 1: | ||
− | $(function(){ | + | kp.loader.using(["[[MediaWiki:Skin/Projekt:Adventure2/lib.js]]", $().ready], function(){ |
if (location.hash.length > 1) { | if (location.hash.length > 1) { | ||
a2.stateDecode(a2.crypt(location.hash.substr(1))); | a2.stateDecode(a2.crypt(location.hash.substr(1))); | ||
Zeile 7: | Zeile 7: | ||
}); | }); | ||
− | + | kp.loader.using(["[[MediaWiki:Skin/Projekt:Adventure2/lib.js]]"], function(){ | |
− | + | window.setInterval(function () { | |
− | + | if ( a2.latestHash != location.hash) { | |
− | + | $("#a2loader").show(); | |
− | + | a2.stateDecode(a2.crypt(location.hash.substr(1))) | |
− | + | } | |
+ | }, 1000); | ||
+ | }); |
Version vom 22. Juli 2015, 22:02 Uhr
kp.loader.using(["[[MediaWiki:Skin/Projekt:Adventure2/lib.js]]", $().ready], function(){
if (location.hash.length > 1) {
a2.stateDecode(a2.crypt(location.hash.substr(1)));
} else {
a2.loadPage(1);
}
});
kp.loader.using(["[[MediaWiki:Skin/Projekt:Adventure2/lib.js]]"], function(){
window.setInterval(function () {
if ( a2.latestHash != location.hash) {
$("#a2loader").show();
a2.stateDecode(a2.crypt(location.hash.substr(1)))
}
}, 1000);
});