From 622e79fcf0a5501d31e365e700a7cba70539cb94 Mon Sep 17 00:00:00 2001 From: candice Date: Wed, 22 May 2024 10:37:09 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E8=81=94=E7=B3=BB=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E5=88=A0=E5=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/mobile_first/ah-gp-form.php | 23 ++----------------- .../views/mobile_first/ah-info-page-form.php | 22 +----------------- .../views/mobile_first/ah-inquiry-form.php | 14 +---------- .../ah-lantern-festival-gp-form.php | 23 ++----------------- .../ah-lantern-form-info-page.php | 14 +---------- .../views/mobile_first/ah-lantern-form.php | 14 +---------- .../views/mobile_first/ah-tour-list-form.php | 14 +---------- 7 files changed, 9 insertions(+), 115 deletions(-) diff --git a/application/views/mobile_first/ah-gp-form.php b/application/views/mobile_first/ah-gp-form.php index 5ee8cff9..821911ce 100644 --- a/application/views/mobile_first/ah-gp-form.php +++ b/application/views/mobile_first/ah-gp-form.php @@ -328,7 +328,7 @@ margin-top: 0; margin-bottom: 10px; padding: 0; - ">I prefer to be contacted via:

+ ">I am also available on:

@@ -338,32 +338,13 @@
-
- - -
-
- - -
-
- - -
- + - - + + + - - - - + }); + function slideUp(target, duration) { + duration = duration ? duration : 500; + target.style.transitionProperty = 'height, margin, padding'; + target.style.transitionDuration = duration + 'ms'; + target.style.boxSizing = 'border-box'; + target.style.height = target.offsetHeight + 'px'; + target.offsetHeight; + target.style.overflow = 'hidden'; + target.style.height = 0; + target.style.paddingTop = 0; + target.style.paddingBottom = 0; + target.style.marginTop = 0; + target.style.marginBottom = 0; + window.setTimeout(() => { + target.style.display = 'none'; + target.style.removeProperty('height'); + target.style.removeProperty('padding-top'); + target.style.removeProperty('padding-bottom'); + target.style.removeProperty('margin-top'); + target.style.removeProperty('margin-bottom'); + target.style.removeProperty('overflow'); + target.style.removeProperty('transition-duration'); + target.style.removeProperty('transition-property'); + }, duration); + } + + function slideDown(target, duration) { + duration = duration ? duration : 500; + target.style.removeProperty('display'); + let display = window.getComputedStyle(target).display; + if (display === 'none') + display = 'block'; + target.style.display = display; + let height = target.offsetHeight; + target.style.overflow = 'hidden'; + target.style.height = 0; + target.style.paddingTop = 0; + target.style.paddingBottom = 0; + target.style.marginTop = 0; + target.style.marginBottom = 0; + target.offsetHeight; + target.style.boxSizing = 'border-box'; + target.style.transitionProperty = "height, margin, padding"; + target.style.transitionDuration = duration + 'ms'; + target.style.height = height + 'px'; + target.style.removeProperty('padding-top'); + target.style.removeProperty('padding-bottom'); + target.style.removeProperty('margin-top'); + target.style.removeProperty('margin-bottom'); + window.setTimeout(() => { + target.style.removeProperty('height'); + target.style.removeProperty('overflow'); + target.style.removeProperty('transition-duration'); + target.style.removeProperty('transition-property'); + }, duration); + } + + + \ No newline at end of file diff --git a/application/views/mobile_first/ch-inquiry-form.php b/application/views/mobile_first/ch-inquiry-form.php index 719db5fb..f99a8738 100644 --- a/application/views/mobile_first/ch-inquiry-form.php +++ b/application/views/mobile_first/ch-inquiry-form.php @@ -1,577 +1,601 @@
-

Your 1:1 travel consultant will reply within 1 working day.

+

Your 1:1 travel consultant will reply within 1 working day.

+ name="quick_inquiry_form" novalidate="">
+ placeholder="E.g.: This is a big trip for anniversary, honeymoon, birthday celebration...">
-

- Number in your group -

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

I prefer to be contacted via:

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

I + am also available on:

+
+
- +
- +
- + - \ No newline at end of file + + $(function () { + var $adultBlock = $('#adultBlock'); + var $childrenBlock = $('#childrenBlock'); + $('input[name="travel_group"]').each((i, groupEle) => { + $(groupEle).click(function (e) { + + var currentTarget = e.currentTarget; + if (currentTarget.id === 'Family' || currentTarget.id === 'Other') { + $adultBlock.show(); + $childrenBlock.show(); + } else { + $adultBlock.show(); + $childrenBlock.hide(); + } + if (currentTarget.id === 'Couple') { + $('#adult_18_plus').val('2'); + } else if (currentTarget.id === 'Solo') { + $('#adult_18_plus').val('1'); + } + }) + }); + }) + + \ No newline at end of file From 5e3d382c3c2b84118ba12bd083020638117a4207 Mon Sep 17 00:00:00 2001 From: candice Date: Wed, 22 May 2024 10:42:16 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E8=81=94=E7=B3=BB=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E5=88=A0=E5=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/mobile_first/gh-info-page-form.php | 1581 +++++++++-------- .../views/mobile_first/gh-tour-form.php | 1277 ++++++------- 2 files changed, 1438 insertions(+), 1420 deletions(-) diff --git a/application/views/mobile_first/gh-info-page-form.php b/application/views/mobile_first/gh-info-page-form.php index 6ff6bb61..ae7c3318 100644 --- a/application/views/mobile_first/gh-info-page-form.php +++ b/application/views/mobile_first/gh-info-page-form.php @@ -1,819 +1,830 @@
Your 1:1 travel consultant will reply within 1 working day.
-