From: maxious Date: Sun, 20 Mar 2011 04:06:26 +0000 Subject: Hide viaPoints when display width is less than 480px X-Git-Url: https://maxious.lambdacomplex.org/git/?p=busui.git&a=commitdiff&h=d536d0756ef163683062fdcca6c1f19425ae97cc --- Hide viaPoints when display width is less than 480px --- --- a/common-template.inc.php +++ b/common-template.inc.php @@ -73,7 +73,13 @@ #jqm-homeheader { text-align: center; } - + .viaPoints { + display: none; + text-size: 0.2em; + } + .min-width-480px .viaPoints { + display: block; + } // source http://webaim.org/techniques/skipnav/ #skip a, #skip a:hover, #skip a:visited { --- a/stop.php +++ b/stop.php @@ -72,10 +72,8 @@ foreach ($trips as $row) { echo '
  • '; echo '

    ' . $row[1][1]; - if (isFastDevice()) { - $viaPoints = viaPointNames($row[1][0], $stopid); - if ($viaPoints != "") echo '
    Via: ' . $viaPoints . ''; - } + $viaPoints = viaPointNames($row[1][0], $stopid); + if ($viaPoints != "") echo '
    Via: ' . $viaPoints . '
    '; if (sizeof($tripStopNumbers) > 0) { echo '
    Boarding At: '; foreach ($tripStopNumbers[$row[1][0]] as $key) {