Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Mon Apr 29 14:45:30 2019 +0000
Revision:
109:3e82f62c7e1f
Parent:
103:91194cc19bbb
Tidied names from http to web

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 103:91194cc19bbb 1 #include "http.h"
andrewboyson 109:3e82f62c7e1f 2 #include "web-page-base.h"
andrewboyson 109:3e82f62c7e1f 3 #include "web-add.h"
andrewboyson 103:91194cc19bbb 4 #include "log.h"
andrewboyson 103:91194cc19bbb 5
andrewboyson 103:91194cc19bbb 6 void WebLogHtml()
andrewboyson 103:91194cc19bbb 7 {
andrewboyson 103:91194cc19bbb 8 HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
andrewboyson 109:3e82f62c7e1f 9 WebAddHeader("Log", "settings.css", NULL);
andrewboyson 109:3e82f62c7e1f 10 WebAddNav(LOG_PAGE);
andrewboyson 109:3e82f62c7e1f 11 WebAddH1("Log");
andrewboyson 103:91194cc19bbb 12
andrewboyson 109:3e82f62c7e1f 13 WebAddInputButton("Existing content", "Clear", "/log", "clearlog" );
andrewboyson 109:3e82f62c7e1f 14 if (LogUart) WebAddInputButton("Output to uart is on", "Turn off", "/log", "chg-log-uart");
andrewboyson 109:3e82f62c7e1f 15 else WebAddInputButton("Output to uart is off", "Turn on", "/log", "chg-log-uart");
andrewboyson 103:91194cc19bbb 16
andrewboyson 103:91194cc19bbb 17 HttpAddText("<code>");
andrewboyson 103:91194cc19bbb 18 HttpAddStream(LogEnumerateStart, LogEnumerate);
andrewboyson 103:91194cc19bbb 19 HttpAddText("</code>");
andrewboyson 103:91194cc19bbb 20
andrewboyson 109:3e82f62c7e1f 21 WebAddEnd();
andrewboyson 103:91194cc19bbb 22 }