+3
-4
@@ -175,13 +175,12 @@
|
||||
var currentHash = location.hash;
|
||||
|
||||
if (currentHash) {
|
||||
// fix hash
|
||||
setTimeout(function () {
|
||||
location.hash = '';
|
||||
location.hash = currentHash;
|
||||
var anchor = document.getElementById(currentHash.slice(1));
|
||||
if (anchor) anchor.scrollIntoView();
|
||||
}, 0);
|
||||
}
|
||||
|
||||
return $(this);
|
||||
};
|
||||
}));
|
||||
}));
|
||||
|
||||
+3
-4
@@ -133,10 +133,9 @@
|
||||
var currentHash = location.hash;
|
||||
|
||||
if (currentHash) {
|
||||
// fix hash
|
||||
setTimeout(function () {
|
||||
location.hash = '';
|
||||
location.hash = currentHash;
|
||||
var anchor = document.getElementById(currentHash.slice(1));
|
||||
if (anchor) anchor.scrollIntoView();
|
||||
}, 0);
|
||||
}
|
||||
|
||||
@@ -150,4 +149,4 @@
|
||||
} else {
|
||||
window.initTOC = initTOC;
|
||||
}
|
||||
}(window));
|
||||
}(window));
|
||||
|
||||
Reference in New Issue
Block a user