2
0

update.html 880 B

12345678910111213141516171819202122232425262728293031
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link rel="stylesheet" href="max80.css" />
  5. <title class="update">MAX80: Update</title>
  6. <script src="max80.js"></script>
  7. </head>
  8. <body>
  9. <script>inc("head.html")</script>
  10. <h1 class="update">Update</h1>
  11. <form id="upload" action="sys/fwupdate" enctype="multipart/form-data"
  12. method="post" onsubmit="uploadfile(event)">
  13. <fieldset class="firmware">
  14. <legend>Firmware</legend>
  15. <div>
  16. <label for="file">Select firmware file:</label>
  17. <input type="file" name="file" required
  18. onchange="enablebutton('upload.start',files.length==1)" />
  19. </div>
  20. <div>
  21. <button class="submit" type="submit" id="upload.start" disabled>Update firmware</button>
  22. </div>
  23. <div>
  24. <progress value="0"></progress>
  25. </div>
  26. <pre class="result hide"></pre>
  27. </fieldset>
  28. </form>
  29. <script>translate()</script>
  30. </body>
  31. </html>