A Top Most Word Press Website, Web Development Company in Mohali

A-Most-Top-Word-Press-Website,-Web-Development-Company-in-Mohali

Do you know that word press is a content management system known as the power of all websites on the internet and websites that run on CMS. There are several different plugging and themes into the word press. Anyone who wants to build their website information extraordinary can build a website with WordPress. Web word […]

jQuery(document).ready(function( $ ){ jQuery('#servc_soltion').click(function(){ // $("#subfoter").slideToggle("slow"); $( "#subfoter" ).slideToggle( "fast", function(){ if ($(this).is(":visible")) { //Check to see if element is visible then scroll to it $('html,body').animate({ //animate the scroll scrollTop: $(this).offset().top - 25 // the - 25 is to stop the scroll 25px above the element }, "slow") } }); return false; //This works similarly to event.preventDefault(); as it stops the default link behavior }); }); jQuery(document).ready(function() { // When an element with the class 'cross-img' is clicked jQuery('.cross-img').click(function() { // Hide the element with the class 'christmas-float' jQuery('.christmas-float').hide(); }); }); jQuery(document).ready(function ($) { function fixGFMessage() { let el = $('#validation_message_10_1'); if (el.length) { let text = el.text(); text = text.replace(/Please complete.*$/i, '').trim(); el.text(text); } } // Initial load fixGFMessage(); // Gravity Forms render $(document).on('gform_post_render', function () { fixGFMessage(); }); });0 jQuery(document).on('input', '.ginput_container_phone input', function () { this.value = this.value.replace(/[^0-9+]/g, ''); }); jQuery(window).on('elementor/popup/show', function () { setTimeout(function () { const input = document.querySelector("#input_10_8"); if (!input) return; if (input.classList.contains("iti-initialized")) return; const iti = window.intlTelInput(input, { initialCountry: "in", separateDialCode: true, preferredCountries: ["in", "us"], utilsScript: "https://cdn.jsdelivr.net/npm/intl-tel-input@17.0.19/build/js/utils.js" }); input.classList.add("iti-initialized"); // Hidden field create for full number let hiddenInput = document.createElement("input"); hiddenInput.type = "hidden"; hiddenInput.name = input.name; // original name hiddenInput.id = input.id + "_full"; // visible input ka name remove input.removeAttribute("name"); input.parentNode.appendChild(hiddenInput); // only number visible rahe const updateNumber = function () { // sirf entered number visible const enteredNumber = input.value.replace(/\+/g, ''); input.value = enteredNumber; // hidden field me full international number save hiddenInput.value = iti.getNumber(); }; input.addEventListener("input", function () { hiddenInput.value = iti.getNumber(); }); input.addEventListener("blur", updateNumber); input.addEventListener("countrychange", function () { // country change ke baad bhi full number hidden field me hiddenInput.value = iti.getNumber(); }); }, 500); }); // jQuery(document).on('click', '#gform_submit_button_10', function () { // setTimeout(function () { // const phoneInput = document.querySelector('#input_10_8'); // if (!phoneInput) return; // // agar phone field me value hai // if (phoneInput.value.trim() !== '') { // // error remove // jQuery('#field_10_8').removeClass('gfield_error'); // // validation message hide // jQuery('#validation_message_10_8').hide(); // // aria invalid false // phoneInput.setAttribute('aria-invalid', 'false'); // } // }, 50); // }); jQuery(document).on('click', '#gform_submit_button_10', function () { setTimeout(function () { const phoneInput = document.querySelector('#input_10_8'); if (!phoneInput) return; const iti = window.intlTelInputGlobals.getInstance(phoneInput); // agar phone empty nahi hai if (phoneInput.value.trim() !== '') { // agar valid hai if (iti.isValidNumber()) { // error remove jQuery('#field_10_8').removeClass('gfield_error'); // custom validation text hide jQuery('#validation_message_10_8') .hide() .text(''); phoneInput.setAttribute('aria-invalid', 'false'); } else { // invalid number jQuery('#field_10_8').addClass('gfield_error'); // custom error message jQuery('#validation_message_10_8') .show() .text('Country code not match with number'); phoneInput.setAttribute('aria-invalid', 'true'); } } }, 50); });