lektion 03 angepasst
This commit is contained in:
1 parent
c60910e505
commit
1293a0f6a0
5 files changed
+247
-187
No files matched your search
@@ -0,0 +1,29 @@
|
||||
<!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>
|
||||
Reference in new issue
Block a user