Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

Revision:
14:c3c43c8faf0e
Child:
29:4d649264d6b6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/http-log-html.c	Sat Dec 29 19:01:39 2018 +0000
@@ -0,0 +1,23 @@
+#include "http.h"
+#include "page.h"
+#include  "nav.h"
+#include  "log.h"
+#include "http-base.h"
+
+void HttpLogHtml()
+{
+    HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
+    PageAddHeader(NavSite, "Log", "settings.css", NULL);
+    NavAdd(LOG_PAGE);
+    PageAddH1(NavSite, "Log");
+    
+    HttpAddText("<h2>");
+    PageAddCheckInput("/log", "Log", "clearlog", "clear");
+    HttpAddText("</h2>\r\n");
+    
+    HttpAddText("<code>");
+    HttpAddStream(LogEnumerateStart, LogEnumerate);
+    HttpAddText("</code>");
+    
+    PageAddEnd();
+}