32 lines
1.1 KiB
HTML
32 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>LED Control</title>
|
|
<script src="main.js" defer></script>
|
|
</head>
|
|
<body>
|
|
<h1>Control LEDs</h1>
|
|
<form id="led_form" method="post" action="/num_leds">
|
|
<label for="num_leds">Number of LEDs:</label>
|
|
<input type="text" id="num_leds" name="num_leds" value="{num_leds}">
|
|
<input type="submit" value="Update">
|
|
</form>
|
|
<div id="pattern_buttons">
|
|
<!-- Pattern buttons will be inserted here -->
|
|
</div>
|
|
<form id="delay_form" method="post" action="/delay">
|
|
<label for="delay">Delay:</label>
|
|
<input type="range" id="delay" name="delay" min="10" max="1000" value="{delay}" step="10">
|
|
</form>
|
|
<form id="color_form" method="post" action="/color">
|
|
<label for="color">Select Color:</label>
|
|
<input type="color" id="color" name="color" value="{color}">
|
|
</form>
|
|
<form id="color2_form" method="post" action="/color2">
|
|
<label for="color2">Select Color2:</label>
|
|
<input type="color" id="color2" name="color2" value="{color2}">
|
|
</form>
|
|
|
|
</body>
|
|
</html>
|