Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ The home page lists one **Games Hub** card (`games/`). Individual games live on
- **Turned or Flipped** (`games/turn/`) — reference vs probe shape; tap whether the probe is rotated or mirrored; best streak
- **Spot the Change** (`games/change/`) — a grid of shapes blinks off and returns with one cell changed in shape or color; tap it; 3×3 growing to 4×4, look time shrinks with the streak; best streak
- **More Dots** (`games/more/`) — two panels of dots; tap Left, Equal, or Right for the side with more; counts get closer and view time shrinks with the streak; best streak
- **Casual Quiz** (`games/quiz/`) — multiple-choice on India, Tamil Nadu, science, technology, and more, plus a General mix. Switch topic or level anytime. Marks stay in `localStorage`. Questions live only in `games/quiz/questions.json`.

#### Casual Quiz (unlisted)

**Casual Quiz** (`games/quiz/`) is no longer linked from the Games Hub, but the page still works at its URL. Multiple-choice on India, Tamil Nadu, science, technology, and more, plus a General mix. Marks stay in `localStorage`. Questions live only in `games/quiz/questions.json`.

#### How to add or change quiz questions

Expand Down Expand Up @@ -141,6 +144,7 @@ node scripts/site-check.mjs
## Notes

- Shared chrome lives in `assets/site.css` and `assets/site.js`.
- Game pages put `class="game-page"` on `<body>`; `site.css` uses it for mobile tap handling (no double-tap zoom, no tap text selection, 44px tap targets).
- Small libraries used by a few tools are vendored under `assets/vendor/`.
- Existing tool URLs (`/md`, `/jwt`, `/transform`, and the rest) are unchanged.
- New pages set `data-root` and `data-tool` so the shared nav/footer inject correctly.
28 changes: 28 additions & 0 deletions assets/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -1728,3 +1728,31 @@ body[data-tool="collab"] .site-footer { display: none; }
flex: 1 1 0;
min-width: 0;
}

