Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit7d6e365c22cae06502778edd58551562622462c9 (patch)
Author
 Syndamia <kamen@syndamia.com>
2024-05-28 16:10:28 +0300
Committer
 Syndamia <kamen@syndamia.com>
2024-05-28 16:10:28 +0300
Files58cc945dc19450b16b2990e8f6445dd4f624c7fc
uni-projects-7d6e365c22cae06502778edd58551562622462c9.tar
uni-projects-7d6e365c22cae06502778edd58551562622462c9.tar.gz
uni-projects-7d6e365c22cae06502778edd58551562622462c9.zip
Parentd37664b485dd38485eec4aafa41f10e48f30da57 (diff)
[iot/goam] Improved wording and formatting
1 files changed, 19 insertions, 5 deletions
-rw-r--r--Year 3/Internet of things/goam/webserver/index.html24
diff --git a/Year 3/Internet of things/goam/webserver/index.html b/Year 3/Internet of things/goam/webserver/index.html
index 4a6d2f7..c0891a1 100644
--- a/Year 3/Internet of things/goam/webserver/index.html
+++ b/Year 3/Internet of things/goam/webserver/index.html
@@ -34,6 +34,12 @@ img {
background-color: lightgray;
color: black;
}
+label {
+ display: block;
+ border: none;
+ font-size: 0.9em;
+ margin-bottom: 0.5em;
+}
.button:active, input[type="submit"]:active {
transform: scale(0.90);
}
@@ -51,6 +57,9 @@ a.button {
iframe {
display: none;
}
+.timelapse-form {
+ display: inline;
+}
</style>
</head>
<body>
@@ -68,7 +77,7 @@ iframe {
<iframe id="dummyframe" name="dummyframe" hidden></iframe>
- <h1>Configure static network</h1>
+ <h1>Static network</h1>
<p>Upon boot up, the device first tries to connect to the (static) network with stored name/password. If that fails, then it tries connecting to an open network. If that fails too, after 2 seconds connection logic is restarted.</p>
<form action="/config" target="dummyframe" method="POST">
<input name="ssid" type="text" placeholder="Name (SSID)">
@@ -76,25 +85,28 @@ iframe {
<input type="submit" value="Save">
</form>
- <h1>Configure timelapse</h1>
+ <h1>Timelapse</h1>
<form action="/config" target="dummyframe" method="POST">
<input name="timelapse_period" type="number" placeholder="Timelapse period" min="10">
<input type="submit" value="Save">
</form>
- <form action="/config" target="dummyframe" method="POST">
+ <br>
+
+ <form class="timelapse-form" action="/config" target="dummyframe" method="POST">
<input name="timelapse_change" type="hidden" value="1">
<input type="submit" value="Start timelapse">
</form>
- <form action="/config" target="dummyframe" method="POST">
+ <form class="timelapse-form" action="/config" target="dummyframe" method="POST">
<input name="timelapse_change" type="hidden" value="0">
<input type="submit" value="Stop timelapse">
</form>
- <h1>Configure behaviour</h1>
+ <h1>General</h1>
<p><i>Beware, these values may not represent what the device is doing! To be certain, always check the display!</i></p>
<form action="/config" target="dummyframe" method="POST">
+ <label for="imagesave">Where to store/send images</label>
<select name="imagesave">
<option value="0">Only save to camera</option>
<option value="&#x01;">Only send to <code>/camera</code> listeners</option>
@@ -104,6 +116,7 @@ iframe {
</form>
<br>
<form action="/config" target="dummyframe" method="POST">
+ <label for="resolution">Camera resolution (in pixels)</label>
<select name="resolution">
<option value="0" selected>640x480</option>
<option value="&#x11;">320x240</option>
@@ -113,6 +126,7 @@ iframe {
</form>
<br>
<form action="/config" target="dummyframe" method="POST">
+ <label for="invertion">Display mode</label>
<select name="invertion">
<option value="&#xA6;" selected>Normal</option>
<option value="&#xA7;">Inverted</option>