lektion 03 erwitert - morse code senden

This commit is contained in:
Bernd Reuther committed 2026-11-03 22:32:26 +01:00
1 parent f449d2e797
commit 93917f637d
6 files changed
+292 -73

No files matched your search

+19 -6
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Raspberry-Pi-Labor – LED</title>
<title>Raspberry-Pi-Labor – LED und Morsecode</title>
<link rel="stylesheet" href="/style.css">
<script src="/script.js" defer></script>
</head>
@@ -19,11 +19,24 @@
</strong>
</p>
<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>
<p id="message" role="status"></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>