/* Focus Games: mobile tap handling.
Double-tap zoom is turned off on game pages via touch-action (pinch zoom
still works), taps don't select text or flash a highlight, and controls
keep a 44px minimum tap target. */
.game-page main {
touch-action: manipulation;
}
.game-page main button,
.game-page main .btn,
.game-page main .chip,
.game-page .game-board-wrap {
touch-action: manipulation;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
-webkit-user-select: none;
user-select: none;
}
.game-page main .btn,
.game-page main .chip {
min-height: 44px;
min-width: 44px;
}
.game-page .game-board-wrap input,
.game-page .game-board-wrap textarea {
-webkit-user-select: text;
user-select: text;
}
4 changes: 2 additions & 2 deletions games/arrow/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Middle Arrow | RMKR Toolkit</title>
<meta name="description" content="Five arrows appear. Tap the way the middle one points. Best streak saved locally.">
<link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg">
Expand All @@ -11,7 +11,7 @@
<link rel="stylesheet" href="../../assets/site.css">
<script src="../../assets/site.js" defer></script>
</head>
<body data-root="../../" data-tool="arrow">
<body class="game-page" data-root="../../" data-tool="arrow">
<main class="wrap page-main" id="main">
<a class="game-back" href="../">← Focus Games</a>
<h1 class="page-title">Middle Arrow</h1>
Expand Down
4 changes: 2 additions & 2 deletions games/change/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Spot the Change | RMKR Toolkit</title>
<meta name="description" content="A grid of shapes shows for a moment, blinks off, and comes back with one cell changed. Tap the one that changed. Best streak saved locally.">
<link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg">
Expand All @@ -11,7 +11,7 @@
<link rel="stylesheet" href="../../assets/site.css">
<script src="../../assets/site.js" defer></script>
</head>
<body data-root="../../" data-tool="change">
<body class="game-page" data-root="../../" data-tool="change">
<main class="wrap page-main" id="main">
<a class="game-back" href="../">← Focus Games</a>
<h1 class="page-title">Spot the Change</h1>
Expand Down
4 changes: 2 additions & 2 deletions games/colors/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Color Clash | RMKR Toolkit</title>
<meta name="description" content="Stroop-style focus: tap the ink color, not the word. Best streak saved locally.">
<link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg">
Expand All @@ -11,7 +11,7 @@
<link rel="stylesheet" href="../../assets/site.css">
<script src="../../assets/site.js" defer></script>
</head>
<body data-root="../../" data-tool="colors">
<body class="game-page" data-root="../../" data-tool="colors">
<main class="wrap page-main" id="main">
<a class="game-back" href="../">← Focus Games</a>
<h1 class="page-title">Color Clash</h1>
Expand Down
4 changes: 2 additions & 2 deletions games/dots/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Count the Dots | RMKR Toolkit</title>
<meta name="description" content="A few dots flash briefly. Tap how many you saw. Best streak saved locally.">
<link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg">
Expand All @@ -11,7 +11,7 @@
<link rel="stylesheet" href="../../assets/site.css">
<script src="../../assets/site.js" defer></script>
</head>
<body data-root="../../" data-tool="dots">
<body class="game-page" data-root="../../" data-tool="dots">
<main class="wrap page-main" id="main">
<a class="game-back" href="../">← Focus Games</a>
<h1 class="page-title">Count the Dots</h1>
Expand Down
4 changes: 2 additions & 2 deletions games/even/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Even or Odd | RMKR Toolkit</title>
<meta name="description" content="A number from 1–99 appears. Tap even or odd. Best streak saved locally.">
<link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg">
Expand All @@ -11,7 +11,7 @@
<link rel="stylesheet" href="../../assets/site.css">
<script src="../../assets/site.js" defer></script>
</head>
<body data-root="../../" data-tool="even">
<body class="game-page" data-root="../../" data-tool="even">
<main class="wrap page-main" id="main">
<a class="game-back" href="../">← Focus Games</a>
<h1 class="page-title">Even or Odd</h1>
Expand Down
4 changes: 2 additions & 2 deletions games/find/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Find Number | RMKR Toolkit</title>
<meta name="description" content="Find the target number in a 4×4 grid. Best streak saved locally.">
<link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg">
Expand All @@ -11,7 +11,7 @@
<link rel="stylesheet" href="../../assets/site.css">
<script src="../../assets/site.js" defer></script>
</head>
<body data-root="../../" data-tool="find">
<body class="game-page" data-root="../../" data-tool="find">
<main class="wrap page-main" id="main">
<a class="game-back" href="../">← Focus Games</a>
<h1 class="page-title">Find Number</h1>
Expand Down
4 changes: 2 additions & 2 deletions games/higher/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Higher or Lower | RMKR Toolkit</title>
<meta name="description" content="Guess whether the next number is higher or lower. Best streak saved locally.">
<link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg">
Expand All @@ -11,7 +11,7 @@
<link rel="stylesheet" href="../../assets/site.css">
<script src="../../assets/site.js" defer></script>
</head>
<body data-root="../../" data-tool="higher">
<body class="game-page" data-root="../../" data-tool="higher">
<main class="wrap page-main" id="main">
<a class="game-back" href="../">← Focus Games</a>
<h1 class="page-title">Higher or Lower</h1>
Expand Down
9 changes: 2 additions & 7 deletions games/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Focus Games | RMKR Toolkit</title>
<meta name="description" content="Simple browser focus games — memory, sequence, number slide, word scramble, reaction tap, tap order, color clash, odd one out, higher or lower, quick math, find-the-number, pop light, sum pair, missing number, even or odd, count the dots, middle arrow, same as last, light recall, go stop, turned or flipped, spot the change, more dots, and a casual quiz. No accounts, works offline after load.">
<meta name="description" content="Simple browser focus games — memory, sequence, number slide, word scramble, reaction tap, tap order, color clash, odd one out, higher or lower, quick math, find-the-number, pop light, sum pair, missing number, even or odd, count the dots, middle arrow, same as last, light recall, go stop, turned or flipped, spot the change, and more dots. No accounts, works offline after load.">
<link rel="icon" type="image/svg+xml" href="../assets/favicon.svg">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap" rel="stylesheet">
Expand Down Expand Up @@ -109,18 +109,13 @@ <h3>Spot the Change</h3>
<h3>More Dots</h3>
<p>Two panels of dots flash up. Tap Left, Equal, or Right for the side with more — the gap narrows as you go.</p>
</a>
<a class="tool-card ai-card-accent" href="quiz/">
<h3>Casual Quiz</h3>
<p>Multiple-choice on India, Tamil Nadu, science, tech, and more. Switch topic or level anytime.</p>
</a>
</div>

