This is a small static Jeopardy-style web game. The project contains an HTML frontend, styles, and JavaScript that runs entirely in the browser.
Files of interest: index.html · game.js · questions.js · questions.csv · style.css · rules.html
How to run the code locally on your laptop?
-
Option A — Open directly (quick):
- Double-click or open index.html in your browser.
- This runs the app from the
file://URL. The board and built-in questions (from questions.js) will work. - If you want to load a custom CSV of questions, use the Load questions button in the UI and select a
.csvfile.
-
Option B — Run a simple local HTTP server (recommended):
-
Some browsers restrict certain file operations when pages are opened via
file://. Serving the folder over HTTP avoids these issues. -
From the project directory, run one of the commands below and open
http://localhost:8000in your browser. -
Python 3 (built-in):
python3 -m http.server 8000
-
Node (optional):
npx http-server -p 8000
-
After the server is running, visit
http://localhost:8000and the app will load normally.
-
-
Loading questions:
- The app ships with sample questions in questions.js.
- To import your own questions, click the Load questions button and choose a CSV file formatted like questions.csv.
-
Customizing the logo:
- Place an
ecell-logo.pngimage next to index.html to replace the SVG seal.
- Place an
-
Troubleshooting:
- If the UI doesn't load or question import fails, run the HTTP server option and reload the page.
- Use the browser console (DevTools) to inspect errors (
Ctrl+Shift+I/Cmd+Option+I). - Opening from double-clicking may incur CORS Error on
questions.csv