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
page/page.h@57:8fa31ff4e773, 2019-03-07 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu Mar 07 13:40:12 2019 +0000
- Revision:
- 57:8fa31ff4e773
- Parent:
- 56:f6e814fe0159
- Child:
- 58:e5ab14ef6ea6
Tidied page module ajax routine
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| andrewboyson | 0:f8998d10763e | 1 | #include <time.h> |
| andrewboyson | 0:f8998d10763e | 2 | #include <stdint.h> |
| andrewboyson | 0:f8998d10763e | 3 | |
| andrewboyson | 46:1822fdbe6c0c | 4 | #define FAULT_PAGE 0 |
| andrewboyson | 46:1822fdbe6c0c | 5 | #define CLOCK_PAGE 1 |
| andrewboyson | 46:1822fdbe6c0c | 6 | #define NET_PAGE 2 |
| andrewboyson | 46:1822fdbe6c0c | 7 | #define LOG_PAGE 3 |
| andrewboyson | 46:1822fdbe6c0c | 8 | #define TRACE_PAGE 4 |
| andrewboyson | 46:1822fdbe6c0c | 9 | #define FIRMWARE_PAGE 5 |
| andrewboyson | 30:6a08abbe6301 | 10 | |
| andrewboyson | 30:6a08abbe6301 | 11 | extern const char* PageSite; |
| andrewboyson | 30:6a08abbe6301 | 12 | extern void PageAddNav(int page); |
| andrewboyson | 30:6a08abbe6301 | 13 | |
| andrewboyson | 2:14de8c14afd9 | 14 | extern void PageAddHeader (const char* site, const char* title, const char* style, const char* script); |
| andrewboyson | 0:f8998d10763e | 15 | extern void PageAddNavItem (int highlight, char* href, char* title); |
| andrewboyson | 12:237a0f75b4d0 | 16 | extern void PageAddH1 (const char* site, const char* pageName); |
| andrewboyson | 12:237a0f75b4d0 | 17 | extern void PageAddH2 (const char* text); |
| andrewboyson | 12:237a0f75b4d0 | 18 | extern void PageAddEnd (void); |
| andrewboyson | 0:f8998d10763e | 19 | |
| andrewboyson | 0:f8998d10763e | 20 | extern void PageAddLabelledValue(char* label, float labelwidth, char* value); |
| andrewboyson | 0:f8998d10763e | 21 | extern void PageAddLabelledMac (char* label, float labelwidth, char* mac); |
| andrewboyson | 0:f8998d10763e | 22 | extern void PageAddLabelledIp4 (char* label, float labelwidth, uint32_t ip); |
| andrewboyson | 0:f8998d10763e | 23 | extern void PageAddLabelledIp6 (char* label, float labelwidth, char* ip); |
| andrewboyson | 0:f8998d10763e | 24 | extern void PageAddLabelledOnOff(char* label, float labelwidth, int value); |
| andrewboyson | 0:f8998d10763e | 25 | extern void PageAddLabelledInt (char* label, float labelwidth, int value); |
| andrewboyson | 0:f8998d10763e | 26 | extern void PageAddTm (struct tm* ptm); |
| andrewboyson | 0:f8998d10763e | 27 | |
| andrewboyson | 0:f8998d10763e | 28 | extern void PageAddTextInput (char* action, float width, char* label, float labelwidth, char* name, float inputwidth, char* value); |
| andrewboyson | 0:f8998d10763e | 29 | extern void PageAddIntInput (char* action, float width, char* label, float labelwidth, char* name, float inputwidth, int value); |
| andrewboyson | 0:f8998d10763e | 30 | extern void PageAddHexInput (char* action, float width, char* label, float labelwidth, char* name, float inputwidth, char value0, char value1); |
| andrewboyson | 56:f6e814fe0159 | 31 | extern void PageAddCheckInput (char* action, char* label, float labelwidth, char* name, char* button); |
| andrewboyson | 0:f8998d10763e | 32 | |
| andrewboyson | 0:f8998d10763e | 33 | extern void PageAddAjaxToggle (float labelwidth, char* label, char* id, char* request); |
| andrewboyson | 31:b5ca802195a7 | 34 | extern void PageAddAjaxInput (float labelwidth, char* label, float inputwidth, char* id, char* request); |
| andrewboyson | 57:8fa31ff4e773 | 35 | extern void PageAddAjaxLabelled (float labelwidth, char* label, char* id, char* suffix); |