Permalink
Browse files

📱 Working on the iPhone 📱

  • Loading branch information...
1 parent fd22bcb commit a69928b6668dd81edc406aa40c4cfcddcf57f25a @zachwill zachwill committed Jun 25, 2012
Showing with 8 additions and 1 deletion.
  1. +1 −0 _layouts/default.html
  2. +1 −1 index.html
  3. +6 −0 js/main.js
View
@@ -9,6 +9,7 @@
<meta name="author" content="{{ site.author }}">
<meta name="description" content="{{ site.description }}">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="apple-mobile-web-app-capable" content="yes" />
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
View
@@ -24,7 +24,7 @@
<div class="container-fluid map">
<div class="row-fluid">
<div class="span12">
- <iframe width='500' height='600' frameBorder='0' src='http://a.tiles.mapbox.com/v3/jllord.mta.html'></iframe>
+ <iframe width='500' height='960' frameBorder='0' src='http://a.tiles.mapbox.com/v3/jllord.mta.html'></iframe>
</div>
</div>
</div>
View
@@ -1,9 +1,14 @@
$(function() {
+
+ window.top.scrollTo(0, 1);
+
var resize = function() {
var win = $(window),
height = win.height(),
width = win.width();
+ height = (height > 375) ? height : 375;
+
$('iframe').attr({
height: height,
width:width
@@ -13,4 +18,5 @@ $(function() {
$(window).resize(resize);
resize();
+
})

0 comments on commit a69928b

Please sign in to comment.