Código · STAGING TEST — HTML Colour Counter
CC BY 4.0 · acredita a @joe · v1
Tómalo, remezcla y enseña con él
Copia el código de abajo en ChatGPT, Claude, Gemini, Grok —la herramienta que quieras—, cámbialo para tu clase y publica tu remezcla aquí con crédito.
Inicio de indicación de edición con IA
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>