Difference between revisions of "Template:BNU-CHINA/article"
Line 23: | Line 23: | ||
}; | }; | ||
− | scrollToHash( | + | scrollToHash(window.location.hash); |
$(".sub-header").css({ | $(".sub-header").css({ | ||
Line 83: | Line 83: | ||
}); | }); | ||
− | $("a[href | + | $("a[href]").on("click", function() { |
var hash = this.href.substring(this.href.indexOf("#")); | var hash = this.href.substring(this.href.indexOf("#")); | ||
scrollToHash(hash); | scrollToHash(hash); |
Revision as of 01:28, 19 September 2015