Files
raspi-labor/03-led-per-webseite/index.html
T

43 lines
1.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Raspberry-Pi-Labor – LED und Morsecode</title>
<link rel="stylesheet" href="/style.css">
<script src="/script.js" defer></script>
</head>
<body>
<main>
<h1>Raspberry-Pi-Labor</h1>
<h2>LED-Steuerung</h2>
<p class="status" aria-live="polite">
Status:
<strong id="led-status" class="{{ 'is-on' if is_on else 'is-off' }}">
{{ "AN" if is_on else "AUS" }}
</strong>
</p>
<section aria-labelledby="led-heading">
<h3 id="led-heading">LED manuell schalten</h3>
<div class="controls">
<button class="on" type="button" data-state="on">LED einschalten</button>
<button class="off" type="button" data-state="off">LED ausschalten</button>
</div>
</section>
<section aria-labelledby="morse-heading">
<h3 id="morse-heading">Text als Morsecode senden</h3>
<label for="morse-text">Dein Text (maximal 30 Zeichen):</label>
<input id="morse-text" name="text" type="text" maxlength="30"
autocomplete="off" placeholder="Zum Beispiel: HALLO" />
<button id="morse-send" class="morse" type="button">Morsecode senden</button>
<p class="hint">Erlaubt sind A–Z, 0–9 sowie Ä, Ö, Ü und ß. Leerzeichen trennen Wörter.</p>
</section>
<p id="message" role="status" aria-live="polite"></p>
</main>
</body>
</html>