Skip to content

Commit 7fe9cc4

Browse files
committed
Merge pull request jquery-archive#2757 from jakeboone02/ios-web-app-demo
Browse the docs as a fullscreen web app in iOS. Thanks jakeboone02!
2 parents 1d55b38 + d44cce5 commit 7fe9cc4

File tree

4 files changed

+51
-0
lines changed

4 files changed

+51
-0
lines changed

docs/_assets/images/ios_icon.png

1.82 KB
Loading
11.1 KB
Loading

docs/config/iOSFullscreen.html

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<meta name="apple-mobile-web-app-capable" content="yes">
7+
<meta name="apple-mobile-web-app-status-bar-style" content="black">
8+
<link rel="apple-touch-icon" href="../_assets/images/ios_icon.png"/>
9+
<link rel="apple-touch-startup-image" href="../_assets/images/ios_startup.png" />
10+
<title>jQuery Mobile Docs - Configuration</title>
11+
<link rel="stylesheet" href="../../css/themes/default/" />
12+
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
13+
<script src="../../js/jquery.js"></script>
14+
<script>
15+
$(document).bind("mobileinit", function() {
16+
if (!!window.navigator.standalone) {
17+
$.mobile.page.prototype.options.addBackBtn = true;
18+
}
19+
});
20+
</script>
21+
22+
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
23+
<script src="../_assets/js/jqm-docs.js"></script>
24+
<script src="../../js/"></script>
25+
</head>
26+
<body>
27+
28+
<div data-role="page" class="type-index">
29+
30+
<div data-role="header" data-theme="f">
31+
<h1>jQuery Mobile</h1>
32+
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
33+
</div>
34+
35+
<div data-role="content">
36+
37+
<h2>Fullscreen docs in iOS</h2>
38+
<p>First, hit Add to Home Screen to create a new shortcut icon on the home screen. Next, open the new shortcut and hit the button below to browse the docs as a fullscreen web app.</p>
39+
<a href="../../index.html" data-role="button" data-icon="arrow-r" data-iconpos="right">Browse docs</a>
40+
41+
</div>
42+
</div><!-- /page -->
43+
44+
</body>
45+
</html>

docs/config/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ <h3>pageLoadErrorMessage - "Yikes, we broke the internet!"</h3>
6868
<p>Set the text that appears when a page fails to load through Ajax.</p>
6969
</a>
7070
</li>
71+
<li>
72+
<a href="iOSFullscreen.html" data-ajax="false">
73+
<h3>apple-mobile-web-app-capable meta tag</h3>
74+
<p>View the docs without browser chrome in iOS.</p>
75+
</a>
76+
</li>
7177
<li>
7278
<a href="jq17b1.html" data-ajax="false">
7379
<h3>jQuery core version 1.7 Beta 1</h3>

0 commit comments

Comments
 (0)