PageSourceSearch

https://worldwebtechnology.com/wp-content/cache/autoptimize/js/aut…65a5d6f4f00ea357f7dba0fbc.js?ver=1790367403

js worldwebtechnology.com collected 2026-10-03 23:45:03 UTC 2,227 bytes, 9 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){const phoneInput=document.querySelector("#contactnumber");const hiddenCountryCode=document.querySelector("#countrycode");const hiddenFullNumber=document.querySelector("#fullnumber");if(!phoneInput)return;phoneInput.addEventListener("input",function(){this.value=this.value.replace(/\D/g,"");validatePhone();});function validatePhone(){const val=phoneInput.value.trim();if(val.length===0)return true;if(val.length<9)return false;if(val.length>11)return false;return true;}
2const wait=setInterval(()=>{if(window.intlTelInput){clearInterval(wait);initializeIntl();}},150);let firstLoad=true;function initializeIntl(){const iti=window.intlTelInput(phoneInput,{separateDialCode:true,initialCountry:"in",nationalMode:true,autoPlaceholder:"polite",utilsScript:"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/js/utils.js",geoIpLookup:callback=>{fetch("https://ipapi.co/json/").then(r=>r.json()).then(d=>callback(d.country_code||"US")).catch(()=>callback("US"));}});const itiContainer=phoneInput.closest(".iti");if(itiContainer){const FIXED_WIDTH=itiContainer.offsetWidth;itiContainer.style.width=FIXED_WIDTH+"px";}
3phoneInput.addEventListener("countrychange",function(){const data=iti.getSelectedCountryData();const dialCode=`+${data.dialCode}`;hiddenCountryCode.value=dialCode;const codeLength=dialCode.length;if(firstLoad){phoneInput.style.paddingLeft="85px";firstLoad=false;return;}
4if(dialCode==="+91"){phoneInput.style.paddingLeft="85px";}
5else{if(codeLength<3){phoneInput.style.paddingLeft="75px";}
6else if(codeLength===3){phoneInput.style.paddingLeft="90px";}
7else{phoneInput.style.paddingLeft="100px";}}
8console.log("Selected Country Code:",dialCode);console.log("Dial Code Length:",codeLength);});setTimeout(()=>{const data=iti.getSelectedCountryData();hiddenCountryCode.value=`+${data.dialCode}`;},400);const form=phoneInput.closest("form");if(form){form.addEventListener("submit",function(e){if(!validatePhone()){e.preventDefault();e.stopPropagation();return false;}
9const data=iti.getSelectedCountryData();const dialCode=`+${data.dialCode}`;const num=phoneInput.value.trim();hiddenCountryCode.value=dialCode;hiddenFullNumber.value=dialCode+num;});}}});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.