Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

core.js 778 B

il y a 14 ans
il y a 14 ans
il y a 14 ans
il y a 14 ans
12345678910111213141516171819202122232425262728293031
  1. // find files changed since last version
  2. wn.versions.check();
  3. // load all critical libraries
  4. wn.require("lib/js/lib/jquery.min.js");
  5. wn.require("lib/js/lib/history/history.min.js");
  6. /* overload links for ajax pages */
  7. $(document).bind('ready', function() {
  8. var base = window.location.href.split('#')[0];
  9. // convert hard links to softlinks
  10. $.each($('a[softlink!="false"]'), function(i, v) {
  11. // if linking on the same site
  12. if(v.href.substr(0, base.length)==base) {
  13. var path = (v.href.substr(base.length));
  14. // if hardlink, softlink it
  15. if(path.substr(0,1)!='#') {
  16. v.href = base + '#' + path;
  17. }
  18. }
  19. });
  20. // go to hash page if exists
  21. if(!wn.settings.no_history && window.location.hash) {
  22. wn.page.set(window.location.hash.substr(1));
  23. }
  24. });