1'use strict'; 2;(function(document,navigator,standalone) { 3 // prevents links from apps from oppening in mobile safari 4 // this javascript must be the first script in your <head> 5 if ((standalone in navigator) && navigator[standalone]) { 6 var curnode, location=document.location, stop=/^(a|html)$/i; 7 document.addEventListener('click', function(e) { 8 curnode=e.target; 9 while (!(stop).test(curnode.nodeName)) { 10 curnode=curnode.parentNode; 11 } 12 // Conditions to do this only on links to your own app 13 // if you want all links, use if('href' in curnode) instead. 14 if('href' in curnode && ( curnode.href.indexOf('http') || ~curnode.href.indexOf(location.host) ) ) { 15 e.preventDefault(); 16 location.href = curnode.href; 17 } 18 },false); 19 } 20})(document,window.navigator,'standalone');
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.