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: page/page.c
- Revision:
- 91:9a125082f53c
- Parent:
- 90:9cc77a16b6c5
- Child:
- 92:9ce59a5b6032
diff -r 9cc77a16b6c5 -r 9a125082f53c page/page.c
--- a/page/page.c Thu Apr 11 11:01:12 2019 +0000
+++ b/page/page.c Thu Apr 11 16:21:27 2019 +0000
@@ -43,7 +43,7 @@
}
void PageAddH1(const char* site, const char* pageName)
{
- HttpAddText("<h1>");
+ HttpAddText("<h1 id='main-content'>");
HttpAddText(site);
HttpAddText(" - ");
HttpAddText(pageName);
@@ -77,6 +77,8 @@
}
void PageAddNav(int page)
{
+ HttpAddText("<a class='tab-shortcut' href='#main-content'>Skip to main content</a>\r\n");
+
HttpAddText("<nav><ul>\r\n");
PageAddNavDerived(page);
PageAddNavItem(page == CLOCK_PAGE, "/clock", "Clock" );