Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

log/http-log-html.c

Committer:
andrewboyson
Date:
2019-04-06
Revision:
83:0d956edd55b7
Parent:
77:4689596a2f3f
Child:
87:c51478679090

File content as of revision 83:0d956edd55b7:

#include "http.h"
#include "page.h"
#include "log.h"
#include "http-server.h"

void HttpLogHtml()
{
    HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
    PageAddHeader(PageSite, "Log", "settings.css", NULL);
    PageAddNav(LOG_PAGE);
    PageAddH1(PageSite, "Log");
    
    HttpAddText("<h2>");
    PageAddInputButton("Log", "Clear", "/log", "clearlog");
    HttpAddText("</h2>\r\n");
    
    HttpAddText("<code>");
    HttpAddStream(LogEnumerateStart, LogEnumerate);
    HttpAddText("</code>");
    
    PageAddEnd();
}