MediaWiki:Skin/Projekt:Adventure2/init.js: Unterschied zwischen den Versionen

aus Kamelopedia, der wüsten Enzyklopädie
Zur Navigation springen Zur Suche springen
(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:
 
  });
 
  });
  
window.setInterval(function () {
+
kp.loader.using(["[[MediaWiki:Skin/Projekt:Adventure2/lib.js]]"], function(){
  if ( a2.latestHash != location.hash) {
+
window.setInterval(function () {
    $("#a2loader").show();
+
  if ( a2.latestHash != location.hash) {
    a2.stateDecode(a2.crypt(location.hash.substr(1)))
+
    $("#a2loader").show();
    }
+
    a2.stateDecode(a2.crypt(location.hash.substr(1)))
}, 1000);
+
    }
 +
}, 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);
});