1// UAå¤å® 2var _ua = (function(u){ 3 return { 4 Tablet:(u.indexOf("windows") != -1 && u.indexOf("touch") != -1 && u.indexOf("tablet pc") == -1) 5 || u.indexOf("ipad") != -1 6 || (u.indexOf("android") != -1 && u.indexOf("mobile") == -1) 7 || (u.indexOf("firefox") != -1 && u.indexOf("tablet") != -1) 8 || u.indexOf("kindle") != -1 9 || u.indexOf("silk") != -1 10 || u.indexOf("playbook") != -1, 11 Mobile:(u.indexOf("windows") != -1 && u.indexOf("phone") != -1) 12 || u.indexOf("iphone") != -1 13 || u.indexOf("ipod") != -1 14 || (u.indexOf("android") != -1 && u.indexOf("mobile") != -1) 15 || (u.indexOf("firefox") != -1 && u.indexOf("mobile") != -1) 16 || u.indexOf("blackberry") != -1 17 } 18})(window.navigator.userAgent.toLowerCase()); 19 20 21// 375pxæªæºã®æã¯ã375åºæºã§ç¸®å°ããã 22!function() { 23 var viewport = document.querySelector('meta[name="viewport"]'); 24 function adjustViewport () { 25 var value = window.outerWidth >= 375 ? 'width=device-width,initial-scale=1' : 'width=375'; 26 if (viewport.getAttribute('content') !== value) { 27 viewport.setAttribute('content', value); 28 } 29 } 30 addEventListener('resize', adjustViewport, false); 31 adjustViewport(); 32}(); 33 34// SPãµã¤ãºãã©ãã 35function is_sp_width() { 36 return window.innerWidth < 768; 37}
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.