Skip to content

Commit c7f80c5

Browse files
committed
iOS web apps <3 pjax
1 parent c2a7265 commit c7f80c5

File tree

6 files changed

+10
-1
lines changed

6 files changed

+10
-1
lines changed

app/views/layout.erb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
<meta charset='utf-8'>
66
<title><%= @title ? "#{@title} - " : nil %> pjax</title>
77

8+
<%# iOS chromeless and native-app:y, if run from a homescreen bookmark %>
9+
<meta name="apple-mobile-web-app-capable" content="yes">
10+
<%# and then make that bookmark look at least a smidge respectable too %>
11+
<link rel="apple-touch-icon" href="/pjax-57.png" sizes="57x57">
12+
<link rel="apple-touch-icon" href="/pjax-72.png" sizes="72x72">
13+
<link rel="apple-touch-icon" href="/pjax-114.png" sizes="114x114">
14+
<%# finally, make the page-top bar somewhat respectably toned down too %>
15+
<meta name="apple-mobile-web-app-status-bar-style" content="black">
16+
817
<script src="jquery.js"></script>
918
<script src="jquery.cookie.js"></script>
1019
<script src="pages.js"></script>
@@ -64,4 +73,4 @@
6473
<%= yield %>
6574
</div>
6675

67-
</html>
76+
</html>

pjax-114.png

2.83 KB
Loading

pjax-16.png

902 Bytes
Loading

pjax-56.png

1.8 KB
Loading

pjax-72.png

2.08 KB
Loading

pjax.png

4.33 KB
Loading

0 commit comments

Comments
 (0)