Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
base/log/web-log-html.c@160:daa94b75b94c, 2021-05-11 (annotated)
- 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?
User | Revision | Line number | New 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 | } |