From e3518fc2d8cbfc3446e122c61545e657cb5769b3 Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Sun, 31 May 2026 13:21:09 -0700 Subject: [PATCH] laklok.com: custom clock-themed boot animation Mirrors the notepat.com boot canvas pattern. isLaklok detection + a warm terracotta scene: animated clock face (hour/minute/second hands), italic 'laer klokken' title with a pulsing glow, rising embers, and the live clock-chat history fetched from /api/chat-messages?instance=clock. Co-Authored-By: Claude Opus 4.8 (1M context) --- system/netlify/functions/index.mjs | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/system/netlify/functions/index.mjs b/system/netlify/functions/index.mjs index eda413ca11..9ef4e04c17 100644 --- a/system/netlify/functions/index.mjs +++ b/system/netlify/functions/index.mjs @@ -1300,6 +1300,8 @@ async function fun(event, context) { var isDeviceMode=qs.indexOf('device=true')>=0; // Notepat.com: piano-themed boot animation var isNotepat=location.hostname==='notepat.com'||location.hostname==='www.notepat.com'||location.pathname==='/notepat'||location.pathname.startsWith('/notepat?')||location.pathname.startsWith('/notepat/'); + // laklok.com: laer klokken clock-themed boot animation + var isLaklok=location.hostname==='laklok.com'||location.hostname==='www.laklok.com'||location.pathname==='/laklok'||location.pathname.startsWith('/laklok?')||location.pathname.startsWith('/laklok/'); // Notebook: Python/Jupyter notebook with scientific aesthetic var isNotebook=qs.indexOf('notebook=true')>=0; // Boot animation mode: 'serious' (clean/refined, default) or 'aesthetic' (VHS/glitch). @@ -1372,6 +1374,9 @@ async function fun(event, context) { var NP_KEYS=[];var NP_PARTICLES=[];var NP_LAST_KEY=0;var NP_KEY_INTERVAL=120; var NP_NOTE_NAMES=['C','D','E','F','G','A','B']; var NP_KEY_COLS=[[255,107,157],[78,205,196],[255,217,61],[149,225,211],[255,154,162],[170,150,218],[112,214,255],[255,183,77]]; + // 🕰️ laklok.com (laer klokken) boot state — recent clock-chat history. + var LAK_MSGS=[]; + if(isLaklok){(async function(){try{var r=await fetch('/api/chat-messages?instance=clock&limit=12');if(r.ok){var d=await r.json();if(d&&d.messages)LAK_MSGS=d.messages;}}catch(e){}})();} // 📊 Notebook scientific aesthetic boot animation state var NB_DATA_POINTS=[];var NB_GRID_LINES=[];var NB_WAVEFORMS=[];var NB_LAST_SPAWN=0; var NB_COLS_DARK=[[0,180,255],[0,255,180],[120,220,255],[80,200,120],[100,255,255]]; @@ -1447,6 +1452,38 @@ async function fun(event, context) { var nbLogFS=4*S;x.font=nbLogFS+'px monospace';var nbLogY=30*S; for(var li=0;li '+ln.text,8*S,ly);} x.globalAlpha=1;requestAnimationFrame(anim);return;} + // 🕰️ laklok.com (laer klokken) clock-themed boot animation + if(isLaklok){ + // Warm terracotta vertical gradient. + var lkG=x.createLinearGradient(0,0,0,H);lkG.addColorStop(0,isLightMode?'#c98a5e':'#7c4528');lkG.addColorStop(1,isLightMode?'#9c4e30':'#4a2412');x.fillStyle=lkG;x.fillRect(0,0,W,H); + // Subtle scan lines. + x.globalAlpha=0.05;x.fillStyle='#000';for(var lyy=0;lyy