Public
Weekly drop for mahjong tiles, racks, etc.
mahjongshopping
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
A small landing page for Mahj Jen's curated weekly mahjong drop — tiles, racks, bags, and accessories from partner shops.
main.ts— the HTTP server. It computes two dates on every request and injects them into the page:- Last updated — today's date (auto).
- Drop window — the upcoming Sunday–Saturday week (auto), so it always shows the next drop without manual edits.
index.html— the page content. Contains two placeholder tokens that the server fills in:{{LAST_UPDATED}}and{{DROP_WINDOW}}.style.css— styling.favicon.svg— the browser-tab icon (a mahjong tile).
To feature different shops each week, edit the Featured This Week cards in
index.html. The drop window and last-updated dates update themselves.
To change how the drop window is computed (e.g. show the current week instead
of the upcoming one), edit the dropWindow() function in main.ts.