PageSourceSearch

https://www.tourisme-gujanmestras.com/app/dist/gujanmestras/addons…/js/woody-addon-tides-timer.f6e5c296ba.mjs

js tourisme-gujanmestras.com collected 2026-10-10 02:31:09 UTC 1,452 bytes, 1 lines download raw bytes

1function H(t){let a=0,o=0,e=0,n=0,l=null;const d=t.querySelector(".counter-seconds"),f=t.querySelector(".counter-minutes"),p=t.querySelector(".counter-hours"),q=t.querySelector(".tides-icon"),S=t.querySelector(".tides-counter-title.down"),y=t.querySelector(".tides-counter-title.up"),L=parseInt(t.querySelector(".tides-counter").dataset.offsetUp),_=parseInt(t.querySelector(".tides-counter").dataset.offsetDown),g=t.querySelector(".tides-counter").dataset.token,j=function(){clearInterval(l),l=setInterval(()=>{a++,a==600&&(a=0,c()),o--,o==-1&&(o=59,e--,e==-1&&(e=59,n--,n==-1&&(o=0,e=0,n=0,c(),clearInterval(l)))),f.innerHTML=e.toString().padStart(2,"0"),d.innerHTML=o.toString().padStart(2,"0"),p.innerHTML=n.toString().padStart(2,"0")},1e3)},c=async function(){t.classList.add("ajaxload");const h=await(await fetch("/wp-json/woody/tides?token="+g,{headers:{"Content-Type":"application/json"}})).json(),w=parseInt(Date.now()/1e3);let s=0,I=null,u=null;Object.entries(h).every(([r,i])=>(r=parseInt(r),i=="up"&&(r+=L),i=="down"&&(r+=_),r>w?(I=r,u=i,!1):!0)),s=parseInt(I-w),n=parseInt(s/3600),e=parseInt((s-3600*n)/60),o=parseInt(s-3600*n-60*e),p.innerHTML=n.toString().padStart(2,"0"),f.innerHTML=e.toString().padStart(2,"0"),d.innerHTML=o.toString().padStart(2,"0"),q.classList.add(u),u=="up"?(S.style.display="none",y.style.display="block"):(S.style.display="block",y.style.display="none"),j(),t.classList.remove("ajaxload")};c()}export{H as init};

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.