Skip to content
Browse files

Merge pull request #76 from johan/heroku

iOS web apps <3 pjax
  • Loading branch information...
2 parents c2a7265 + c7f80c5 commit 0630e27febf72250937befc05a104c5f44761467 Chris Wanstrath committed Feb 7, 2012
View
11 app/views/layout.erb
@@ -5,6 +5,15 @@
<meta charset='utf-8'>
<title><%= @title ? "#{@title} - " : nil %> pjax</title>
+ <%# iOS chromeless and native-app:y, if run from a homescreen bookmark %>
+ <meta name="apple-mobile-web-app-capable" content="yes">
+ <%# and then make that bookmark look at least a smidge respectable too %>
+ <link rel="apple-touch-icon" href="/pjax-57.png" sizes="57x57">
+ <link rel="apple-touch-icon" href="/pjax-72.png" sizes="72x72">
+ <link rel="apple-touch-icon" href="/pjax-114.png" sizes="114x114">
+ <%# finally, make the page-top bar somewhat respectably toned down too %>
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
+
<script src="jquery.js"></script>
<script src="jquery.cookie.js"></script>
<script src="pages.js"></script>
@@ -64,4 +73,4 @@
<%= yield %>
</div>
-</html>
+</html>
View
BIN pjax-114.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN pjax-16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN pjax-56.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN pjax-72.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN pjax.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0630e27

Please sign in to comment.
Something went wrong with that request. Please try again.