Files
raspi-labor/03-led-per-webseite/index.html
T
2026-11-03 17:19:49 +01:00

30 lines
893 B
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</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>
<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>
</main>
</body>
</html>