Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/js/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/index.js b/assets/js/index.js
index 68f26d3..3b1a6b3 100644
--- a/assets/js/index.js
+++ b/assets/js/index.js
@@ -22,7 +22,7 @@ document.addEventListener("DOMContentLoaded", function () {
$("a[href^=\"#\"]").click(function(e) {
e.preventDefault();
$("html, body").animate({
- scrollTop: $(this.hash).offset().top
+ scrollTop: $(document.getElementById(this.hash.substr(1))).offset().top
}, 500);
$("#nav-menu").removeClass("is-active");
return true;