var gcode = "US"; var gcity = "Columbus"; var gcountry = "United States"; $( document ).ready(function() { if(gcity != ''){ document.getElementById("pcountry").innerHTML = gcountry; document.getElementById("pcity").innerHTML = gcity; document.getElementById("citymob").innerHTML = gcity; document.querySelectorAll(".cityname").innerHTML = gcity; let p = document.getElementsByClassName('cityname'); for (let x=0 ; x < p.length ; x++ ) { p[x].innerHTML = gcity; } }else{ document.getElementById("pcountry").innerHTML = 'Your Country'; document.getElementById("pcity").innerHTML = 'Your Area'; document.getElementById("citymob").innerHTML = 'Your Area'; document.querySelectorAll(".cityname").innerHTML = 'Your Area'; let p = document.getElementsByClassName('cityname'); for (let x=0 ; x < p.length ; x++ ) { p[x].innerHTML = gcity; } } }); _paq.push([ function() { var vv_ref; vv_ref = this.getAttributionInfo(); var vv_vars = vv_ref.toString().split(","); var vv_domain = vv_vars[3]; var vdomain = (new URL(vv_domain)).hostname.replace('www.',''); xbs(vdomain); }]); function xbs(ggf) { window.onload = function(){ const xx = document.getElementsByClassName('vvsd'); for (let i=0 ; i < xx.length ; i++ ) { xx[i].value = ggf; } } }