From d9688b8598f3b10ae1ef7b193139cf42fe505b11 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Fri, 25 Mar 2022 14:42:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=81=E7=A7=BB=E6=BB=9A=E5=8A=A8=E5=88=B0?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=20JS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/mobile_first/gh-pc.php | 9 --------- application/views/mobile_first/gh.php | 8 -------- 2 files changed, 17 deletions(-) diff --git a/application/views/mobile_first/gh-pc.php b/application/views/mobile_first/gh-pc.php index 6a2ea829..08b64499 100644 --- a/application/views/mobile_first/gh-pc.php +++ b/application/views/mobile_first/gh-pc.php @@ -393,15 +393,6 @@ document.addEventListener('DOMContentLoaded', () => { disableMobile: true, minDate: "today" }); - - - var scrollToButton = document.getElementById('scrollToButton'); - var scrollAnchor = document.getElementById('scrollAnchor'); - scrollToButton.addEventListener('click', () => { - if (scrollAnchor !== null) { - scrollAnchor.scrollIntoView({behavior: "smooth"}); - } - }); }); diff --git a/application/views/mobile_first/gh.php b/application/views/mobile_first/gh.php index 62417d64..0a678547 100644 --- a/application/views/mobile_first/gh.php +++ b/application/views/mobile_first/gh.php @@ -343,14 +343,6 @@ document.addEventListener('DOMContentLoaded', () => { disableMobile: true, minDate: "today" }); - -var scrollToButton = document.getElementById('scrollToButton'); -var scrollAnchor = document.getElementById('scrollAnchor'); -scrollToButton.addEventListener('click', () => { - if (scrollAnchor !== null) { - scrollAnchor.scrollIntoView({behavior: "smooth"}); - } -}); });