Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Tue May 11 11:00:00 2021 +0000
Revision:
160:daa94b75b94c
Parent:
110:8ab752842d25
CSS modified to not change the text colour when hovering over a disabled button: it still does for buttons which are enabled.

Who changed what in which revision?

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