From d7a2c31ffb1de7abd917ecf29c5f1cb1d0041a0a Mon Sep 17 00:00:00 2001
From: caishi <1149225589@qq.com>
Date: Fri, 13 Jan 2023 10:53:14 +0800
Subject: [PATCH] issue
---
public/index.html | 14 +++++++++++++-
src/common/marked.js | 5 ++++-
src/components/render-html.jsx | 2 +-
src/forge/Team/Group/GroupDetails.jsx | 25 +++++++++++++++++++++++--
src/forge/Team/Index.scss | 4 ++--
5 files changed, 43 insertions(+), 7 deletions(-)
diff --git a/public/index.html b/public/index.html
index 6c674f7c..4eada445 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;
+ });
+ }
+
+