您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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