Permalink
Browse files

Fixed add-to-home-screen

  • Loading branch information...
1 parent 35002b5 commit 92c472841c9101028a61cd8c89c7353948aad140 @herkulano committed Sep 5, 2011
Showing with 15 additions and 9 deletions.
  1. +7 −4 index.debug.html
  2. +8 −5 index.html
View
11 index.debug.html
@@ -4,13 +4,16 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>CODEBITS V</title>
+ <meta name="apple-mobile-web-app-capable" content="yes">
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
+
<link rel="stylesheet" href="resources/css/main.css" type="text/css">
<script type="text/javascript">
- if ('standalone' in navigator && !navigator.standalone && (/iphone|ipod|ipad/gi).test(navigator.platform) && (/Safari/i).test(navigator.appVersion)) {
- document.write('<link rel="stylesheet" href="..\/..\/style\/add2home.css">');
- document.write('<script type="application\/javascript" src="..\/..\/src\/add2home.js"><\/s' + 'cript>');
- }
+ if ('standalone' in navigator && !navigator.standalone && (/iphone|ipod|ipad/gi).test(navigator.platform) && (/Safari/i).test(navigator.appVersion)) {
+ document.write('<link rel="stylesheet" href="resources\/css\/add2home.css">');
+ document.write('<script type="application\/javascript" src="lib\/add2home.js"><\/s' + 'cript>');
+ }
</script>
</head>
<body>
View
13 index.html
@@ -4,13 +4,16 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>CODEBITS V</title>
+ <meta name="apple-mobile-web-app-capable" content="yes">
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
+
<link rel="stylesheet" href="resources/css/main.css" type="text/css">
- <script type="text/javascript">
- if ('standalone' in navigator && !navigator.standalone && (/iphone|ipod|ipad/gi).test(navigator.platform) && (/Safari/i).test(navigator.appVersion)) {
- document.write('<link rel="stylesheet" href="..\/..\/style\/add2home.css">');
- document.write('<script type="application\/javascript" src="..\/..\/src\/add2home.js"><\/s' + 'cript>');
- }
+ <script type="text/javascript">
+ if ('standalone' in navigator && !navigator.standalone && (/iphone|ipod|ipad/gi).test(navigator.platform) && (/Safari/i).test(navigator.appVersion)) {
+ document.write('<link rel="stylesheet" href="resources\/css\/add2home.css">');
+ document.write('<script type="application\/javascript" src="lib\/add2home.js"><\/s' + 'cript>');
+ }
</script>
</head>
<body>

0 comments on commit 92c4728

Please sign in to comment.