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

web-this/home/web-home-html.c

Committer:
andrewboyson
Date:
2019-05-12
Revision:
61:b7513ca034b8
Parent:
53:c1bf7d9db507
Child:
99:84c3273dc77f

File content as of revision 61:b7513ca034b8:

#include "http.h"
#include "web-add.h"

void WebHomeHtml()
{
    HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
    WebAddHeader("Home", NULL, "radiator.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-local'></div>\r\n");
    HttpAddText("<br/>\r\n");
    WebAddAjaxLabelledSuffix("Hall temperature", "ajax-hall-html", "&deg;C");
    HttpAddText("<br/>\r\n");
    WebAddAjaxInputToggle("Winter mode", "ajax-mode-toggle"    , "htg-chg-mode"    );
    HttpAddText("<br/>\r\n");
    WebAddAjaxInputToggle("Radiators"  , "ajax-override-toggle", "htg-chg-override");
    HttpAddText("<br/>\r\n");

    WebAddEnd();
}