$(document).ready(function () { if (document.getElementById("banner")) { document.getElementById("banner").style.display = "block"; //show after loading } if (document.getElementById("indexBody")) { document.getElementById("indexBody").addEventListener("contextmenu", function (e) { e.preventDefault(); }); document.getElementById("talink").addEventListener("click", function (e) { e.preventDefault(); this.href = "dnd_app?q1=T"; this.target = "_blank"; if (confirm("Are you sure you want to download Teacher's APP?")){ window.location = this.href; } }, false); document.getElementById("palink").addEventListener("click", function (e) { e.preventDefault(); this.href = "dnd_app?q1=P"; this.target = "_blank"; if (confirm("Are you sure you want to download Parent's APP?")){ window.location = this.href; } }, false); document.getElementById("asForm").addEventListener("submit", function (e) { e.preventDefault(); this.setAttribute("method", "POST"); this.setAttribute("action", "/about_us"); this.setAttribute("target", "_blank"); this.submit(); }); document.getElementById("sForm").addEventListener("submit", function (e) { e.preventDefault(); this.setAttribute("method", "POST"); this.setAttribute("action", "/services"); this.setAttribute("target", "_blank"); this.submit(); }); document.getElementById("suForm").addEventListener("submit", function (e) { e.preventDefault(); //var formData = new FormData(form1); this.setAttribute("method", "POST"); this.setAttribute("action", "/subscribe"); this.setAttribute("target", "_blank"); this.submit(); }); document.getElementById("cuForm").addEventListener("submit", function (e) { e.preventDefault(); this.setAttribute("method", "POST"); this.setAttribute("action", "/contact_us"); this.setAttribute("target", "_blank"); this.submit(); }); document.getElementById("liForm1").addEventListener("submit", function (e) { e.preventDefault(); this.setAttribute("method", "POST"); this.setAttribute("action", "/login"); this.setAttribute("target", "_blank"); this.submit(); }); document.getElementById("liForm2").addEventListener("submit", function (e) { e.preventDefault(); this.setAttribute("method", "POST"); this.setAttribute("action", "/login"); this.setAttribute("target", "_blank"); document.getElementById("userflag").value = 'A'; this.submit(); }); document.getElementById("kyForm").addEventListener("submit", function (e) { e.preventDefault(); this.setAttribute("method", "POST"); this.setAttribute("action", "/kyplogin"); this.setAttribute("target", "_blank"); this.submit(); }); document.getElementById("apForm").addEventListener("submit", function (e) { e.preventDefault(); this.setAttribute("method", "POST"); this.setAttribute("action", "/admissionPortal"); this.setAttribute("target", "_blank"); /* Get hashed client id to pass into onlineAdmission Form for Demo */ document.getElementById("q1").value = "t1^8y&^8G55^#_$"; this.submit(); }); } }); $('#whatsAppBtn').floatingWhatsApp({ phone: '919953910770', popupMessage: 'Hi, how can we help you?', message: "I'd like to see the ERP demo", showPopup: true, showOnIE: false, headerTitle: 'Welcome to EduBits!', headerColor: 'crimson', backgroundColor: 'transparent', buttonImage: '' });