30 lines
893 B
HTML
30 lines
893 B
HTML
<!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>
|