More HTML5
This commit is contained in:
parent
8aa34ce408
commit
d2ad06abf1
19
webpage.html
19
webpage.html
@ -1,3 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<html><head><title>WordClock Setup Page</title>
|
||||
<style type="text/css">
|
||||
#table-6 {
|
||||
@ -15,7 +16,8 @@ vertical-align: baseline;
|
||||
background: transparent;
|
||||
}
|
||||
#table-6 thead {
|
||||
text-align: left;
|
||||
text-align: left;<tr><th>Three quater</th><td><input type="checkbox" name="threequater" ></td><td>Dreiviertel Joa/nei</td></tr>
|
||||
|
||||
}
|
||||
#table-6 thead th {
|
||||
background: -moz-linear-gradient(top, #F0F0F0 0, #DBDBDB 100%);
|
||||
@ -41,16 +43,19 @@ background: #F2F2F2;
|
||||
Please note that all settings are mandatory<br /><br />
|
||||
<form action="/" method="POST">
|
||||
<table id="table-6">
|
||||
<tr><th>WIFI-SSID</b></th><td><input id="ssid" name="ssid" value="$SSID"></td><td>SSID of the wireless network</td></tr>
|
||||
<tr><th><b>WIFI-SSID</b></th><td><input id="ssid" name="ssid" value="$SSID"></td><td>SSID of the wireless network</td></tr>
|
||||
<tr><th>WIFI-Password</th><td><input id="password" name="password"></td><td>Password of the wireless network</td></tr>
|
||||
<tr><th>SNTP Server</th><td><input id="sntpserver" name="sntpserver" value="$SNTPSERVER"></td><td>Server to sync the time with. Only one ntp server is allowed.</tr>
|
||||
<tr><th>Offset to UTC time</th><td><input id="timezoneoffset" name="timezoneoffset" value="$TIMEOFFSET"></td><td>Define the offset to UTC time in hours. For example +1 hour for Germany</tr>
|
||||
<tr><th>Color</th><td><input type="color" name="fcolor" value="$HEXCOLOR"></td><td /></tr>
|
||||
<tr><th>1. Minute Color</th><td><input type="color" name="colorMin1" value="$HEXCOLOR1"></td><td /></tr>
|
||||
<tr><th>2. Minute Color</th><td><input type="color" name="colorMin2" value="$HEXCOLOR2"></td><td /></tr>
|
||||
<tr><th>3. Minute Color</th><td><input type="color" name="colorMin3" value="$HEXCOLOR3"></td><td /></tr>
|
||||
<tr><th>4. Minute Color</th><td><input type="color" name="colorMin4" value="$HEXCOLOR4"></td><td /></tr>
|
||||
<tr><th>Color</th><td><input type="color" name="fcolor" value="$HEXCOLOR"></td><td>LED Color for all minutes, divisible by five</td></tr>
|
||||
<tr><th>1. Minute Color</th><td><input type="color" name="colorMin1" value="$HEXCOLOR1"></td><td>First minute after</td></tr>
|
||||
<tr><th>2. Minute Color</th><td><input type="color" name="colorMin2" value="$HEXCOLOR2"></td><td>Second minute after</td></tr>
|
||||
<tr><th>3. Minute Color</th><td><input type="color" name="colorMin3" value="$HEXCOLOR3"></td><td>Third minute after</td></tr>
|
||||
<tr><th>4. Minute Color</th><td><input type="color" name="colorMin4" value="$HEXCOLOR4"></td><td>Fourth minute after</td></tr>
|
||||
<tr><th>Three quater</th><td><input type="checkbox" name="threequater" $THREEQUATER></td><td>Dreiviertel Joa/nei</td></tr>
|
||||
<tr><td colspan="3"><div align="center"><input type="submit" value="Save Configuration" onclick="this.value='Submitting ..';this.disabled='disabled'; this.form.submit();"></div></td></tr>
|
||||
<tr><td colspan="3"><div align="center"><input type="submit" name="action" value="Reboot"></div></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -45,7 +45,7 @@ function sendPage(conn, nameOfFile, replaceMap)
|
||||
buf = buf .. line
|
||||
|
||||
-- Sent after 1k data
|
||||
if (string.len(buf) >= 1000) then
|
||||
if (string.len(buf) >= 700) then
|
||||
line=nil
|
||||
conn:send(buf)
|
||||
-- end the function, this part is sent
|
||||
@ -80,6 +80,7 @@ function startWebServer()
|
||||
replaceMap["$SSID"]="33C3"
|
||||
replaceMap["$SNTPSERVER"]="time.server23.org"
|
||||
replaceMap["$TIMEOFFSET"]="1"
|
||||
replaceMap["$THREEQUATER"]="checked"
|
||||
|
||||
sendPage(conn, "webpage.html", replaceMap)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user