From: maxious Date: Thu, 17 Mar 2011 13:17:19 +0000 Subject: Accessiblity and html validation fixes X-Git-Url: https://maxious.lambdacomplex.org/git/?p=busui.git&a=commitdiff&h=3ccd5f3cff6c791fdf5e2da129b0fcb87967ebb2 --- Accessiblity and html validation fixes --- --- a/common-template.inc.php +++ b/common-template.inc.php @@ -3,8 +3,9 @@ { echo ' - - + + + ' . $pageTitle . ''; if ($datepicker) echo ''; if (isDebugServer()) echo ' @@ -44,6 +45,27 @@ body { background-color: #F0F0F0; } + #jqm-homeheader { + text-align: center; + } + + // source http://webaim.org/techniques/skipnav/ + #skip a, #skip a:hover, #skip a:visited +{ +position:absolute; +left:0px; +top:-500px; +width:1px; +height:1px; +overflow:hidden; +} + +#skip a:active, #skip a:focus +{ +position:static; +width:auto; +height:auto; +} '; if (strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'], 'iPod')) { echo ' @@ -77,6 +99,9 @@ } echo ' + '; if ($opendiv) { echo '
@@ -89,6 +114,7 @@

' . $pageTitle . '

+
'; } } @@ -117,21 +143,21 @@ } echo '

Change Time/Place (' . (isset($_SESSION['time']) ? $_SESSION['time'] : "Current Time,") . ' ' . ucwords(service_period()) . ')...

-
+
- +
- '; foreach ($service_periods as $service_period) { - echo "'; + echo "'; } echo ' --- a/index.php +++ b/index.php @@ -5,9 +5,10 @@
-

busness time


Canberra Bus Timetables and Trip Planner
+

busness time


Canberra Bus Timetables and Trip Planner
- Launch Trip Planner... + + Launch Trip Planner...
  • Timetables - Stops
  • Major (Timing Point) Stops
  • --- a/stop.php +++ b/stop.php @@ -48,7 +48,7 @@ } include_header($stop[1], "stop"); timePlaceSettings(); -echo '
    '; +echo '
    '; echo $stopLinks; if (sizeof($stops) > 0) { echo '

    ' . staticmap($stopPositions) . '

    ';