Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

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"    );