diff --git a/application/views/mobile_first/ah-gp-form.php b/application/views/mobile_first/ah-gp-form.php index 5ee8cff9..9d1f274d 100644 --- a/application/views/mobile_first/ah-gp-form.php +++ b/application/views/mobile_first/ah-gp-form.php @@ -13,7 +13,10 @@

- +
@@ -21,9 +24,9 @@

Children

-
+

3-9 yrs old

-
-
+

0-2 yrs old

-
- - + + + - - - - + }); + 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 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.
-