A GPS disciplined clock

Dependencies:   net lpc1768 crypto clock web log

web-this/nmea/web-nmea-html.c

Committer:
andrewboyson
Date:
2019-05-01
Revision:
59:d2d25c2265f8
Parent:
web-derived/nmea/web-nmea-html.c@ 58:3f3e000151cc
Child:
60:7cab896b0fd4

File content as of revision 59:d2d25c2265f8:

#include <stdio.h>

#include "http.h"
#include "web-nav-this.h"
#include "web-add.h"

void WebNmeaHtml()
{
    HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
    WebAddHeader("NMEA", "settings.css", "nmea.js");
    WebAddNav(NMEA_PAGE);
    WebAddH1("NMEA");
        
    WebAddH2("Position");
    WebAddAjaxLabelled("WGS", "ajax-position");
    WebAddAjaxLabelled("Satellite count", "ajax-sat-count");
    WebAddAjaxLabelled("Dilution of Precision", "ajax-dop");
    
    WebAddH2("Height");
    WebAddAjaxLabelledSuffix("MSL above WGS",                 "ajax-msl-above-wgs",              "m");
    WebAddAjaxLabelledSuffix("Sensor height above MSL",       "ajax-hgt-above-msl",              "m");
    WebAddAjaxInputSuffix   ("Sensor height above ground", 2, "ajax-sensor-hgt", "sensorheight", "m");
    WebAddAjaxLabelledSuffix("Ground height above MSL",       "ajax-gnd-above-msl",              "m");
    
    WebAddH2("Trace");
    WebAddAjaxInputToggle("Trace GPS"    , "ajax-trace-gps"    , "gpstrace"     );
    WebAddAjaxInputToggle("Verbose GPS"  , "ajax-trace-verbose", "gpsverbose"   );
    WebAddAjaxInputToggle("Trace message", "ajax-trace-msg"    , "nmeamsgtrace" );
    WebAddAjaxInputToggle("Trace command", "ajax-trace-cmd"    , "nmeacmdtrace" );

    WebAddH2("ZDA timing bins");
    HttpAddText("<code id='ajax-buckets'></code>\r\n");
    
    WebAddH2("Ajax");
    HttpAddText("<code id='ajax-headers'></code>\r\n");
    HttpAddText("<code id='ajax-response'></code>\r\n");
    
    WebAddEnd();
}