Dependencies: 1-wire clock crypto fram log lpc1768 net web wiz mbed
web-this/program/web-program-html.c@8:8ac076ce51af, 2022-11-12 (annotated)
- Committer:
- andrewboyson
- Date:
- Sat Nov 12 10:03:38 2022 +0000
- Revision:
- 8:8ac076ce51af
- Parent:
- 0:22b158d3c76f
Updated LPC1768 library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 0:22b158d3c76f | 1 | #include "web-nav-this.h" |
andrewboyson | 0:22b158d3c76f | 2 | #include "http.h" |
andrewboyson | 0:22b158d3c76f | 3 | #include "web-add.h" |
andrewboyson | 0:22b158d3c76f | 4 | |
andrewboyson | 0:22b158d3c76f | 5 | void WebProgramHtml() |
andrewboyson | 0:22b158d3c76f | 6 | { |
andrewboyson | 0:22b158d3c76f | 7 | HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL); |
andrewboyson | 0:22b158d3c76f | 8 | WebAddHeader("Program", "settings.css", "program.js"); |
andrewboyson | 0:22b158d3c76f | 9 | WebAddNav(PROGRAM_PAGE); |
andrewboyson | 0:22b158d3c76f | 10 | WebAddH1("Program"); |
andrewboyson | 0:22b158d3c76f | 11 | WebAddH2("Output"); |
andrewboyson | 0:22b158d3c76f | 12 | WebAddAjaxLed("Programmer output", "ajax-program-toggle"); |
andrewboyson | 0:22b158d3c76f | 13 | |
andrewboyson | 0:22b158d3c76f | 14 | WebAddH2("Program on and off times"); |
andrewboyson | 0:22b158d3c76f | 15 | WebAddAjaxInput("1", 15, "ajax-program-1", "program1"); |
andrewboyson | 0:22b158d3c76f | 16 | WebAddAjaxInput("2", 15, "ajax-program-2", "program2"); |
andrewboyson | 0:22b158d3c76f | 17 | WebAddAjaxInput("3", 15, "ajax-program-3", "program3"); |
andrewboyson | 0:22b158d3c76f | 18 | |
andrewboyson | 0:22b158d3c76f | 19 | WebAddH2("Day to program association"); |
andrewboyson | 0:22b158d3c76f | 20 | WebAddAjaxInput("Mon", 2, "ajax-mon-program", "mon"); |
andrewboyson | 0:22b158d3c76f | 21 | WebAddAjaxInput("Tue", 2, "ajax-tue-program", "tue"); |
andrewboyson | 0:22b158d3c76f | 22 | WebAddAjaxInput("Wed", 2, "ajax-wed-program", "wed"); |
andrewboyson | 0:22b158d3c76f | 23 | WebAddAjaxInput("Thu", 2, "ajax-thu-program", "thu"); |
andrewboyson | 0:22b158d3c76f | 24 | WebAddAjaxInput("Fri", 2, "ajax-fri-program", "fri"); |
andrewboyson | 0:22b158d3c76f | 25 | WebAddAjaxInput("Sat", 2, "ajax-sat-program", "sat"); |
andrewboyson | 0:22b158d3c76f | 26 | WebAddAjaxInput("Sun", 2, "ajax-sun-program", "sun"); |
andrewboyson | 0:22b158d3c76f | 27 | |
andrewboyson | 0:22b158d3c76f | 28 | WebAddH2("New day start time"); |
andrewboyson | 0:22b158d3c76f | 29 | WebAddAjaxInput("Hour", 2, "ajax-new-day-hour", "newdayhour"); |
andrewboyson | 0:22b158d3c76f | 30 | |
andrewboyson | 0:22b158d3c76f | 31 | WebAddEnd(); |
andrewboyson | 0:22b158d3c76f | 32 | } |