From: Maxious Date: Mon, 18 Jul 2011 13:43:29 +0000 Subject: Fix Android viewport zoom X-Git-Url: https://maxious.lambdacomplex.org/git/?p=busui.git&a=commitdiff&h=7d12f23a47875ca3d38cbddf3470d9871ca8c266 --- Fix Android viewport zoom --- --- /dev/null +++ b/css/local.css.php @@ -1,1 +1,216 @@ - + + --- a/dotcloud/postinstall +++ b/dotcloud/postinstall @@ -3,8 +3,8 @@ curl http://s3-ap-southeast-1.amazonaws.com/busresources/cbrfeed.zip \ -o /home/dotcloud/current/cbrfeed.zip -wget http://s3-ap-southeast-1.amazonaws.com/busresources/Graph.obj \ --O /tmp/Graph.obj +curl http://s3-ap-southeast-1.amazonaws.com/busresources/Graph.obj \ +-o /tmp/Graph.obj #db setup #curl https://github.com/maxious/ACTBus-ui/raw/master/transitdata.cbrfeed.sql.gz -o transitdata.cbrfeed.sql.gz --- a/include/common-template.inc.php +++ b/include/common-template.inc.php @@ -32,7 +32,8 @@ - ' . $pageTitle . ' + +' . $pageTitle . ' '; @@ -77,8 +78,7 @@ }); '; - echo ''; + +echo ''; -} -@media all and (min-width: 750px){ - .type-home .ui-content, - .type-interior .ui-content { - background-position: 39%; - } - .content-secondary { - width: 34%; - } - .content-primary { - width: 56%; - padding-right: 1%; - } - .type-interior .ui-content { - background-position: 34%; - } -} - -@media all and (min-width: 1200px){ - .type-home .ui-content{ - background-position: 38.5%; - } - .type-interior .ui-content { - background-position: 30%; - } - .content-secondary { - width: 30%; - padding-right:6%; - margin: 30px 0 20px 5%; - } - .type-interior .content-secondary { - margin: 0; - padding: 0; - } - .content-primary { - width: 50%; - margin-right: 5%; - padding-right: 3%; - } - .type-interior .content-primary { - width: 60%; - } -} - -'; + if (strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'], 'iPod') || strstr($_SERVER['HTTP_USER_AGENT'], 'iPad')) { echo ' --- a/labs/myway_timeliness.php +++ b/labs/myway_timeliness.php @@ -15,7 +15,6 @@ var midnight = d.getTime(); prepare($query); $query->execute(); --- a/stop.php +++ b/stop.php @@ -68,7 +68,6 @@ }*/ echo ''; -timePlaceSettings(); echo $stopLinks; if (sizeof($stops) > 0) { trackEvent("View Stops", "View Combined Stops", $stop["stop_name"], $stop["stop_id"]); @@ -83,6 +82,7 @@ ) )) ; } +timePlaceSettings(); echo ''; echo '