Dependencies: net 1-wire lpc1768 crypto clock web fram log
/media/uploads/andrewboyson/heating.sch
/media/uploads/andrewboyson/heating.brd
/media/uploads/andrewboyson/eagle.epf
http-derived/home/http-home-html.c
- Committer:
- andrewboyson
- Date:
- 2019-01-17
- Revision:
- 24:e3ed1b52c6e6
- Child:
- 35:bb8a6d1c034c
File content as of revision 24:e3ed1b52c6e6:
#include "http.h" #include "page.h" #include "radiator.h" #include "ds18b20.h" #include "program.h" #include "http-server.h" void HttpHomeHtml() { HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL); PageAddHeader(PageSite, "Home", NULL, "heating.js"); HttpAddText("<a href='/program' class='hamburger'>\r\n"); HttpAddText("<div class='bar' ></div>\r\n"); HttpAddText("<div class='space'></div>\r\n"); HttpAddText("<div class='bar' ></div>\r\n"); HttpAddText("<div class='space'></div>\r\n"); HttpAddText("<div class='bar' ></div>\r\n"); HttpAddText("</a>\r\n"); HttpAddText("<br/>\r\n"); HttpAddText("<br/>\r\n"); HttpAddText("<div id='ajax-date-html'></div>\r\n"); HttpAddText("<br/>\r\n"); PageAddLabelledName("Hall temperature", 10.0, "ajax-hall-html", "°C"); HttpAddText("<br/>\r\n"); PageAddAjaxToggle(10.0, "Mode: Summer|Winter", "ajax-mode-toggle" , "htg-chg-mode" ); HttpAddText("<br/>\r\n"); PageAddAjaxToggle(10.0, "Radiators: Off|On" , "ajax-radiator-toggle", "htg-chg-output"); HttpAddText("<br/>\r\n"); PageAddEnd(); }