Код · STAGING TEST — HTML Colour Counter

CC BY 4.0 · укажите @joe · v1

← Сведения об игре

Берите, делайте ремикс, учите с ним

Скопируйте код ниже в ChatGPT, Claude, Gemini, Grok — любой удобный инструмент — адаптируйте для своего класса и опубликуйте ремикс здесь с указанием авторства.

⬇ Скачать HTML ⬇ Скачать ZIP
Заготовка подсказки для ИИ
Edit this classroom game for interactive whiteboards. Keep large touch targets and whole-class play. Tracking, logins, personal-data collection, and remote API calls are prohibited. Preserve its single-HTML structure. Preserve the educational goal. Original creator: @joe on ClassBoard Games (CC BY 4.0).
staging-test-html-colour-counter.html · 1.0 KB
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>STAGING TEST — Colour Counter</title>
  <style>
    body {
      font-family: system-ui, sans-serif;
      text-align: center;
      padding: 3rem;
      background: #123b70;
      color: white;
    }
    button {
      padding: 1rem 1.5rem;
      font-size: 1.1rem;
      border: 0;
      border-radius: 0.75rem;
      cursor: pointer;
    }
  </style>
</head>
<body>
  <main>
    <h1>STAGING TEST — Colour Counter</h1>
    <p>Count: <strong id="count">0</strong></p>
    <button id="add" type="button">Add one</button>
  </main>
  <script>
    (() => {
      let count = 0;
      const output = document.getElementById("count");
      document.getElementById("add").addEventListener("click", () => {
        count += 1;
        output.textContent = String(count);
      });
    })();
  </script>
</body>
</html>