2
0

config.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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="hostname">
  16. <b>Host name</b>
  17. <input type="text" name="hostname" />
  18. </label>
  19. <label class="mdns">
  20. <b>mDNS</b>
  21. <input is="x-box" name="mdns.enabled" />
  22. </label>
  23. <label class="wifi-ssid">
  24. <b>Network name (SSID)</b>
  25. <input type="text" name="wifi.ssid" />
  26. </label>
  27. <label class="wifi-psk">
  28. <b>Network password (PSK)</b>
  29. <input class="mono" type="password" autocomplete="off" name="wifi.psk" />
  30. <button type="button" class="show" onclick="showpwd()"><span class="show">Show</span><span class="hide">Hide</span></button>
  31. </label>
  32. </fieldset>
  33. <fieldset class="datetime">
  34. <legend>Date and Time</legend>
  35. <label class="tz">
  36. <b>Time zone</b>
  37. <select name="tzname" id="tzname" onchange="tzn()">
  38. </select>
  39. <input type="text" name="TZ" oninput="tzt()" />
  40. </label>
  41. <label class="sntp-enabled">
  42. <b>Synchronize time from network</b>
  43. <input is="x-box" name="sntp.enabled" />
  44. </label>
  45. <label class="sntp-server">
  46. <b>NTP server</b>
  47. <input type="text" name="sntp.server" />
  48. </label>
  49. <label class="ip4-dhcp-sntp">
  50. <b>Use DHCP-provided NTP server</b>
  51. <input is="x-box" name="ip4.dhcp.nosntp" negative />
  52. </label>
  53. </fieldset>
  54. <button class="submit" type="submit" disabled>Update configuration</button>
  55. <br />
  56. <output></output>
  57. </form>
  58. <script src="tz.js"></script>
  59. </body>
  60. </html>