Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: 1-wire clock crypto fram log lpc1768 net web wiz mbed
web-home-html.c
00001 #include "http.h" 00002 #include "web-add.h" 00003 00004 void WebHomeHtml() 00005 { 00006 HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL); 00007 WebAddHeader("Home", NULL, "radiator.js"); 00008 00009 HttpAddText("<a href='/radiator' class='hamburger'>\r\n"); 00010 HttpAddText("<div class='bar' ></div>\r\n"); 00011 HttpAddText("<div class='space'></div>\r\n"); 00012 HttpAddText("<div class='bar' ></div>\r\n"); 00013 HttpAddText("<div class='space'></div>\r\n"); 00014 HttpAddText("<div class='bar' ></div>\r\n"); 00015 HttpAddText("</a>\r\n"); 00016 HttpAddText("<br/>\r\n"); 00017 HttpAddText("<br/>\r\n"); 00018 00019 HttpAddText("<div id='ajax-date-local'></div>\r\n"); 00020 HttpAddText("<br/>\r\n"); 00021 WebAddAjaxLabelledSuffix("Hall temperature" , "ajax-hall-html", "°C"); 00022 HttpAddText("<br/>\r\n"); 00023 WebAddAjaxInputToggle ("Radiators" , "ajax-radiators-on-toggle", "htg-chg-override"); 00024 HttpAddText("<br/>\r\n"); 00025 WebAddAjaxInputToggle ("Hot water priority", "ajax-hw-prot-toggle" , "htg-chg-hw-prot" ); 00026 HttpAddText("<br/>\r\n"); 00027 WebAddAjaxInputToggle ("Winter mode" , "ajax-mode-toggle" , "htg-chg-mode" ); 00028 HttpAddText("<br/>\r\n"); 00029 00030 WebAddEnd(); 00031 } 00032
Generated on Sat Nov 12 2022 10:03:51 by
1.7.2