|
|
|
@ -179,48 +179,6 @@ aria-label="festival">
|
|
|
|
|
|
|
|
|
|
<!--MOBILE 正文 结束-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
(function () {
|
|
|
|
|
String.prototype.lpad = function (padString, length) {
|
|
|
|
|
var str = this;
|
|
|
|
|
while (str.length < length)
|
|
|
|
|
str = padString + str;
|
|
|
|
|
return str;
|
|
|
|
|
}
|
|
|
|
|
document.getElementById("url").value = (window.location.href);
|
|
|
|
|
const dateOffset = document.getElementById('starting_date').dataset.minDate;
|
|
|
|
|
const today = new Date();
|
|
|
|
|
const startMinDate = new Date(today.setDate(today.getDate() + parseInt(dateOffset)));
|
|
|
|
|
const minDateStr =
|
|
|
|
|
startMinDate.getFullYear() + '-' +
|
|
|
|
|
(startMinDate.getMonth() + 1).toString().lpad('0', 2) + '-' +
|
|
|
|
|
startMinDate.getDate().toString().lpad('0', 2);
|
|
|
|
|
document.getElementById('starting_date').setAttribute("min", minDateStr);
|
|
|
|
|
const required_fields = document.querySelectorAll(":required");
|
|
|
|
|
required_fields.forEach(element => {
|
|
|
|
|
element.addEventListener("input", function(event) {
|
|
|
|
|
if (element.validity.valueMissing) {
|
|
|
|
|
element.setCustomValidity(element.dataset.required);
|
|
|
|
|
} else if (element.validity.patternMismatch) {
|
|
|
|
|
element.setCustomValidity(element.dataset.pattern);
|
|
|
|
|
} else {
|
|
|
|
|
element.setCustomValidity("");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
var formEle = document.getElementById('bottomInquiryForm');
|
|
|
|
|
var submitBtn = document.getElementById('bottomFormBtn');
|
|
|
|
|
formEle.addEventListener('submit', function(evt) {
|
|
|
|
|
evt.preventDefault();
|
|
|
|
|
formEle.submit();
|
|
|
|
|
submitBtn.innerText = "Submitted successfully";
|
|
|
|
|
});
|
|
|
|
|
})();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div class="infotailor">
|
|
|
|
|
We are here to help you...<br> start planning your tailor-made tour with 1-1 help from our travel advisors.
|
|
|
|
|
<div class="tourbutton"><a href="/forms/tailormade" >Create Your Trip </a></div>
|
|
|
|
|