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

aus Kamelopedia, der wüsten Enzyklopädie
Zur Navigation springen Zur Suche springen
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);