Files
wordle/www/html/wordle/index.html
T
adamandClaude Opus 5.5 f278ab0ac1 stop won boards showing "null" on the website
A won board has no answer row, and passing that null straight to
replaceChildren printed it as the text "null" under the board. Add a
fill() helper that skips null children like h() does and use it on the
board page. Bump the asset version so browsers load the new wordle.js
alongside the new board.js.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 21:27:10 +00:00

33 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Wordle - the daily word game for your terminal</title>
<meta name="description" content="A daily word game played over SSH. Look up players' stats, boards and history.">
<meta name="color-scheme" content="dark light">
<link rel="icon" type="image/svg+xml" href="/wordle/favicon.svg">
<link rel="alternate icon" href="/wordle/favicon.ico">
<link rel="stylesheet" href="/wordle/wordle.css?v=3">
<script>
// Apply the saved theme before the page draws
try {
const s = JSON.parse(localStorage.getItem("wordle.settings") || "{}");
const light = s.theme === "light" || (s.theme !== "dark" && matchMedia("(prefers-color-scheme: light)").matches);
document.documentElement.dataset.theme = light ? "light" : "dark";
if (s.contrast) document.documentElement.dataset.contrast = "high";
} catch (e) {}
</script>
<script type="module" src="/wordle/home.js?v=3"></script>
</head>
<body>
<main id="main" class="container">
<noscript>
<h1>Wordle</h1>
<p>This site needs JavaScript. From a terminal you can use
<code>curl https://www.adbraun.lol/wordle/stats/&lt;user&gt;</code> instead.</p>
</noscript>
</main>
</body>
</html>