1/* 2 * AIT WordPress Theme 3 * 4 * Copyright (c) 2012-2014, Affinity Information Technology, s.r.o. (http://ait-themes.com) 5 */ 6 7"use strict"; 8 9function isResponsive(width){ 10 var w=window, 11 d=document, 12 e=d.documentElement, 13 g=d.getElementsByTagName('body')[0], 14 x=w.innerWidth||e.clientWidth||g.clientWidth; 15 return x <= parseInt(width); 16} 17 18function isUserAgent(type){ 19 return navigator.userAgent.toLowerCase().indexOf(type.toLowerCase()) > -1; 20} 21 22function isMobile(){ 23 // maybe inherit modernizr.touchevents 24 //return isResponsive(640) && (isUserAgent('android') || isUserAgent('iphone') || isUserAgent('ipad') || isUserAgent('ipod')); 25 return isUserAgent('mobile'); 26} 27 28function isTablet(){ 29 // maybe inherit modernizr.touchevents 30 return isResponsive(1024) && !isMobile(); 31} 32 33function isDesktop(){ 34 return !isMobile() && !isTablet(); 35} 36 37function isAndroid(){ 38 return isUserAgent('android'); 39} 40 41function isIpad(){ 42 return isUserAgent('ipad'); 43} 44 45function isTouch(){ 46 return (('ontouchstart' in window) || (navigator.maxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0)); 47}
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.