Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <script type="text/javascript">
- if(("standalone" in window.navigator) && window.navigator.standalone){
- var noddy, remotes = false;
- document.addEventListener('click', function(event) {
- noddy = event.target;
- while(noddy.nodeName !== "A" && noddy.nodeName !== "HTML") {
- noddy = noddy.parentNode;
- }
- if('href' in noddy && noddy.href.indexOf('http') !== -1 && (noddy.href.indexOf(document.location.host) !== -1 || remotes))
- {
- event.preventDefault();
- document.location.href = noddy.href;
- }
- },false);
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement