From a66b843f3643201461341d059736e84b8d5ad278 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Nov 2026 01:43:00 +0000 Subject: [PATCH] What's new reel: a drawing for every update without a picture Adds NEWS_ART, a small set of inline-SVG illustrations in one flat, fine-line style (miniature mocks of the part of the site that changed), picked by artOf() from an entry's tags, title, points and kind. Real pictures, new games' thumbnails and tag-to-game matches keep priority. Removes the outlined-numeral no-picture layout; the version is always in the dateline. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Cw2rMBQRqooDjqyiq6B4M3 --- README.md | 2 +- e63334287a3deaa3/news.js | 171 ++++++++++++++++++--- e63334287a3deaa3/news/claude-news-art.json | 16 ++ 3 files changed, 170 insertions(+), 19 deletions(-) create mode 100644 e63334287a3deaa3/news/claude-news-art.json diff --git a/README.md b/README.md index b823014d..6fc75a0c 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the - `e63334287a3deaa3/avismiles.js`: Avis miles (Back Room page and phone page): players who booked a car through Avis claim bonus miles. Opened from the **Avis miles** button the Online panel shows by your miles (social.js), `BackRoomAvisMiles.open()` or a link with `#avis-miles`. Only for a Google sign-in whose account already has a leaderboard node. The form takes the Avis confirmation number, the pick-up date and an optional note, sealed to the admin key (`adminkey.js`'s `BackRoomSeal` of `{ k: 'ac', c, d, n, u: uid, t }`) and written to the player's own node as `ac` (the box) and `act` (when it was sent); `stats.js` carries both on in every write. One claim at a time: a new one replaces one still waiting. The admin page's Stats tab lists claims newer than the last one decided (**Avis miles claims**), opens them with the admin key (with the player's Google email from `ge`), and approves (adding `AVIS_MILES`, 1,000 by default, or another amount) or turns them down in its signed resets: `m` the Avis miles granted in all, `mt` the claim time last decided, `mr` 1 approved / 0 not (leaderboard.js `checkResets` keeps them; every signed write on the admin page carries them on). leaderboard.js hands `m` to miles.js as `p.am` (added up across merged accounts), which adds it to the person's miles everywhere. Nobody but the admin page can grant miles; the dialog shows the claim's state from `act`, `mt` and `mr`. - `e63334287a3deaa3/keybinds.js`: rebindable controls shared by the keyboard Back Room games (2048, Backrooms 1v1–4v4, Boostball, Coil, Escapade, Gridpop, Hail Mary, Kartwheel, Melon Merge, Odd One Out, Quarry, Rumble Karts, Shell Crackers, Slipstream, Spire, Stackfall, Starhop, Tumble Trials, Turbo Trail, Updraft, Driftfall, Asteroid Run, Rampline, Tidewick, Flickerwood, Pulsebox). Plain JavaScript, no dependencies. Each game loads it with ``, lists its actions in `Keybinds.create({game, actions: [{id, label, keys: ['KeyW', 'ArrowUp']}]})` (keys are `e.code` names, so they're physical keys on any layout; mouse buttons are `Mouse0`/`Mouse1`/`Mouse2` in games that pass `mouse: true`), checks input with `KB.is(action, e.code)` and `KB.held(action, keys)` instead of comparing key codes, and opens the panel from a Controls button with `KB.open()`. Changed keys are saved only in the player's browser, under localStorage `keybinds:` as `{v: 1, b: {action: [codes]}}` (only the actions that differ from the defaults; Reset to defaults removes the entry), and never go to Firebase. Esc is never rebindable. Elements with `data-kb="action"` show the current keys and update themselves. The panel takes each game's look from `--kb-*` CSS variables and the game's own button classes; the comment at the top of the file lists the options. To add it to a game, do the same, and keep text inputs (names, room codes, chat) returning before any key lookup. Touch controls don't go through key codes: each game's touch buttons feed its input directly (in Shell Crackers, Quarry and Backrooms they hold actions by id in `tAct`, which the game checks alongside `KB.held`), so they keep working whatever keys are bound, and the Change keys / Controls buttons are hidden in the touch layout (`body.touch`). **Spanish** (lang.js, when the page loads it): keybinds.js adds the panel's own words and common key and action names once (guarded by `if (window.BackRoomLang)`), and builds its messages and aria-labels with the action and key names in the page's language (a game's own dictionary supplies its action names); in English, or without lang.js, every string is as before. - `e63334287a3deaa3/school.js`: Your school (Back Room page, the home page's copy of it and the phone page). A small box at the end of the page header where each player picks the school they go to: one button per school plus Not listed, as a radio group (click, or the arrow keys). The schools are Avenues (New York) and St. Andrew’s Scots School (`standrews`, Olivos, Buenos Aires, Argentina; a bilingual English–Spanish school, so lang.js's Spanish matters there); to add one, add a row to `SCHOOLS` (`id`, a short lowercase id that never changes, `name`, `place`). The script fills in every empty `[data-school]` element: the Back Room page has one at the end of its `
` (so the home page's `reveal()`, which copies the header, gets it too, and loads the script after `events.js`), and the phone page has one at the end of its header. Being in the header, layout.js never moves it. **Its shape:** with nothing picked it spans the whole column (on a screen 860 px or wider the title, the search and the choices share one row). Once a school is picked it folds to one small line, the school ("Avenues · New York", or the Not listed line) and a pencil (`.sch-ed`, "Change school"); the pencil opens the search and choices again and turns into Done, Esc folds it back, and picking a school folds it. The fold is only drawn (`.picked` / `.editing` on the box); nothing new is stored. **Storage:** localStorage `school:v1`, the school's id (`avenues`) or `other` for Not listed; no key means nothing picked yet. It is in account-nudge.js's `KEYS`, so a Google account's save carries it to the player's other devices (visible to other signed-in browsers, like everything in that save). Nothing else is stored online. **Search and Add my school:** only schools marked `suggest: true` in `SCHOOLS` (Avenues) are shown before a search, plus the one the player picked; every other school is found by typing in the search box above the choices, which filters them as you type (name and place, accents ignored; Enter picks the first match). With no match, or from the dashed "Add my school" button, a small form asks for the school's name, its city or town and its country (only the general area; it says not to put a name or address) and sends one note through the suggestion box (`BackRoomFeedback.send` in feedback.js, the same sealed `feedback` documents, limits and admin Feedback tab, so no new storage or rules): "School request: (, ). Sent from Your school." The player's choice becomes Not listed, and localStorage `school:req` ({n, p, t}, also in account-nudge.js's KEYS) remembers what they asked for, so the box says "You asked us to add … We'll add it soon." To add a requested school, read it on the admin page's Feedback tab and add its row to `SCHOOLS`. Nothing uses the choice yet: other scripts can read it with `BackRoomSchool.get()` (the row, or null) and hear changes through the `backroom:school` event on `document` (`{id}`). -- `e63334287a3deaa3/news.js`: What's new (Back Room). A panel under the page header whose top is a slow reel of the latest `SLIDES` (10) entries, one at a time: a masthead line (What's new with the unseen dot, a running index such as 03 / 10 that moves on when tapped, and All updates, which opens the full list), then the entry's picture (its `img`, else its first new game's `m/thumbs/` picture, else that of a game named in its `tags` that has a card on the page; with none, the text takes the width and the version stands at the right as a tall hairline numeral), a dateline (kind, version, day), the title as a headline and as many of its points as fit whole in the fixed height, and a hairline along its foot that fills across the whole reel. Every `DWELL` ms (7 s) it eases to the next entry; it holds still while hovered, focused from the keyboard, scrolled away, in a hidden tab or while the list is open; a swipe or the arrow keys move it; with reduced motion it never moves by itself and switches without sliding. Tapping a slide opens the list at that entry. Its height never changes as it moves, and on a phone the New games row is one line that scrolls sideways. It sits above the Party panel, on the Back Room page and the phone page (one `