PageSourceSearch

https://www.anishroy.com/_astro/hoisted.34d8285b.js

js anishroy.com collected 2026-10-05 11:30:29 UTC 1,996 bytes, 1 lines download raw bytes

1import{t as h,n as p}from"./hoisted.001c3188.js";document.querySelector(".mx-resume-link")?.addEventListener("click",()=>{h("resume_clicked",{source:"intro"})});const u=document.getElementById("mx-now"),f=document.getElementById("mx-now-text");function d(){!u||!f||(f.textContent=p(),u.hidden=!1)}d();setTimeout(()=>{d(),setInterval(d,6e4)},6e4-Date.now()%6e4);const g="https://github-contributions-api.jogruber.de/v4/iamanishroy?y=last",r=document.getElementById("mx-activity-grid"),a=document.getElementById("mx-activity-scroll");function w(){let e=2654435769;const n=()=>{e|=0,e=e+1831565813|0;let t=Math.imul(e^e>>>15,1|e);return t=t+Math.imul(t^t>>>7,61|t)^t,((t^t>>>14)>>>0)/4294967296},o=[],c=new Date;for(let t=370;t>=0;t--){const s=new Date(c);s.setDate(s.getDate()-t);const l=n(),i=l<.35?0:l<.6?1:l<.8?2:l<.93?3:4;o.push({date:s.toISOString().slice(0,10),count:i===0?0:Math.round(l*10*i)+i,level:i})}return o}const v=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"});function y(e){if(!(!r||!a)){r.textContent="";for(let n=0;n<e.length;n+=7){const o=document.createElement("div");o.className="mx-week";for(const c of e.slice(n,n+7)){const t=document.createElement("span");t.className="mx-cell",t.dataset.level=String(c.level);const s=v.format(new Date(c.date+"T00:00:00"));t.title=`${c.count} commits · ${s}`,o.appendChild(t)}r.appendChild(o)}a.scrollLeft=a.scrollWidth}}fetch(g).then(e=>e.ok?e.json():Promise.reject(e.status)).then(e=>y(e.contributions)).catch(()=>y(w()));let m=!1;a?.addEventListener("click",()=>{if(m||!r||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;const e=Array.from(r.querySelectorAll(".mx-cell"));if(e.length){m=!0;for(const n of e)n.style.transition="none",n.style.opacity="0";r.offsetWidth,e.forEach((n,o)=>{setTimeout(()=>{n.style.transition="opacity 350ms ease",n.style.opacity="1"},o*4)}),setTimeout(()=>{for(const n of e)n.style.removeProperty("opacity"),n.style.removeProperty("transition");m=!1},e.length*4+400)}});

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.