From 109e088182862a9e6cf5dd6b855ab8ec5a7f875c Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Nov 2026 10:25:59 +0000 Subject: [PATCH] Phone page: a way into the admin page door.js now also works on the phone page: a second door word in the Your school search box (checked by digest only), three taps on the s of the title, then the existing keypad and password. From the home page's phone frame the admin page opens in the whole tab. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Cw2rM74nXSN426CQRHrrjU --- README.md | 2 +- e63334287a3deaa3/door.js | 54 +++++++++++++++++++++++++---------- e63334287a3deaa3/es.js | 1 + e63334287a3deaa3/m/index.html | 5 +++- 4 files changed, 45 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 06d7618d..2fb961fb 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the - `e63334287a3deaa3/holiday.js`: the holidays (Back Room), loaded only by seasons.js, only from November 27 to January 6, and only on the Back Room page, its copy on the home page and the phone page. Two things. **The cabin**: once per browser tab (sessionStorage `holiday:seen`) the page opens on a log cabin at night, drawn in code as pixel art on one `` (`#hol-cabin`, `drawCabin`): log walls, a window with snow falling outside, a tree with presents, a stone fireplace with stockings and a menorah and a diya on the mantel, lights under the beam, and in the middle an old TV showing "THE BACK ROOM / PRESS START". Clicking the TV (or Enter or Space) zooms into its screen, the picture whites out and the page comes up out of the white; Skip or Esc goes straight in with a quick fade. The scene is laid out around the TV at a whole number of the screen's own pixels per art pixel (`layoutCabin`; device pixels, not CSS pixels, so every art pixel is the same size on any display and a phone held sideways gets a bigger room), so on a phone you see the TV, the wall and the rug and on a wide screen the whole room. The cabin opens the page; it never drops onto one already in use: if the visitor has clicked, typed or scrolled before holiday.js arrived, or the page has been on screen for over 4 seconds by then (slow Wi-Fi; `start(busy)` from seasons.js), is in a text box, or has a game open over the page (an invite link, or a game still open when November 27 arrives), there is no cabin that time, and since `holiday:seen` isn't set it opens on the next load of that tab; the Cabin button always works. While it is up the keyboard belongs to it (`ckey`): focus moves to the cabin, Tab goes between the TV and Skip only, Esc skips, and keys don't reach the page behind, so Esc doesn't also close a pop-up the page opened underneath (the sign-in box); when it closes, focus goes back to where it was. The snow behind it is held still (`BackRoomSeasons.hold`) and the scan lines are hidden until it leaves, and it is drawn about 14 times a second. **The retro TV look** (the Retro TV switch at the top right of the page, `#hol-bar`, on by default; localStorage `holiday:tv` = `0` when off): a `tv-on` class on `` swaps the fonts for pixel ones (Pixelify Sans for reading, Press Start 2P for headings, both from Google Fonts like the site's other fonts, and only fetched once the look is on), squares every corner, gives cards hard shadows, shows the game pictures in big pixels (each `` is swapped for a small copy of itself, its address kept in `data-hol-src` and put back when the look is switched off; the copies are made one picture at a time with a pause between, `picNext`, because shrinking thirty at once froze a slow laptop for a second or two), lays faint scan lines with a slow rolling band over the page (`#hol-crt`, a fixed layer that ignores the pointer, z-index 900, under the home page's game layer) and asks seasons.js to draw its snow and decorations in big pixels (`BackRoomSeasons.pixel`). Switched off, the page is the plain winter look. The Cabin button beside the switch shows the cabin again. The ❄ button in the footer (seasons.js) turns all of it off; with prefers-reduced-motion the cabin is a still picture, there is no zoom and no rolling band. Testing: `?season=holiday` (add `&nocabin=1` to skip the cabin, `&cabin=1` to see it again), `BackRoomHoliday.cabin()`, `BackRoomHoliday.tv(true|false)`. To end the holidays on another day change `HOLIDAY_TO` in seasons.js; the What's new entry for it is dated November 27, and news.js keeps an entry dated in the future hidden until that day. The winter tip: the first time someone opens one of these pages in a holiday season, a small note at the top right says the Retro TV look can be switched at the top of the page, with a snapshot of the switch (`e63334287a3deaa3/holiday-tip.jpg`) and a working copy of it; it waits for the cabin to close and for no game to be open, and shows once per browser per season (localStorage `holiday:tip` = the year the season starts). `?tip=1` shows it again for testing. - `e63334287a3deaa3/events.js`: short in-game events, loaded by the games that take part (before their own script, like `autores.js`). It answers two questions so the games agree: is the event running (by the viewer's own clock), and has this browser switched it off. **Turkey Week** runs November 15 to 26 (Thanksgiving Day), 2026 (`TURKEY_FROM`, `TURKEY_TO` at the top of the file; change those to move or repeat it). Taking part: Shell Crackers, Rumble Karts, Melon Merge, Coil, Boostball, Odd One Out, Driftfall, Backrooms, Tumble Trials, Chromaflage, Slipstream and Trivium; each game's own entry says what it draws. Hunch, Quartets, Crosslet and Poopdle don't load the file: they only have their own puzzle for November 26. `BackRoomEvents.turkey.live()` / `.on()` / `.set(true|false)`; `.hat(THREE)` is a pilgrim hat geometry with vertex colours shared by the 3D games. **There is one on/off switch for all the games, and it is outside them**: an empty `