Common stuff for all my devices' web server pages: css, login, log, ipv4, ipv6, firmware update, clock, reset info etc.
Dependents: oldheating gps motorhome heating
web-firmware-html.c
00001 #include <stdio.h> 00002 00003 #include "http.h" 00004 #include "web-nav-base.h" 00005 #include "web-add.h" 00006 #include "web-firmware.h" 00007 00008 void WebFirmwareHtml() 00009 { 00010 HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL); 00011 WebAddHeader("Firmware", "settings.css", "firmware.js"); 00012 WebAddNav(FIRMWARE_PAGE); 00013 WebAddH1("Firmware"); 00014 00015 WebAddH2("Existing files on the device"); 00016 00017 HttpAddText("<code id='list'>"); 00018 WebFirmwareListSemihostFiles(); 00019 HttpAddText("</code>\r\n"); 00020 00021 WebAddH2("Choose a local file"); 00022 HttpAddText("<div><input type='file' id='fileInput'/></div>\r\n"); 00023 00024 WebAddH2("Upload the local file to the device"); 00025 HttpAddText("<div><button onclick='startUpload();'>Upload</button></div>\r\n"); 00026 HttpAddText("<code id='uploadresult'></code>\r\n"); 00027 00028 WebAddH2("Restart the device"); 00029 HttpAddText("<div><button id='restartbutton' onclick='restart();'>Restart</button></div>\r\n"); 00030 HttpAddText("<code id='restartresult'></code>\r\n"); 00031 00032 WebAddEnd(); 00033 }
Generated on Wed Jul 13 2022 14:19:59 by 1.7.2