Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Fullscreen Webapp #43

Open
intrepidsilence opened this issue May 25, 2014 · 0 comments
Open

iOS Fullscreen Webapp #43

intrepidsilence opened this issue May 25, 2014 · 0 comments

Comments

@intrepidsilence
Copy link

When adding this app to the homescreen of an iOS device it would be nice if it correctly used the fullscreen capabilities of the device and avoided opening any pages in Safari. The code below does this:

sverzabuscnc001:/opt/mozbx/template # diff header.php header.php.orig
9,12d8
<         <meta name="apple-mobile-web-app-capable" content="yes">
<         <meta name="viewport" content="width=device-width">
<         <script>(function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(d.href.indexOf("http")||~d.href.indexOf(e.host))&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone")</script>
<
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant