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.
Dependents: oldheating gps motorhome heating
Diff: http-clock-html.c
- Revision:
- 24:0ed9f1faea96
- Parent:
- 22:f45bbb468439
- Child:
- 25:467494781985
--- a/http-clock-html.c Wed Jan 09 18:44:28 2019 +0000
+++ b/http-clock-html.c Thu Jan 10 16:08:27 2019 +0000
@@ -17,7 +17,7 @@
NavAdd(CLOCK_PAGE);
PageAddH1(NavSite, "Clock");
- PageAddH2("Sync status");
+ PageAddH2("Status");
PageAddAjaxToggle(10.0, "RTC is set" , "ajax-rtc-set" , "");
PageAddAjaxToggle(10.0, "Clock is set" , "ajax-clock-set" , "");
PageAddAjaxToggle(10.0, "External source is ok", "ajax-source-ok" , "");
@@ -30,21 +30,21 @@
PageAddH2("Server local time");
HttpAddText("<div id='date-pc'></div>\r\n");
- PageAddH2("Server - PC");
+ PageAddH2("Server - PC (ms)");
HttpAddText("<div id='date-diff'></div>\r\n");
- PageAddH2("Leap seconds");
- PageAddAjaxToggle(10.0, "Next leap enable" , "ajax-leap-enable" , "chg-clock-leap-enable" );
- PageAddAjaxToggle(10.0, "Next leap backward" , "ajax-leap-backward", "chg-clock-leap-backward");
- PageAddAjaxHex ( 6.0, "Next Year" , 5.2 , "ajax-leap-year" , "set-clock-leap-year" );
- PageAddAjaxHex ( 6.0, "Next Month" , 5.2 , "ajax-leap-month" , "set-clock-leap-month" );
- PageAddAjaxHex ( 6.0, "Count" , 5.2 , "ajax-leap-count" , "set-clock-leap-count" );
+ PageAddH2("UTC");
+ PageAddAjaxToggle(10.0, "Enable epoch change" , "ajax-leap-enable" , "chg-clock-leap-enable" );
+ PageAddAjaxToggle(10.0, "Direction of next epoch" , "ajax-leap-forward" , "chg-clock-leap-forward");
+ PageAddAjaxHex ( 6.0, "Year next epoch starts" , 5.2 , "ajax-leap-year" , "set-clock-leap-year" );
+ PageAddAjaxHex ( 6.0, "Month next epoch starts" , 5.2 , "ajax-leap-month" , "set-clock-leap-month" );
+ PageAddAjaxHex ( 6.0, "Current era offset" , 5.2 , "ajax-leap-count" , "set-clock-leap-count" );
HttpAddText("<div><button type='button' onclick='DisplayLeap()'>Display Leap</button></div>\r\n");
HttpAddText("<div>The leap seconds list is available from <a href='https://www.ietf.org/timezones/data/leap-seconds.list' target='_blank'>ietf</a></div>\r\n");
- PageAddH2("Settings");
+ PageAddH2("Governer");
PageAddIntInput ("/clock", 0, "Ppb", 12, "ppb", 5, ClkGovGetPpb() );
PageAddIntInput ("/clock", 0, "Ppb divisor", 12, "ppbdivisor", 5, ClkGovPpbDivisor );
PageAddIntInput ("/clock", 0, "Ppb max change", 12, "ppbmaxchange", 5, ClkGovPpbChangeMax );