From 820183dbedcd2c48ff31114bd8da6d743bef5d2d Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Thu, 28 Oct 2021 10:12:24 +0800 Subject: [PATCH 1/6] =?UTF-8?q?Check=20more=20=E5=A2=9E=E5=8A=A0=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/mobile_first/gh-pc.php | 46 ++++++++++++------------ application/views/mobile_first/gh.php | 46 ++++++++++++------------ 2 files changed, 48 insertions(+), 44 deletions(-) diff --git a/application/views/mobile_first/gh-pc.php b/application/views/mobile_first/gh-pc.php index 8fe9a46f..af4622b1 100644 --- a/application/views/mobile_first/gh-pc.php +++ b/application/views/mobile_first/gh-pc.php @@ -312,28 +312,30 @@ height="0" width="0" style="display:none;visibility:hidden"> function loadScriptByAsync(src) {var asyncScript = document.createElement("script");asyncScript.async = true;asyncScript.crossorigin = "anonymous";asyncScript.src = src;firstScript=document.getElementsByTagName("script")[0];firstScript.parentNode.insertBefore(asyncScript, firstScript);} +((doc, buttonId, contentId) => { + doc.addEventListener('DOMContentLoaded', () => { + var moreButton = doc.getElementById(buttonId); + var contentDiv = doc.getElementById(contentId); + var lastContentDiv = doc.getElementById(lastContentId); + if (moreButton === null || contentDiv === null || lastContentDiv === null) { + console.warn('CHECK MORE config error'); + return; + } + moreButton.addEventListener('click', () => { + moreButton.classList.add('gh-animate-fade-out'); + setTimeout(() => { + moreButton.classList.add('gh-display-none'); + }, 80); + contentDiv.classList.remove('gh-display-none'); + lastContentDiv.classList.remove('normal_content'); + setTimeout(() => { + contentDiv.classList.remove('gh-animate-slide-down'); + contentDiv.classList.add('gh-animate-slide-up'); + }, 0); + }); + }); +})(document, 'checkMoreButton', 'moreContentDiv', 'lastContentDiv'); + +((doc, buttonId, contentId) => { + doc.addEventListener('DOMContentLoaded', () => { + var moreButton = doc.getElementById(buttonId); + var contentDiv = doc.getElementById(contentId); + var lastContentDiv = doc.getElementById(lastContentId); + if (moreButton === null || contentDiv === null || lastContentDiv === null) { + console.warn('CHECK MORE config error'); + return; + } + moreButton.addEventListener('click', () => { + moreButton.classList.add('gh-animate-fade-out'); + setTimeout(() => { + moreButton.classList.add('gh-display-none'); + }, 80); + contentDiv.classList.remove('gh-display-none'); + lastContentDiv.classList.remove('normal_content'); + setTimeout(() => { + contentDiv.classList.remove('gh-animate-slide-down'); + contentDiv.classList.add('gh-animate-slide-up'); + }, 0); + }); + }); +})(document, 'checkMoreButton', 'moreContentDiv', 'lastContentDiv'); + From 87f4d7b4e7daa09fb495e7342ce98767cfb03775 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Thu, 28 Oct 2021 10:14:51 +0800 Subject: [PATCH 2/6] =?UTF-8?q?Check=20More=20=E7=BC=BA=E5=B0=91=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/mobile_first/gh-pc.php | 2 +- application/views/mobile_first/gh.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/views/mobile_first/gh-pc.php b/application/views/mobile_first/gh-pc.php index af4622b1..a871b280 100644 --- a/application/views/mobile_first/gh-pc.php +++ b/application/views/mobile_first/gh-pc.php @@ -312,7 +312,7 @@ height="0" width="0" style="display:none;visibility:hidden"> function loadScriptByAsync(src) {var asyncScript = document.createElement("script");asyncScript.async = true;asyncScript.crossorigin = "anonymous";asyncScript.src = src;firstScript=document.getElementsByTagName("script")[0];firstScript.parentNode.insertBefore(asyncScript, firstScript);} - - + + + From 59d254cdcdff094b6e7e57ead3ec52840a89f1da Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Thu, 28 Oct 2021 10:50:26 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E5=BA=95=E9=83=A8=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/mobile_first/gh-pc.php | 18 ++-- application/views/mobile_first/gh.php | 130 ++++++++++++----------- 2 files changed, 74 insertions(+), 74 deletions(-) diff --git a/application/views/mobile_first/gh-pc.php b/application/views/mobile_first/gh-pc.php index 7c799af1..eb7c80c7 100644 --- a/application/views/mobile_first/gh-pc.php +++ b/application/views/mobile_first/gh-pc.php @@ -155,7 +155,7 @@ height="0" width="0" style="display:none;visibility:hidden">
-
+

Why Travel with Global Highlights

    @@ -168,26 +168,24 @@ height="0" width="0" style="display:none;visibility:hidden">
-
+

+ placeholder="Full name" required="" type="text">

-

+

-

- - - + -
diff --git a/application/views/mobile_first/gh.php b/application/views/mobile_first/gh.php index d4be0ae0..79efd52d 100644 --- a/application/views/mobile_first/gh.php +++ b/application/views/mobile_first/gh.php @@ -119,72 +119,74 @@ height="0" width="0" style="display:none;visibility:hidden">
- -
-

Why Travel with Global Highlights

-
    -
  • Tailor-made experience: All of your ideas/needs will be carefully considered to create your ideal trip.
  • -
  • Worry-free planning: Every step of your trip, you will be looked after by your 1:1 travel consultant based in Asia.
  • -
  • No-risk booking: We refund as much as we can and adapt flexibly to unexpected changes.
  • -
-
- -
- - -
- -
-

- -

- -

-

- - - - - - - -
+
+

Why Travel with Global Highlights

+
    +
  • Tailor-made experience: All of your ideas/needs will be carefully + considered to create your ideal trip.
  • +
  • Worry-free planning: Every step of your trip, you will be looked + after by your 1:1 travel consultant based in Asia.
  • +
  • No-risk booking: We refund as much as we can and adapt flexibly to + unexpected changes.
  • +
+
+
+ +
+
+

+

+

+

+ + + + +
+
- -
-
- +
+
+