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