config.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <link rel="stylesheet" href="max80.css" />
  5. <title class="config">MAX80: Configuration</title>
  6. <script src="max80.js"></script>
  7. </head>
  8. <body>
  9. <x-inc src="head.html"></x-inc>
  10. <h1 class="config">Configuration</h1>
  11. <form id="setconfig" class="setconfig" action="sys/setconfig" method="post"
  12. onsubmit="uploadform()" data-ref="10" data-ref-url="status.html">
  13. <fieldset class="network">
  14. <legend>Network</legend>
  15. <label class="wifi-ssid">
  16. <b>Network name (SSID)</b>
  17. <input type="text" name="wifi.ssid" />
  18. </label>
  19. <label class="wifi-psk">
  20. <b>Network password (PSK)</b>
  21. <input class="mono" type="password" autocomplete="off" name="wifi.psk" />
  22. <button type="button" class="show" onclick="showpwd()"><span class="show">Show</span><span class="hide">Hide</span></button>
  23. </label>
  24. </fieldset>
  25. <fieldset class="datetime">
  26. <legend>Date and Time</legend>
  27. <label class="tz">
  28. <b>Time zone</b>
  29. <select name="tzname" id="tzname" onchange="tzn()">
  30. </select>
  31. <input type="text" name="TZ" oninput="tzt()" />
  32. </label>
  33. <label class="sntp-enabled">
  34. <b>Synchronize time from network</b>
  35. <input type="checkbox" name="sntp.enabled" />
  36. </label>
  37. <label class="sntp-server">
  38. <b>NTP server</b>
  39. <input type="text" name="sntp.server" />
  40. </label>
  41. <label class="ip4-dhcp-sntp">
  42. <b>Use DHCP-provided NTP server</b>
  43. <input type="checkbox" name="ip4.dhcp.nosntp" value="0" />
  44. </label>
  45. </fieldset>
  46. <button class="submit" type="submit" disabled>Update configuration</button>
  47. <br />
  48. <output></output>
  49. </form>
  50. <script src="tz.js"></script>
  51. </body>
  52. </html>