Andrew Boyson / oldheating

Dependencies:   net 1-wire lpc1768 crypto clock web fram log

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers web-home-html.c Source File

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='/program' 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", "&deg;C");
00022     HttpAddText("<br/>\r\n");
00023     WebAddAjaxInputToggle("Winter mode", "ajax-mode-toggle"    , "htg-chg-mode"    );
00024     HttpAddText("<br/>\r\n");
00025     WebAddAjaxInputToggle("Radiators"  , "ajax-radiator-toggle", "htg-chg-override");
00026     HttpAddText("<br/>\r\n");
00027 
00028     WebAddEnd();
00029 }
00030