1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <!DOCTYPE html>
- <html>
- <head>
- <link rel="stylesheet" href="max80.css" />
- <title>MAX80: Configuration</title>
- <script src="max80.js"></script>
- <script>
- function addextrainfo(event) {
- var form = event.currentTarget;
- var elem = form.elements;
- var hosttime = elem["hosttime"];
- var hostzone = elem["hostzone"];
-
- var now = new Date();
- hosttime.value = now.valueOf();
- hostzone.value = -60 * now.getTimezoneOffset();
- }
- </script>
- </head>
- <body>
- <script>inc("head.html")</script>
- <h1>Configuration</h1>
- <form id="config" action="sys/setconfig" enctype="text/plain"
- method="post" onsubmit="addextrainfo(event)">
- <fieldset>
- <legend>Network</legend>
- <label for="wifi.ssid">Network name (SSID):</label>
- <input type="text" id="wifi.ssid" name="wifi.ssid" size="64" /><br />
- <label for="wifi.psk">Network password (PSK):</label>
- <input type="password" id="wifi.psk" name="wifi.psk" size="64" />
- <button type="button" class="showpwd" onclick="showpwd('wifi.psk',this)">show</button>
- </fieldset>
- <fieldset>
- <legend>Date and Time</legend>
- <label for="TZ">Timezone configuration:</label>
- <input type="text" id="TZ" name="TZ" size="64"><br />
- <input type="hidden" name="-sntp" />
- <label for="sntp">Synchronize time from network:</label>
- <input type="checkbox" id="sntp" name="sntp" /><br />
- <label for="sntp.server">NTP server:</label>
- <input type="text" id="sntp.server" name="sntp.server" size="64"><br />
- <input type="hidden" name="-ip4.dhcp.nosntp" />
- <label for="ip4.dhcp.nosntp">Ignore DHCP-provided NTP server:</label>
- <input type="checkbox" id="ip4.dhcp.nosntp" name="ip4.dhcp.nosntp" />
- </fieldset>
- <button type="submit">Update configuration</button>
- </form>
- <script>loadform('form#config','sys/getconfig')</script>
- </body>
- </html>
|