Skip to content

Commit d083cf1

Browse files
committed
Add a contact page
- New /contact/ page: optional name, optional email for a reply, topic and message. Messages are sealed to the admin key and saved in Firestore `feedback` exactly like feedback-box notes (game 'site'), so they show on the admin page's Feedback tab. No rules change. - Contact link added to the footer of every public page and the showcase page, and to the About page. - privacy.html: Contact section now points to the contact page; the feedback paragraph mentions the contact page. sitemap.xml: added /contact/. - README entry and What's new 1.41.4 (English and Spanish). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016ZY4GXPpfVGK23SCzkMoxB
1 parent 7d0aff4 commit d083cf1

20 files changed

Lines changed: 261 additions & 17 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the
233233
- The page's scripts (inline, at the end): the board drawing and its table are built from `case/layout.json`, so they always match the model; the **workbench** near the top (`#bench`, the dark panel; its styles are the `.wb` rules and its code the last block of the script) has three tabs. *Build steps* is a 3D viewer with 12 steps (`STEPS`: which parts show, which are lit, how far they are pulled apart, which way the camera looks, and the step's text); it fetches Three.js r128 from cdnjs when the panel scrolls into view and loads the small in-place meshes in `case/view/` (a binary-STL reader is in the page; drag to turn, the steps still read without 3D). *Floor plan* draws four layers (front shell, buttons and pad, circuit board, battery and back shell) from `case/view/plan.json`, and clicking a part fills the side panel from `INFO` (name, part number, price, pin, note). *The working* recomputes play time, charging, delay, weight and cost from the controls and lists each check with its limit and its sum written out (`Work.calc`); at the plan settings it must agree with the Specifications and Cost tables (35 mA, 30 h, 4.2 h, $23.20), so change both together; the per-unit prices for each batch size are `COST` in that block and the first table of the Cost section. `case/view_parts.py` writes `case/view/` (run it after `daedalus_case.py`): simplified shells, the printed buttons in place, and plain blocks at datasheet sizes for the bought parts. When the assembly steps, a pin, a price or a part changes, update `STEPS`, `INFO` and the written sections together; the Specifications table and the parts option tables are static text: when a part, a size in `P` or a setting in the sketch changes, change them too; the tester polls `navigator.getGamepads()` and lights the buttons in the sketch's order (`NAMES` must match the `Btn` enum in the sketch). The front-view drawing near the top is static SVG: its body outline is generated from `outline_right` (lines and arcs through the same tangent points as `rounded_polygon` in the model, at 5 px per mm with X = 380 + 5x and Y = 215 − 5y), and the buttons are placed by hand at the same scale; if `P` changes, redraw both. `preview.jpg` shows the same drawing.
234234
- `applied-robotics/`: only `preview.jpg` (used by the Engineering cards). The Applied Robotics Workbench (six SVG circuit sheets for a two-wheel rover, bench calculators, an Arduino sketch and a parts list) is hosted on the [applied-robotics](https://github.com/ASCoding11/applied-robotics) repo's own GitHub Pages site, https://ascoding11.github.io/applied-robotics/, and the cards link there. Keep it there rather than copying it into this repo, so there is one copy to update.
235235
- `about/` and the guides (`hype-cycle-exchange/guide/`, `boxed/guide/`, `docket/guide/`, `prompted/guide/`): plain reading pages, written in our own words, that explain the site and how to get the most out of each public tool (running Hype Cycle Exchange in class, AMC 10 and AIME prep with Boxed, planning study time with Docket, handling supplemental essays with Prompted). They use the `.guide` styles at the end of `site.css`, are in `sitemap.xml`, and are linked from the Projects and Productivity cards ("…guide" buttons) and from the footers (About). No ads on them. When a tool changes in a way the guide describes (rules, limits, modes), update its guide too.
236+
- `contact/`: the contact page, linked from the footer of every public page (and the showcase page), from About and from the privacy policy. A form with an optional name, an optional email for a reply, a "What's it about?" choice (kind `other`, `bug` or `idea`) and the message. Each message is stored exactly like a note from the Back Room's feedback box (`feedback.js`): one Firestore document in `feedback` = `{uid, ts, game: 'site', kind, box}`, with `box` = `{msg, name, contact, page}` sealed to the admin key, so it shows on the admin page's Feedback tab with the name and email, and no rules change was needed. The admin public key and the seal function are copied into the page (from `e63334287a3deaa3/adminkey.js`) so this public page doesn't name the Back Room folder: **if the admin key is ever replaced, replace `PUB` in `contact/index.html` too.** Shares feedback.js's limits through localStorage `fbk:sent` (one message a minute, five a day per browser); the unsent draft is kept as `contact:draft`. A hidden `website` field catches simple bots (if it's filled in, the page shows Thanks and sends nothing). Counted in analytics as `contact`; in `sitemap.xml`.
236237
- `docket/`: Docket, a study planner for Canvas students (plain JavaScript, no backend; everything is saved in the student's browser). It imports assignments three ways: a bookmarklet that reads the Canvas API from the student's logged-in Canvas tab and hands the data to Docket in the URL hash (its source is the `bmSrc` block in the page), the Canvas calendar feed / any `.ics` or Google Calendar `.zip` export, or pasted text from a Canvas assignments page. It estimates time and difficulty per assignment, then schedules study sessions around calendar events and the student's activities. No ads on this page.
237238
- `prompted/`: Prompted, a supplemental essay tracker for college applicants (plain JavaScript, no backend; everything is saved in the student's browser under `prompted:v1`). Students add schools with a plan and deadline, paste a supplement page to pull out each prompt with its word or character limit and whether it's optional (`parsePrompts` in the page), write drafts with a live count, save and restore versions, and start new essays from existing drafts. A reuse map groups similar prompts across schools by kind (Why us, academic interest, community, and so on). Backups download as JSON; all drafts download as one .txt. `prompted/schools.js` is the school library: the U.S. News 2027 top 50 national universities with their 2026–27 supplement prompts (as short summaries in our own words, with real limits), choose-N sets, college- or program-specific prompts keyed to the student's intended major, application plans and deadlines. UC campuses share one application, so they're added as a single school. Update the file each August when schools publish new prompts, and keep every prompt as a summary in your own words: don't paste schools' official prompt text into this repo, even though it's posted publicly. No ads on this page.
238239
- `e63334287a3deaa3/m/`: the phone version of the Back Room: every game (the Back Room ones plus Hype Cycle Exchange) as a tile, under the same six headings as the computer version, in the same play-time order (Cars, Shooters, Parkour, Party games, Puzzles, Arcade; `MODES`), with a row of six buttons above the lists that jump to each heading (`.gnav`), the Turkey Week switch under the title during the event (`data-turkey-switch` in the header's `.tkrow`; see `events.js`), and grouped by kind under each (each `GROUPS` row is `[kind, games, mode, 1 for the puzzle tiles]`, mode `'cars'`, `'shooters'`, `'parkour'`, `'partygames'`, `'puzzles'` or `'arcade'`, with the rows of one mode kept together; Hype Cycle Exchange is under Arcade). Puzzles starts with the small tiles (`.grid.pz`: what it is in plain words, then its name): Deepword, Trivium, the listed daily puzzles and, last, Daily Puzzles (the fifteen least played puzzles, Boxed among them, came off on 18 Nov 2026: see the Back Room page above; their thumbnails stay). The daily puzzles aren't counted as games; Deepword and Trivium are (a `1` at the end of their rows), and the Puzzles heading says "12 puzzles + 4 games". At the bottom of Puzzles, a small tab (`.ask.ask-sm`, `pzAsk`) asks "Miss a puzzle we took away, or want a new one?" with a Tell us button (`data-feedback-open="Puzzles: "`). The Daily Puzzles tile (`daily`, not counted, a whole row wide with `.pz-all` so the puzzle rows come out even) is the page with every listed puzzle and the streak; it opens in the frame like a game, and the daily games it links to open in the same frame (its `scope` is the whole Back Room folder). After the games, a "Want more games, or have an idea?" note has a Tell us button that opens the feedback bar. A game opens full screen in a frame under a thin bar with the way back, and the last one played shows at the top as Keep playing. The Leaderboards section (leaderboard.js) comes after the games. Its own look is dark; it also has a light look (the light variables at the top of its `<style>`, including the section colours `--c-arcade` … `--c-partygames`), used when Light is chosen with the theme switch in its header (`data-theme-switch`, next to Main site), or in Auto on a phone in light mode (see `theme.js`). It can be added to a phone's home screen (`manifest.webmanifest`, `icon-*.png`), where it runs like an app; on Android it also goes full screen and turns sideways games sideways. Tiles use the small copies in `m/thumbs/` (560 × 350) rather than the full previews. On a phone, entering the code on the home page opens this page in place of the Back Room, still at the home page's address, and invite links (`#<room>`) open their game straight away. The Back Room page also links to it (`data-direct`, so the home page opens it as its own page instead of in its game layer); that address is the one to add to a home screen. It isn't in the sitemap or linked from the public pages.

‎about/index.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ <h2>Ads and privacy</h2>
5858
<p>Some game pages show ads from Google AdSense, which help pay for the site. The study tools have no ads. The <a href="../privacy.html">privacy policy</a> explains what data the site uses and how.</p>
5959

6060
<h2>Contact</h2>
61-
<p>Found a bug or have an idea? The site's code is on GitHub at <a href="https://github.com/ASCoding11/ASCoding11.github.io" rel="noopener">ASCoding11/ASCoding11.github.io</a>, where you can see how it's made and suggest changes.</p>
61+
<p>Found a bug, have an idea or a question? Send a message from the <a href="../contact/">contact page</a>. The site's code is also on GitHub at <a href="https://github.com/ASCoding11/ASCoding11.github.io" rel="noopener">ASCoding11/ASCoding11.github.io</a>, where you can see how it's made and suggest changes.</p>
6262
</article>
6363
<section aria-labelledby="more">
6464
<h2 id="more">More from the site</h2>
6565
<ul class="related"><li><a href="../hype-cycle-exchange/guide/"><b>How to run Hype Cycle Exchange in class</b><span>Teaching investing with a live stock market game</span></a></li><li><a href="../boxed/guide/"><b>How to prepare for the AMC 10 and AIME</b><span>A practice plan, with Boxed</span></a></li><li><a href="../docket/guide/"><b>How to plan your study time around Canvas</b><span>Turning a list of due dates into a plan</span></a></li></ul>
6666
</section>
67-
<footer>© 2026 Arjun · <a href="../about/">About</a> · <a href="../privacy.html">Privacy policy</a></footer>
67+
<footer>© 2026 Arjun · <a href="../about/">About</a> · <a href="../contact/">Contact</a> · <a href="../privacy.html">Privacy policy</a></footer>
6868
</div>
6969
<script src="/analytics/tracker.js" data-site="about" defer></script>
7070
<script src="/account/account.js" defer></script>

‎boxed/guide/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ <h2>Where the problems come from</h2>
7878
<h2 id="more">More from the site</h2>
7979
<ul class="related"><li><a href="../../hype-cycle-exchange/guide/"><b>How to run Hype Cycle Exchange in class</b><span>Teaching investing with a live stock market game</span></a></li><li><a href="../../docket/guide/"><b>How to plan your study time around Canvas</b><span>Turning a list of due dates into a plan</span></a></li><li><a href="../../prompted/guide/"><b>How to stay on top of college supplemental essays</b><span>Planning, reusing and finishing supplements</span></a></li></ul>
8080
</section>
81-
<footer>© 2026 Arjun · <a href="../../about/">About</a> · <a href="../../privacy.html">Privacy policy</a></footer>
81+
<footer>© 2026 Arjun · <a href="../../about/">About</a> · <a href="../../contact/">Contact</a> · <a href="../../privacy.html">Privacy policy</a></footer>
8282
</div>
8383
<script src="/analytics/tracker.js" data-site="guide-boxed" defer></script>
8484
<script src="/account/account.js" defer></script>

0 commit comments

Comments
 (0)