add bracelet control page

This commit is contained in:
gnat 2024-10-27 21:56:43 -07:00
parent bd298541c5
commit 3b4084c584
5 changed files with 46 additions and 35 deletions

43
bracelet.html Normal file
View File

@ -0,0 +1,43 @@
<!DOCTYPE html>
<!-- dumb pet couldn't figure out how to code this itself and made this one do so for it -6e6174 -->
<html>
<head>
<link rel="stylesheet" href="style.css">
<title>shock it</title>
</head>
<body>
<form action="/bracelet.html#" method="POST">
<fieldset>
<legend>type:</legend>
<label>
<input type="radio" name="type" value="zap" checked>
shock
</label>
<label>
<input type="radio" name="type" value="vibe">
buzz
</label>
<label>
<input type="radio" name="type" value="beep">
beep
</label>
</fieldset>
<fieldset>
<legend>strength:</legend>
<input type="number" name="strength" min="0" max="100" value="50">
</fieldset>
<fieldset>
<legend>message:</legend>
<textarea name="message" rows="4" cols="50">good drone</textarea>
</fieldset>
<button type="submit">submit</button>
</form>
<hr>
<h2>scripting</h2>
one may easily use this page from the command line with curl:
<code>curl -X POST 'https://puppygirl.systems/bracelet.html' -d 'type=zap&strength=20&message=test%20using%20curl'</code>
</body>
</html>

View File

@ -1,7 +0,0 @@
body {
background-color: #ebdbb2;
color:#282828;
}
a {
text-decoration: none;
}

View File

@ -1,14 +0,0 @@
body {
background-color: #ebdbb2;
color:#282828;
}
a {
text-decoration: none;
}
section {
display: flex;
width: 400px;
height: 500px;
background-color: lightgray;
}

View File

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<link rel="stylesheet" href="css/styles.css"> <link rel="stylesheet" href="style.css">
<title>Odette website</title> <title>Odette website</title>
</head> </head>
<body> <body>
@ -45,9 +45,9 @@
Discord: mkfs.ntfs Discord: mkfs.ntfs
</p> </p>
</section> </section>
<hr/>
<section> <section>
$[echo foo] <a href='/bracelet.html'>send commands to its shock bracelet</a>
</section> </section>
<hr/>
</body> </body>
</html> </html>

View File

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/test.css">
<title>!!TEST AREA!!</title>
</head>
<body>
<section>
<p>this is a test</p>
</section>
</body>