u
This commit is contained in:
57
_footer.php
57
_footer.php
@@ -120,29 +120,42 @@
|
|||||||
<a href="#" class="back-to-top"><i class="fe fe-lg fe-arrow-up"></i></a>
|
<a href="#" class="back-to-top"><i class="fe fe-lg fe-arrow-up"></i></a>
|
||||||
<div>
|
<div>
|
||||||
<!-------------------------- whatApps Widget Start-------------------->
|
<!-------------------------- whatApps Widget Start-------------------->
|
||||||
<script>
|
<style>
|
||||||
var options = {
|
.wa-widget {
|
||||||
brandSetting: {
|
position: fixed;
|
||||||
brandImg: "/assets/img/whatsappimg.webp",
|
bottom: 20px;
|
||||||
welcomeText: `Hi there!
|
right: 20px;
|
||||||
How can I help you?`,
|
background-color: #25D366;
|
||||||
messageText: `I need more information about Montessori Teachers training`,
|
color: white;
|
||||||
phoneNumber: "919748356431",
|
border-radius: 50px;
|
||||||
},
|
padding: 12px 18px;
|
||||||
chatButtonSetting: {
|
font-size: 16px;
|
||||||
backgroundColor: "#24d366",
|
font-family: Arial, sans-serif;
|
||||||
ctaText: 'Chat with us',
|
cursor: pointer;
|
||||||
marginLeft: "0",
|
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
|
||||||
marginRight: "30",
|
display: flex;
|
||||||
marginBottom: "150",
|
align-items: center;
|
||||||
position: "right",
|
gap: 8px;
|
||||||
},
|
z-index: 9999;
|
||||||
enabled: true,
|
}
|
||||||
isNewChatWidget: true
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<script type="text/javascript" onload="CreateWhatsappChatWidget(options)" src="https://msg91.com/js/waWidget.js"></script>
|
|
||||||
|
|
||||||
|
.wa-widget:hover {
|
||||||
|
background-color: #1ebe5d;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<div class="wa-widget" onclick="openWhatsApp()">
|
||||||
|
<img src="/assets/img/whatsappimg.webp" width="25px"/> Chat on WhatsApp
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function openWhatsApp() {
|
||||||
|
var phone = "919748386431"; // Replace with your number
|
||||||
|
var message = encodeURIComponent("I need more information about Montessori Teachers training"); // Your keyword
|
||||||
|
var url = "https://wa.me/" + phone + "?text=" + message;
|
||||||
|
window.open(url, "_blank");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<!-------------------------- whatApps Widget End-------------------->
|
<!-------------------------- whatApps Widget End-------------------->
|
||||||
|
|
||||||
<!-- JAVASCRIPT -->
|
<!-- JAVASCRIPT -->
|
||||||
|
|||||||
@@ -157,6 +157,10 @@ include("_navbar.php");
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group mb-5">
|
<div class="form-group mb-5">
|
||||||
<input type="text" id="city2" 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">
|
<input type="text" id="city2" 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>
|
||||||
|
<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>
|
||||||
<div class="form-group mb-0 text-center">
|
<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="paymentSubmitForm2()"> Submit</button>
|
<button style="background-color: #f7a325;margin:10px 0px;border-radius:26px;" class="btn btn-sm lift shadow-lg px-8" type="button" onclick="paymentSubmitForm2()"> Submit</button>
|
||||||
@@ -624,6 +628,7 @@ Master in Education, Victoria University, Australia<br/> International Montessor
|
|||||||
var paymentSuccess2 = document.getElementById('paymentSuccess2');
|
var paymentSuccess2 = document.getElementById('paymentSuccess2');
|
||||||
var paymentEmailError2 = document.getElementById('paymentEmailError2');
|
var paymentEmailError2 = document.getElementById('paymentEmailError2');
|
||||||
var req1 = document.getElementById("req1");
|
var req1 = document.getElementById("req1");
|
||||||
|
var captchaError = document.getElementById('captchaError');
|
||||||
|
|
||||||
function paymentSubmitForm2() {
|
function paymentSubmitForm2() {
|
||||||
user2 = document.getElementById("user2").value;
|
user2 = document.getElementById("user2").value;
|
||||||
@@ -631,6 +636,8 @@ Master in Education, Victoria University, Australia<br/> International Montessor
|
|||||||
paymentEmail2 = document.getElementById("paymentEmail2").value;
|
paymentEmail2 = document.getElementById("paymentEmail2").value;
|
||||||
city2 = document.getElementById('city2').value;
|
city2 = document.getElementById('city2').value;
|
||||||
paymentSuccess2.style.display = "none";
|
paymentSuccess2.style.display = "none";
|
||||||
|
captchaError.style.display = "none";
|
||||||
|
|
||||||
console.log('all details',user2,contact2,paymentEmail2,city2)
|
console.log('all details',user2,contact2,paymentEmail2,city2)
|
||||||
if (user2 == '' || contact2 == '' || paymentEmail2 == '' || city2 =='') {
|
if (user2 == '' || contact2 == '' || paymentEmail2 == '' || city2 =='') {
|
||||||
paymentWarning2.style.display = "block";
|
paymentWarning2.style.display = "block";
|
||||||
@@ -648,6 +655,14 @@ Master in Education, Victoria University, Australia<br/> International Montessor
|
|||||||
paymentEmailError2.style.display = "none";
|
paymentEmailError2.style.display = "none";
|
||||||
paymentWarning2.style.display = "none";
|
paymentWarning2.style.display = "none";
|
||||||
|
|
||||||
|
// ✅ Verify reCAPTCHA
|
||||||
|
var captchaResponse = grecaptcha.getResponse();
|
||||||
|
if (!captchaResponse.length) {
|
||||||
|
captchaError.style.display = "block";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
let formData = new FormData();
|
let formData = new FormData();
|
||||||
formData.append('formName', 'IIMTT-Malaysia-Get-in-Touch');
|
formData.append('formName', 'IIMTT-Malaysia-Get-in-Touch');
|
||||||
formData.append('business_type', 'iimtt');
|
formData.append('business_type', 'iimtt');
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
User-agent: *
|
User-agent: *
|
||||||
Allow: /
|
Disllow: /
|
||||||
sitemap: https://iimtt.org/sitemap.xml
|
sitemap: https://iimtt.org/sitemap.xml
|
||||||
Reference in New Issue
Block a user