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.
Dependencies: net lpc1768 crypto clock web log
Diff: web-this/home/web-home-script.c
- Revision:
- 59:d2d25c2265f8
- Parent:
- 58:3f3e000151cc
- Child:
- 60:7cab896b0fd4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web-this/home/web-home-script.c Wed May 01 10:14:26 2019 +0000 @@ -0,0 +1,16 @@ +#include "http.h" + +//Use http://tomeko.net/online_tools/cpp_text_escape.php to convert from text to c-multiline +//Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text + +const char* WebHomeScriptDate = __DATE__; +const char* WebHomeScriptTime = __TIME__; + +static const char* script = +#include "web-home-script.inc" +; +void WebHomeScript() +{ + HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebHomeScriptDate, WebHomeScriptTime); + HttpAddText(script); +}