${apiData.localCity}`;clockAnalog.insertAdjacentHTML("beforeend",cityDiv.innerHTML);analogClockUpdateTime(keyClock,apiData.diffHour);digitalClockUpdateTimeTz(keyDigital,apiData.localZone)} window.addEventListener('load',function(){let userZone=moment.tz.guess(!0)||Intl.DateTimeFormat().resolvedOptions().timeZone;async function fechDataUserZone(userZone){try{let json=JSON.stringify({_token:_CSRF_});let promise=ajaxCall(_API_+'/timezone?search='+userZone+'©=false&lang=es',json);promise.then((res)=>{if(res.length>0){const r=res[0];geoTimezoneSelected(r.slug)}}).catch((error)=>{console.error('Promise error:'+error)})}catch(error){console.error('Catch:'+error)}};if(userZone){fechDataUserZone(userZone)} document.getElementById('digitalTab').addEventListener('click',()=>{document.getElementById('digitalTab').classList.add('bg-white','text-blue-600','shadow-md','font-semibold');document.getElementById('analogTab').classList.remove('bg-white','text-blue-600','shadow-md','font-semibold');document.querySelectorAll('.cdigital').forEach((el)=>{el.style.display=''});document.querySelectorAll('.canalogic').forEach((el)=>{el.style.display='none'})});document.getElementById('analogTab').addEventListener('click',()=>{document.getElementById('analogTab').classList.add('bg-white','text-blue-600','shadow-md','font-semibold');document.getElementById('digitalTab').classList.remove('bg-white','text-blue-600','shadow-md','font-semibold');document.querySelectorAll('.cdigital').forEach((el)=>{el.style.display='none'});document.querySelectorAll('.canalogic').forEach((el)=>{el.style.display=''})})})