30ee42732e
Started big rework with seperated settings page, new page design, themes, effect intensity, hue sync...
102 lines
7.1 KiB
HTML
102 lines
7.1 KiB
HTML
<!DOCTYPE html>
|
||
<html>
|
||
<head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
||
<title>WiFi Settings</title>
|
||
<script>
|
||
function GetV()
|
||
{
|
||
//values injected by server while sending HTML
|
||
}
|
||
function H()
|
||
{
|
||
window.open("https://github.com/Aircoookie/WLED/wiki/Settings");
|
||
}
|
||
function B()
|
||
{
|
||
window.open("/settings","_self");
|
||
}
|
||
</script>
|
||
<style>
|
||
:root {
|
||
--aCol: #D9B310;
|
||
--bCol: #0B3C5D;
|
||
--cCol: #1D2731;
|
||
--dCol: #328CC1;
|
||
--sCol: #000;
|
||
}
|
||
body {
|
||
font-family: Verdana, Helvetica, sans-serif;
|
||
text-align: center;
|
||
background: var(--cCol);
|
||
color: var(--dCol);
|
||
line-height: 200%;
|
||
margin: 0;
|
||
background-attachment: fixed;
|
||
}
|
||
hr {
|
||
border-color: var(--dCol);
|
||
filter: drop-shadow( -5px -5px 5px var(--sCol) );
|
||
}
|
||
button {
|
||
background: var(--bCol);
|
||
color: var(--dCol);
|
||
border: 0.3ch solid var(--bCol);
|
||
display: inline-block;
|
||
filter: drop-shadow( -5px -5px 5px var(--sCol) );
|
||
font-size: 20px;
|
||
margin: 8px;
|
||
margin-top: 12px;
|
||
}
|
||
.helpB {
|
||
text-align: left;
|
||
position: absolute;
|
||
width:60px;
|
||
}
|
||
input {
|
||
background: var(--bCol);
|
||
color: var(--dCol);
|
||
border: 0.5ch solid var(--bCol);
|
||
filter: drop-shadow( -5px -5px 5px var(--sCol) );
|
||
}
|
||
input[type=number] {
|
||
width: 3em;
|
||
}
|
||
</style>
|
||
</head>
|
||
<body onload="GetV()">
|
||
<form id="form_s" name="Sf" action="set-settings" method="post">
|
||
<div class="helpB"><button type="button" onclick="H()">?</button></div>
|
||
<button type="button" onclick="B()">Back</button><button type="submit" name="SUBM">Save</button><hr>
|
||
<h2>WiFi setup</h2>
|
||
<h3>Connect to existing network</h3>
|
||
Network name (SSID, empty to not connect): <br><input name="CSSID" maxlength="32"> <br>
|
||
Network password: <br> <input type="password" name="CPASS" maxlength="63"> <br>
|
||
Static IP (leave at 0.0.0.0 for DHCP): <br>
|
||
<input name="CSIP0" type="number" min="0" max="255" required> .
|
||
<input name="CSIP1" type="number" min="0" max="255" required> .
|
||
<input name="CSIP2" type="number" min="0" max="255" required> .
|
||
<input name="CSIP3" type="number" min="0" max="255" required> <br>
|
||
Static gateway: <br>
|
||
<input name="CSGW0" type="number" min="0" max="255" required> .
|
||
<input name="CSGW1" type="number" min="0" max="255" required> .
|
||
<input name="CSGW2" type="number" min="0" max="255" required> .
|
||
<input name="CSGW3" type="number" min="0" max="255" required> <br>
|
||
Static subnet mask: <br>
|
||
<input name="CSSN0" type="number" min="0" max="255" required> .
|
||
<input name="CSSN1" type="number" min="0" max="255" required> .
|
||
<input name="CSSN2" type="number" min="0" max="255" required> .
|
||
<input name="CSSN3" type="number" min="0" max="255" required> <br>
|
||
mDNS address (leave empty for no mDNS): <br/>
|
||
http:// <input name="CMDNS" maxlength="32"> .local <br>
|
||
Try connecting before opening AP for: <input name="APWTM" type="number" min="0" max="255" required> s <br>
|
||
Client IP: <span class="sip"> Not connected </span> <br>
|
||
<h3>Configure Access Point</h3>
|
||
AP SSID (leave empty for no AP): <br> <input name="APSSID" maxlength="32"> <br>
|
||
Hide AP name: <input type="checkbox" name="APHSSID"> <br>
|
||
AP password (leave empty for open): <br> <input type="password" name="APPASS" maxlength="63"> <br>
|
||
Access Point WiFi channel: <input name="APCHAN" type="number" min="1" max="13" required> <br>
|
||
AP IP: <span class="sip"> Not active </span> <hr>
|
||
<button type="button" onclick="B()">Back</button><button type="submit" name="SUBM">Save</button>
|
||
</form>
|
||
</body>
|
||
</html> |