@@ -18,7 +18,6 @@ const speakerNames = (e: (typeof events)[number]) =>
1818 description =" Compact day-of agenda for Warsaw Python Pizza on May 9, 2026."
1919>
2020 <div id =" page" class =" min-h-screen" >
21- <!-- Sticky header -->
2221 <header class =" sticky top-0 z-10 grid grid-cols-[2.5rem_1fr_2.5rem] items-center gap-2 border-b backdrop-blur-md px-4 md:px-8 py-3" >
2322 <h1 class =" m-0 font-mono text-lg md:text-2xl leading-tight text-center col-start-2" >
2423 Agenda for Warsaw Python Pizza, May 9 2026
@@ -29,14 +28,11 @@ const speakerNames = (e: (typeof events)[number]) =>
2928 aria-label =" Switch to dark mode"
3029 class =" inline-flex items-center justify-center w-10 h-10 p-0 border border-primary rounded-full text-primary cursor-pointer col-start-3"
3130 >
32- <!-- sun icon (shown in dark mode) -->
3331 <img id =" icon-sun" src =" /icons/theme-sun.svg" alt =" " aria-hidden =" true" width =" 18" height =" 18" />
34- <!-- moon icon (shown in light mode) -->
3532 <img id =" icon-moon" src =" /icons/theme-moon.svg" alt =" " aria-hidden =" true" width =" 18" height =" 18" />
3633 </button >
3734 </header >
3835
39- <!-- Agenda list -->
4036 <div class =" max-w-4xl mx-auto px-4 md:px-8 pt-5 pb-24" >
4137 <ol id =" agenda-list" class =" list-none grid gap-2 m-0 p-0" >
4238 { events .map ((event , i ) => {
@@ -72,7 +68,6 @@ const speakerNames = (e: (typeof events)[number]) =>
7268 </ol >
7369 </div >
7470
75- <!-- Back to home button -->
7671 <a
7772 id =" home-button"
7873 href =" /"
@@ -176,7 +171,6 @@ const speakerNames = (e: (typeof events)[number]) =>
176171 const toggleBtn = document.getElementById("theme-toggle")!;
177172 const STORAGE_KEY = "compact-agenda-color-mode";
178173
179- // --- Dark mode ---
180174 type Mode = "light" | "dark";
181175
182176 function getInitialMode(): Mode {
@@ -200,8 +194,6 @@ const speakerNames = (e: (typeof events)[number]) =>
200194 applyMode(mode);
201195 });
202196
203- // --- Time highlighting ---
204-
205197 // Parse highlightTime param once; fall back to real clock per tick
206198 const fixedTime: number | null = (() => {
207199 const param = new URLSearchParams(window.location.search).get("highlightTime");
@@ -251,7 +243,6 @@ const speakerNames = (e: (typeof events)[number]) =>
251243 }
252244 });
253245
254- // Auto-scroll once
255246 if (!window.__agendaScrolled) {
256247 const idx = currentIdx ?? nextIdx;
257248 if (idx !== null) {
@@ -263,7 +254,6 @@ const speakerNames = (e: (typeof events)[number]) =>
263254 }
264255 }
265256
266- // Declare global on window for the scroll flag
267257 declare global {
268258 interface Window { __agendaScrolled?: boolean; }
269259 }
0 commit comments