This commit is contained in:
Joshua Seigler 2025-07-15 22:14:42 -04:00
parent cc31c50b27
commit 4898a98271
53 changed files with 198 additions and 179 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
assets/main-Cn83fOYW.js Normal file
View file

@ -0,0 +1 @@
(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const s of t.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function i(e){if(e.ep)return;e.ep=!0;const t=n(e);fetch(e.href,t)}})();function d(r){const{target:o}=r,n=document.querySelector("#effects");if(n==null)return;Array.from(n.children).filter(e=>e.__effectParent===o?!0:l(r)&&Array.from(r.changedTouches).some(t=>t.identifier===e.__effectTouch)).forEach(e=>{e.getAnimations().forEach(t=>{if(+(t.currentTime??0)<100){t.pause(),n.removeChild(e);return}t.pause(),t.updatePlaybackRate(-.25),t.play(),t.addEventListener("finish",()=>{n.contains(e)&&n.removeChild(e)})})})}function f(r){return r!==null&&typeof r.matches=="function"}function l(r){return r.type.startsWith("touch")}function a(r){const{target:o}=r,n=document.querySelector("#effects"),i=window.getComputedStyle(f(o)?o:document.body).getPropertyValue("--glowColor");let e=[];if(l(r))e=Array.from(r.targetTouches).map(t=>({top:t.clientY-5,left:t.clientX-5,width:10,height:10}));else{if(!f(o)||!o.matches("a[href],.nav-toggle-button,button,input[type='radio']"))return;e=Array.from(o.getClientRects()),Array.from(o.children).forEach(t=>{e.push(...Array.from(t.getClientRects()))})}e.forEach(t=>{var m;const{top:s,left:h,width:p,height:y}=t,c=document.createElement("div");l(r)?c.__effectTouch=(m=r.targetTouches.item(0))==null?void 0:m.identifier:c.__effectParent=o,c.classList.add("effect-instance");const u="10rem";c.style.top=`calc(${s+window.scrollY}px - ${u})`,c.style.left=`calc(${h+window.scrollX}px - ${u})`,c.style.width=`calc(${p}px + 2 * ${u})`,c.style.height=`calc(${y}px + 2 * ${u})`,c.style.setProperty("--glowColor",i),n==null||n.appendChild(c)})}function g(){document.querySelectorAll("pre[class^=language]").forEach(r=>{const o=document.createElement("button");o.classList.add("copy-button"),o.addEventListener("click",()=>{r instanceof HTMLElement&&navigator.clipboard.writeText(r.innerText)}),r.appendChild(o)})}function E({target:r}){!f(r)||!r.matches("a[href][target=_blank]")||umami==null||umami.track(`Link: ${r.innerText??r.getAttribute("href")}`,{from:document.location.href,destination:r.getAttribute("href")})}document.addEventListener("mouseenter",a,!0);document.addEventListener("focus",a,!0);document.addEventListener("touchstart",a,!0);document.addEventListener("mouseleave",d,!0);document.addEventListener("blur",d,!0);document.addEventListener("touchend",d,!0);document.addEventListener("touchcancel",d,!0);document.addEventListener("click",E,!0);document.addEventListener("DOMContentLoaded",g);

View file

@ -1 +0,0 @@
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))o(e);new MutationObserver(e=>{for(const n of e)if(n.type==="childList")for(const i of n.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function s(e){const n={};return e.integrity&&(n.integrity=e.integrity),e.referrerPolicy&&(n.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?n.credentials="include":e.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function o(e){if(e.ep)return;e.ep=!0;const n=s(e);fetch(e.href,n)}})();function l({target:t}){const r=document.querySelector("#effects");if(r==null)return;Array.from(r.children).filter(o=>o.__effectParent===t).forEach(o=>{o.getAnimations().forEach(e=>{if(+(e.currentTime??0)<100){e.pause(),r.removeChild(o);return}e.pause(),e.updatePlaybackRate(-.25),e.play(),e.addEventListener("finish",()=>{r.contains(o)&&r.removeChild(o)})})})}function u(t){return t!==null&&typeof t.matches=="function"}function f({target:t}){const r=document.querySelector("#effects");if(!u(t)||!t.matches("a[href],.nav-toggle-button,button,input[type='radio']"))return;const s=window.getComputedStyle(t).getPropertyValue("--glowColor"),o=Array.from(t.getClientRects());Array.from(t.children).forEach(e=>{o.push(...Array.from(e.getClientRects()))}),o.forEach(e=>{const{top:n,left:i,width:a,height:m}=e,c=document.createElement("div");c.__effectParent=t,c.classList.add("effect-instance");const d="10rem";c.style.top=`calc(${n+window.scrollY}px - ${d})`,c.style.left=`calc(${i+window.scrollX}px - ${d})`,c.style.width=`calc(${a}px + 2 * ${d})`,c.style.height=`calc(${m}px + 2 * ${d})`,c.style.setProperty("--glowColor",s),r==null||r.appendChild(c)})}function p(){document.querySelectorAll("pre[class^=language]").forEach(t=>{const r=document.createElement("button");r.classList.add("copy-button"),r.addEventListener("click",()=>{t instanceof HTMLElement&&navigator.clipboard.writeText(t.innerText)}),t.appendChild(r)})}function h({target:t}){!u(t)||!t.matches("a[href][target=_blank]")||umami==null||umami.track(`Link: ${t.innerText??t.getAttribute("href")}`,{from:document.location.href,destination:t.getAttribute("href")})}document.addEventListener("mouseenter",f,!0);document.addEventListener("focus",f,!0);document.addEventListener("mouseleave",l,!0);document.addEventListener("blur",l,!0);document.addEventListener("click",h,!0);document.addEventListener("DOMContentLoaded",p);