A GPS disciplined clock
Dependencies: net lpc1768 crypto clock web log
web-this/home/web-home-script.c@60:7cab896b0fd4, 2019-05-01 (annotated)
- Committer:
- andrewboyson
- Date:
- Wed May 01 14:08:56 2019 +0000
- Revision:
- 60:7cab896b0fd4
- Parent:
- 59:d2d25c2265f8
Updated this site's js to use the web common ajax module
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 27:eb5728b9052b | 1 | #include "http.h" |
andrewboyson | 27:eb5728b9052b | 2 | |
andrewboyson | 27:eb5728b9052b | 3 | //Use http://tomeko.net/online_tools/cpp_text_escape.php to convert from text to c-multiline |
andrewboyson | 27:eb5728b9052b | 4 | //Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text |
andrewboyson | 27:eb5728b9052b | 5 | |
andrewboyson | 55:a1bd0572c8b6 | 6 | const char* WebHomeScriptDate = __DATE__; |
andrewboyson | 55:a1bd0572c8b6 | 7 | const char* WebHomeScriptTime = __TIME__; |
andrewboyson | 27:eb5728b9052b | 8 | |
andrewboyson | 27:eb5728b9052b | 9 | static const char* script = |
andrewboyson | 60:7cab896b0fd4 | 10 | #include "web-clock-class.inc" |
andrewboyson | 60:7cab896b0fd4 | 11 | #include "../common/web-ajax-class.inc" |
andrewboyson | 55:a1bd0572c8b6 | 12 | #include "web-home-script.inc" |
andrewboyson | 27:eb5728b9052b | 13 | ; |
andrewboyson | 55:a1bd0572c8b6 | 14 | void WebHomeScript() |
andrewboyson | 27:eb5728b9052b | 15 | { |
andrewboyson | 55:a1bd0572c8b6 | 16 | HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebHomeScriptDate, WebHomeScriptTime); |
andrewboyson | 27:eb5728b9052b | 17 | HttpAddText(script); |
andrewboyson | 27:eb5728b9052b | 18 | } |