u
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
<!-- Title -->
|
||||
<title>Montessori Teacher Training in Hanoi</title>
|
||||
<meta name="description" content="Join IIMTT to get an international Montessori teacher training qualification. We offer in-class certificate, diploma and advanced diploma course in Hanoi.">
|
||||
|
||||
<link rel="canonical" href="https://iimtt.org/montessori-teacher-training-hanoi">
|
||||
<link rel="canonical" href="https://iimtt.org/montessori-teacher-training-hanoi">
|
||||
<!-- ✅ Add Google reCAPTCHA script -->
|
||||
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Google Tag Manager (noscript) -->
|
||||
@@ -351,6 +352,11 @@ include("_navbar.php");
|
||||
</div>
|
||||
<div class="form-group mb-5">
|
||||
<input type="text" id="city" aria-required="true" name="widget-contact-form-city" required class="form-control required name shadow-lg" style="border-radius:26px;min-height:0px;padding:6px;padding-left:16px" placeholder="Your City">
|
||||
</div>
|
||||
<!-- ✅ Google reCAPTCHA Widget -->
|
||||
<div class="form-group text-center">
|
||||
<div class="g-recaptcha" data-sitekey="6LfLjvgrAAAAAIlFINpRhfP5HgnJbJ8lPQbVky8Z"></div>
|
||||
<p id="captchaError" style="color: red; display: none;">Please verify you are not a robot.</p>
|
||||
</div>
|
||||
<div class="form-group mb-0 text-center">
|
||||
<button style="background-color: #f7a325;margin:10px 0px;border-radius:26px;" class="btn btn-sm lift shadow-lg px-8" type="button" onclick="paymentSubmitForm()"> Book a Seat</button>
|
||||
@@ -396,6 +402,11 @@ include("_navbar.php");
|
||||
</div>
|
||||
<div class="form-group mb-5">
|
||||
<input type="text" id="city1" aria-required="true" name="widget-contact-form-city" required class="form-control required name shadow-lg" style="border-radius:26px;min-height:0px;padding:6px;padding-left:16px" placeholder="Your City">
|
||||
</div>
|
||||
<!-- ✅ Google reCAPTCHA Widget -->
|
||||
<div class="form-group text-center">
|
||||
<div class="g-recaptcha" data-sitekey="6LfLjvgrAAAAAIlFINpRhfP5HgnJbJ8lPQbVky8Z"></div>
|
||||
<p id="captchaError" style="color: red; display: none;">Please verify you are not a robot.</p>
|
||||
</div>
|
||||
<div class="form-group mb-0 text-center">
|
||||
<button style="background-color: #f7a325;margin:10px 0px;border-radius:26px;" class="btn btn-sm lift shadow-lg px-8" type="button" onclick="paymentSubmitForm1()"> Book a Seat</button>
|
||||
@@ -566,6 +577,7 @@ include("_navbar.php");
|
||||
var paymentSuccess = document.getElementById('paymentSuccess');
|
||||
var paymentEmailError = document.getElementById('paymentEmailError');
|
||||
var req = document.getElementById("req");
|
||||
var captchaError = document.getElementById('captchaError');
|
||||
|
||||
function paymentSubmitForm() {
|
||||
user = document.getElementById("user").value;
|
||||
@@ -573,6 +585,8 @@ include("_navbar.php");
|
||||
paymentEmail = document.getElementById("paymentEmail").value;
|
||||
city = document.getElementById('city').value;
|
||||
paymentSuccess.style.display = "none";
|
||||
captchaError.style.display = "none";
|
||||
|
||||
console.log('all details',user,contact,paymentEmail,city)
|
||||
if (user == '' || contact == '' || paymentEmail == '' || city =='') {
|
||||
paymentWarning.style.display = "block";
|
||||
@@ -587,6 +601,12 @@ include("_navbar.php");
|
||||
// contactError.style.display = "block";
|
||||
// } else
|
||||
{
|
||||
// ✅ Verify reCAPTCHA
|
||||
var captchaResponse = grecaptcha.getResponse();
|
||||
if (!captchaResponse.length) {
|
||||
captchaError.style.display = "block";
|
||||
return;
|
||||
}
|
||||
paymentEmailError.style.display = "none";
|
||||
paymentWarning.style.display = "none";
|
||||
|
||||
@@ -632,7 +652,8 @@ include("_navbar.php");
|
||||
document.getElementById("user").value = "";
|
||||
document.getElementById("contact").value = "";
|
||||
document.getElementById("paymentEmail").value = "";
|
||||
document.getElementById("city").value = "";
|
||||
document.getElementById("city").value = "";
|
||||
grecaptcha.reset(); // reset captcha after submission
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -711,6 +732,7 @@ include("_navbar.php");
|
||||
var paymentSuccess1 = document.getElementById('paymentSuccess1');
|
||||
var paymentEmailError1 = document.getElementById('paymentEmailError1');
|
||||
var req1 = document.getElementById("req1");
|
||||
var captchaError = document.getElementById('captchaError');
|
||||
|
||||
function paymentSubmitForm1() {
|
||||
user1 = document.getElementById("user1").value;
|
||||
@@ -718,6 +740,7 @@ include("_navbar.php");
|
||||
paymentEmail1 = document.getElementById("paymentEmail1").value;
|
||||
city1 = document.getElementById('city1').value;
|
||||
paymentSuccess1.style.display = "none";
|
||||
captchaError.style.display = "none";
|
||||
console.log('all details',user1,contact1,paymentEmail1,city1)
|
||||
if (user1 == '' || contact1 == '' || paymentEmail1 == '' || city1 =='') {
|
||||
paymentWarning1.style.display = "block";
|
||||
@@ -732,6 +755,12 @@ include("_navbar.php");
|
||||
// contactError.style.display = "block";
|
||||
// } else
|
||||
{
|
||||
// ✅ Verify reCAPTCHA
|
||||
var captchaResponse = grecaptcha.getResponse();
|
||||
if (!captchaResponse.length) {
|
||||
captchaError.style.display = "block";
|
||||
return;
|
||||
}
|
||||
paymentEmailError1.style.display = "none";
|
||||
paymentWarning1.style.display = "none";
|
||||
|
||||
@@ -777,7 +806,8 @@ include("_navbar.php");
|
||||
document.getElementById("user1").value = "";
|
||||
document.getElementById("contact1").value = "";
|
||||
document.getElementById("paymentEmail1").value = "";
|
||||
document.getElementById("city1").value = "";
|
||||
document.getElementById("city1").value = "";
|
||||
grecaptcha.reset(); // reset captcha after submission
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user