From c701ce21db36484d62aa59842a7c26215576c383 Mon Sep 17 00:00:00 2001 From: candice Date: Fri, 25 Mar 2022 10:43:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E8=AE=A2=E6=8C=89=E9=92=AE=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=B7=B3=E8=BD=ACJS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/mobile_first/gh-pc.php | 10 ++++++++++ application/views/mobile_first/gh.php | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/application/views/mobile_first/gh-pc.php b/application/views/mobile_first/gh-pc.php index 69673bc7..829a598d 100644 --- a/application/views/mobile_first/gh-pc.php +++ b/application/views/mobile_first/gh-pc.php @@ -207,6 +207,7 @@ height="0" width="0" style="display:none;visibility:hidden">
+ global highlights' wechat code
Scan and add us on WhatsApp: +86 15807734776
@@ -393,6 +394,15 @@ 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 5ba1f1a1..ed34368e 100644 --- a/application/views/mobile_first/gh.php +++ b/application/views/mobile_first/gh.php @@ -172,6 +172,7 @@ aria-label="festival">
+ global highlights' wechat code
Scan and add us on WhatsApp: +86 15807734776
@@ -343,6 +344,14 @@ 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"}); + } +}); });