From b6b6d024c96663d02c6e0a7061ab76ee47c3bc8c Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Thu, 15 Oct 2026 13:23:48 -0400 Subject: use script.js --- 2026/organizers-notebook.md | 6 +- 2026/organizers-notebook/index.org | 2 +- script.js | 39 +++--- templates/page.tmpl | 257 +------------------------------------ 4 files changed, 27 insertions(+), 277 deletions(-) diff --git a/2026/organizers-notebook.md b/2026/organizers-notebook.md index d12e40ee..3b03411d 100644 --- a/2026/organizers-notebook.md +++ b/2026/organizers-notebook.md @@ -280,7 +280,7 @@ interests you! ## TODO Draft schedule -Times in this schedule are in America/Toronto, which will be UTC-5. +Times in this schedule are in America/Toronto, which will be UTC-5. If you have Javascript enabled, you can hover over the entries to see the times translated into your local time. Graphical view of the scheduleSchedule for SaturdaySaturdaySat 9:00- 9:10 Saturday opening remarkssat-openSat 9:10- 9:30 The Emacs Planning Habits of a Questionably Effective Person: My 40-year journey of planning with Emacs, Org Mode, paper journals, etc.planningSat 9:50-10:10 Controlling Emacs by voice using EmacslistenlistenSat 10:30-11:00 Multi-dimensional information processing with Emacs and Emacspeak: a blind man's perspectiveemacspeakSat 11:10-11:30 ltx-talk: Accessible presentations with ox-beamerltx-talkSat 1:00- 1:20 Plots with ROOTs: Resilient data visualization with Emacs, Org and gnuplotplotsSat 1:40- 2:00 Plain text presentations in GNU Emacs with ffsffsSat 2:20- 2:30 How I solved Org Mode's biggest mobile and collaboration problemsmobileSat 2:50- 3:10 Hyperbole, My Dear WatsonhyperboleSat 3:30- 3:50 Hyperbole Koutliner: The Best Autonumbered, Hyperlinking Outliner for EmacskoutlinerSat 4:10- 4:30 Close the writing accountability gap with EmacswritingSat 4:50- 5:00 Saturday closing remarks / open sessionsat-closeSat 10:30-11:30 Community brainstormingcommunitySat 1:00- 1:15 Emacs as my portable user space across operating platformsportableSat 1:35- 1:55 Emacs everywhere: A fun romp through esoteric operating systemsosSat 2:15- 2:25 My Space Cadet Deck - an Android Stream Deck replacement with deep Emacs integrationcadetSat 2:45- 3:05 El Remoto: browse any GitHub repos without cloning themremoto9 AM10 AM11 AM12 PM1 PM2 PM3 PM4 PM5 PMSchedule for SundaySundaySun 9:00- 9:10 Sunday opening remarkssun-openSun 9:10- 9:20 BONE and gnaw.el: tracking what mattersboneSun 9:40- 9:50 Local file history possibilities in EmacslocalSun 10:10-10:20 hutch: code reviews for the mildly disenfranchisedhutchSun 10:30-10:50 Beyond the Chatbot: Team-Oriented AI in EmacsteamSun 11:10-11:30 Beyond shell history: Saving compilation output in EmacscompileSun 1:00- 1:10 DnD and Org Roam: Becoming a Better DM with EmacsdndSun 1:20- 1:40 bible-gateway: A Two-Edged Sword in EmacsbibleSun 2:00- 2:20 A (sort of) REPL for learning SVGsvgSun 2:40- 3:00 Column-aligning text in EmacsalignSun 3:20- 3:40 Revisiting Emacs Mouse Interactions with AnjuanjuSun 3:50- 4:10 Ghost in the Shell: a libghostty powered terminal for EmacsghostelSun 4:30- 4:40 Sunday closing remarkssun-closeSun 10:00-10:10 prefix-tab-groupsprefixSun 10:20-10:40 Emacs as a Window Manager and concurrencyrauSun 11:00-11:10 Org Babel everywherebabelSun 1:00- 2:00 Meetup/panel about LLMs?llms9 AM10 AM11 AM12 PM1 PM2 PM3 PM4 PM5 PM @@ -623,7 +623,7 @@ AM: 9-12 PM EST, PM: 1-5 PM EST (plus a little extra for setup/transition) Saturday Dec 12 2026 - +
@@ -675,7 +675,7 @@ Saturday Dec 12 2026 Sunday Dec 13 2026 -
+
diff --git a/2026/organizers-notebook/index.org b/2026/organizers-notebook/index.org index 21e51c29..d89a34ba 100644 --- a/2026/organizers-notebook/index.org +++ b/2026/organizers-notebook/index.org @@ -206,7 +206,7 @@ CLOSED: [2026-07-02 Thu 11:35] :CUSTOM_ID: draft-schedule :END: -Times in this schedule are in America/Toronto, which will be UTC-5. +Times in this schedule are in America/Toronto, which will be UTC-5. If you have Javascript enabled, you can hover over the entries to see the times translated into your local time. #+NAME: schedule #+begin_src emacs-lisp :results value replace :exports none :eval never-export :var filename="schedule.svg" diff --git a/script.js b/script.js index c127d3a9..9777c060 100644 --- a/script.js +++ b/script.js @@ -1,8 +1,8 @@ -// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-3.0-or-later + // @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-3.0-or-later /* SeekToTime - simple script to add video time jump functionality to timestamp links - Copyright (C) 2020 Grant Shangreaux + Copyright (C) 2020-2024 Grant Shangreaux and Sacha Chua This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as @@ -36,16 +36,21 @@ function handleSubtitleClick(event) { var video = event.target.getAttribute('data-video'); - var start = event.target.getAttribute('data-start'); - var videoElem = document.getElementById(video); - if (videoElem) { - videoElem.currentTime = parseSeconds(start); - videoElem.scrollIntoView(); - } - if (event.preventDefault) { - event.preventDefault(); - } - } + var start = event.target.getAttribute('data-start'); + const stickyVideo = document.querySelector('.transcript #' + video); + const indexCardVideo = document.querySelector('.vid #' + video); + if (indexCardVideo) { + indexCardVideo.currentTime = parseSeconds(start); + } + if (stickyVideo && window.getComputedStyle(stickyVideo).display == 'block') { + stickyVideo.currentTime = parseSeconds(start); + } else { + indexCardVideo.scrollIntoView(); + } + if (event.preventDefault) { + event.preventDefault(); + } + } window.onload = function initScript() { let subtitles = document.getElementsByClassName('subtitle'); @@ -53,11 +58,11 @@ subtitles[i].onclick = handleSubtitleClick; } } -// @license-end + // @license-end // @license magnet:?xt=urn:btih:90dc5c0be029de84e523b9b3922520e79e0e6f08&dn=cc0.txt txt CC0-1.0 -// Copyright (C) 2021, 2022 Sacha Chua + // Copyright (C) 2021, 2022, 2026 Sacha Chua -function addLocalTimeToSVGs() { + function addLocalTimeToSVGs() { var dateOptions = { year: 'numeric', month: 'numeric', day: 'numeric', hour: 'numeric', minute: 'numeric', @@ -122,7 +127,7 @@ addLocalTimeToSVGs(); } } -// @license-end + // @license-end // @license magnet:?xt=urn:btih:90dc5c0be029de84e523b9b3922520e79e0e6f08&dn=cc0.txt txt CC0-1.0 // Copyright (c) 2021 Sacha Chua - CC0 Public Domain function displayChapters(elem) { @@ -207,7 +212,7 @@ addLocalTimeToSVGs(); if (transcriptDiv.querySelector('.vid')) transcriptDiv.querySelector('.vid').remove(); // already has it - // TODO: Make a copy of the video and place it at the start of the btranscript div, positioned to the left, and sticky, but only on large screens. + // TODO: Make a copy of the video and place it at the start of the transcript div, positioned to the left, and sticky, but only on large screens. const videoCopy = video.cloneNode(true); transcriptDiv.prepend(videoCopy); videoCopy.classList.add('sticky-video'); diff --git a/templates/page.tmpl b/templates/page.tmpl index 85d94a42..cb845818 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -36,70 +36,6 @@ - -class="has-sidebar"> @@ -285,197 +221,6 @@ Last edited - - - + -- cgit v1.2.3