Andrew Boyson / gps

Dependencies:   net lpc1768 crypto clock web log

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?

UserRevisionLine numberNew contents of line
andrewboyson 48:9f1ab7784067 1 #include "http.h"
andrewboyson 48:9f1ab7784067 2
andrewboyson 48:9f1ab7784067 3 //Use http://tomeko.net/online_tools/cpp_text_escape.php to convert from text to c-multiline
andrewboyson 48:9f1ab7784067 4 //Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text
andrewboyson 48:9f1ab7784067 5
andrewboyson 55:a1bd0572c8b6 6 const char* WebNmeaScriptDate = __DATE__;
andrewboyson 55:a1bd0572c8b6 7 const char* WebNmeaScriptTime = __TIME__;
andrewboyson 48:9f1ab7784067 8
andrewboyson 48:9f1ab7784067 9 static const char* script =
andrewboyson 60:7cab896b0fd4 10 #include "../common/web-ajax-class.inc"
andrewboyson 55:a1bd0572c8b6 11 #include "web-nmea-script.inc"
andrewboyson 48:9f1ab7784067 12 ;
andrewboyson 55:a1bd0572c8b6 13 void WebNmeaScript()
andrewboyson 48:9f1ab7784067 14 {
andrewboyson 55:a1bd0572c8b6 15 HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebNmeaScriptDate, WebNmeaScriptTime);
andrewboyson 48:9f1ab7784067 16 HttpAddText(script);
andrewboyson 48:9f1ab7784067 17 }