diff --git a/public/index.html b/public/index.html
index 8b7f37fb..a9459cce 100755
--- a/public/index.html
+++ b/public/index.html
@@ -47,6 +47,7 @@
+
@@ -60,12 +61,19 @@
hm.src = "https://hm.baidu.com/hm.js?7e2def1fe918f15f9f1c5c061f69b256";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
+
})();
-
- function aaa(){
- console.log(111);
+ 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;
+ });
}
-
+
+