diff --git a/public/index.html b/public/index.html
index 6c674f7cd..4eada4459 100755
--- a/public/index.html
+++ b/public/index.html
@@ -32,6 +32,7 @@
+
@@ -45,8 +46,19 @@
hm.src = "https://hm.baidu.com/hm.js?7e2def1fe918f15f9f1c5c061f69b256";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
+
})();
-
+ window.onload=function(){
+ $(".newContainer").delegate("a.anchors","click",function(){
+ let h = $(this).offset().top - 180;
+ console.log($(this).offset().top,document.body.scrollTop);
+ $("html,body").animate({scrollTop:h},10);
+ window.location.hash = $(this).attr("name");
+ return false;
+ });
+ }
+
+