<h2 class="section-title">How it works</h2>
<div class="card">
<ul>
<li>Everything runs client-side — nothing is uploaded.</li>
<li>Best score / streak values use <code>localStorage</code> keys prefixed with <code>rmkr-game-</code>.</li>
<li>Casual Quiz questions, topics, and levels live in <code>quiz/questions.json</code> — update that file to add more.</li>
<li>No ads, accounts, or external game CDNs.</li>
</ul>
</div>
Expand Down
4 changes: 2 additions & 2 deletions games/math/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Quick Math | RMKR Toolkit</title>
<meta name="description" content="Solve simple addition and subtraction. Tap the right answer from four choices. Best streak saved locally.">
<link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg">
Expand All @@ -11,7 +11,7 @@
<link rel="stylesheet" href="../../assets/site.css">
<script src="../../assets/site.js" defer></script>
</head>
<body data-root="../../" data-tool="math">
<body class="game-page" data-root="../../" data-tool="math">
<main class="wrap page-main" id="main">
<a class="game-back" href="../">← Focus Games</a>
<h1 class="page-title">Quick Math</h1>
Expand Down
4 changes: 2 additions & 2 deletions games/memory/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Memory Match | RMKR Toolkit</title>
<meta name="description" content="Flip cards and match pairs. Client-side memory game with local best score.">
<link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg">
Expand All @@ -11,7 +11,7 @@
<link rel="stylesheet" href="../../assets/site.css">
<script src="../../assets/site.js" defer></script>
</head>
<body data-root="../../" data-tool="memory">
<body class="game-page" data-root="../../" data-tool="memory">
<main class="wrap page-main" id="main">
<a class="game-back" href="../">← Focus Games</a>
<h1 class="page-title">Memory Match</h1>
Expand Down
4 changes: 2 additions & 2 deletions games/missing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Missing Number | RMKR Toolkit</title>
<meta name="description" content="Spot the blank in a short number sequence and tap the missing value. Best streak saved locally.">
<link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg">
Expand All @@ -11,7 +11,7 @@
<link rel="stylesheet" href="../../assets/site.css">
<script src="../../assets/site.js" defer></script>
</head>
<body data-root="../../" data-tool="missing">
<body class="game-page" data-root="../../" data-tool="missing">
<main class="wrap page-main" id="main">
<a class="game-back" href="../">← Focus Games</a>
<h1 class="page-title">Missing Number</h1>
Expand Down
4 changes: 2 additions & 2 deletions games/more/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>More Dots | RMKR Toolkit</title>
<meta name="description" content="Two panels of dots. Tap Left, Equal, or Right for the side with more. Counts get closer and the view gets shorter as the streak grows. Best streak saved locally.">
<link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg">
<link rel="stylesheet" href="../../assets/site.css">
<script src="../../assets/site.js" defer></script>
</head>
<body data-root="../../" data-tool="more">
<body class="game-page" data-root="../../" data-tool="more">
<main class="wrap page-main" id="main">
<a class="game-back" href="../">← Focus Games</a>
<h1 class="page-title">More Dots</h1>
Expand Down
4 changes: 2 additions & 2 deletions games/numbers/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Number Slide | RMKR Toolkit</title>
<meta name="description" content="15-puzzle number slide on a 4x4 board. Best move count saved locally.">
<link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg">
Expand All @@ -11,7 +11,7 @@
<link rel="stylesheet" href="../../assets/site.css">
<script src="../../assets/site.js" defer></script>
</head>
<body data-root="../../" data-tool="numbers">
<body class="game-page" data-root="../../" data-tool="numbers">
<main class="wrap page-main" id="main">
<a class="game-back" href="../">← Focus Games</a>
<h1 class="page-title">Number Slide</h1>
Expand Down
4 changes: 2 additions & 2 deletions games/odd/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Odd One Out | RMKR Toolkit</title>
<meta name="description" content="Four tiles appear. Three match; one is different. Tap the odd one. Best streak saved locally.">
<link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg">
Expand All @@ -11,7 +11,7 @@
<link rel="stylesheet" href="../../assets/site.css">
<script src="../../assets/site.js" defer></script>
</head>
<body data-root="../../" data-tool="odd">
<body class="game-page" data-root="../../" data-tool="odd">
<main class="wrap page-main" id="main">
<a class="game-back" href="../">← Focus Games</a>
<h1 class="page-title">Odd One Out</h1>
Expand Down
4 changes: 2 additions & 2 deletions games/order/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Tap Order | RMKR Toolkit</title>
<meta name="description" content="Tap numbers 1–9 in order on a shuffled 3×3 grid. Best time saved locally.">
<link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg">
Expand All @@ -11,7 +11,7 @@
<link rel="stylesheet" href="../../assets/site.css">
<script src="../../assets/site.js" defer></script>
</head>
<body data-root="../../" data-tool="order">
<body class="game-page" data-root="../../" data-tool="order">
<main class="wrap page-main" id="main">
<a class="game-back" href="../">← Focus Games</a>
<h1 class="page-title">Tap Order</h1>
Expand Down
4 changes: 2 additions & 2 deletions games/pop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pop Light | RMKR Toolkit</title>
<meta name="description" content="Tap the gold cell on a 3×3 grid before it fades. Best streak saved locally.">
<link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg">
Expand All @@ -11,7 +11,7 @@
<link rel="stylesheet" href="../../assets/site.css">
<script src="../../assets/site.js" defer></script>
</head>
<body data-root="../../" data-tool="pop">
<body class="game-page" data-root="../../" data-tool="pop">
<main class="wrap page-main" id="main">
<a class="game-back" href="../">← Focus Games</a>
<h1 class="page-title">Pop Light</h1>
Expand Down
4 changes: 2 additions & 2 deletions games/quiz/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Casual Quiz | RMKR Toolkit</title>
<meta name="description" content="Casual multiple-choice quiz. Switch topics and levels anytime. Marks stay in this browser. Questions live in a JSON file.">
<link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg">
Expand All @@ -11,7 +11,7 @@
<link rel="stylesheet" href="../../assets/site.css">
<script src="../../assets/site.js" defer></script>
</head>
<body data-root="../../" data-tool="quiz">
<body class="game-page" data-root="../../" data-tool="quiz">
<main class="wrap page-main" id="main">
<a class="game-back" href="../">← Focus Games</a>
<h1 class="page-title" id="quizTitle">Casual Quiz</h1>
Expand Down
4 changes: 2 additions & 2 deletions games/reaction/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Reaction Tap | RMKR Toolkit</title>
<meta name="description" content="Wait for the pad to turn gold, then tap. Best reaction time saved locally.">
<link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg">
Expand All @@ -11,7 +11,7 @@
<link rel="stylesheet" href="../../assets/site.css">
<script src="../../assets/site.js" defer></script>
</head>
<body data-root="../../" data-tool="reaction">
<body class="game-page" data-root="../../" data-tool="reaction">
<main class="wrap page-main" id="main">
<a class="game-back" href="../">← Focus Games</a>
<h1 class="page-title">Reaction Tap</h1>
Expand Down
Loading
Loading