Skip to content

holi-lab/random_box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 

Repository files navigation

random_box β€” 🎰 Paper Jackpot

A single-page casino slot machine that sends the visitor to a random paper from a curated set of Yohan Jo (HOLI) Lab publications.

Made to live behind a QR code (e.g. printed on a t-shirt for a conference): scan it β†’ pull the lever β†’ win a paper.

How it works

  • index.html is fully self-contained β€” no network needed to pick a paper, so it works even on flaky conference Wi-Fi.
  • The visitor taps the lever (or anywhere on the cabinet); the title reel and three symbol reels spin and land on a random paper, with a JACKPOT flash, confetti, and a short Web-Audio jingle.
  • After landing it shows the paper title, a glowing OPEN PAPER β†’ button, and a 3-second auto-redirect to that paper's link.

The papers (curated)

The set is hardcoded in the PAPERS array near the top of the <script> in index.html (11 papers as of this writing). To add/remove/replace a paper, edit that array β€” each entry is {t: "Title", u: "https://link"}. The reel and symbol counts adapt automatically.

Note: unlike the earlier version, this page no longer live-fetches the whole publication list β€” it only shows the curated PAPERS.

Preview params (for testing, not for the QR)

  • ?stay β€” spin and land, but don't auto-redirect (shows the choice).
  • ?demo β€” auto-pull the lever on load (no tap needed).

These can be combined: index.html?demo&stay.

Deploy

  1. Push to main.
  2. GitHub β†’ repo Settings β†’ Pages β†’ Source: Deploy from a branch, Branch main / / (root).

Live URL: https://holi-lab.github.io/random_box/ β€” point the QR code here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages