Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/assets/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,16 @@ window.onload = function() {
}
}

// =================================================
// Checking hash in URL
// this function runs when the DOM is ready, i.e. when the document has been parsed
setTimeout(function() {
if (location.hash) {
location.href = location.hash;
}
}, 1000);


// =================================================
// Chinese spacing
if (window.pangu) {
Expand Down