1var docElem = window.document.documentElement, 2 transEndEventNames = { 3 'WebkitTransition': 'webkitTransitionEnd', 4 'MozTransition': 'transitionend', 5 'OTransition': 'oTransitionEnd', 6 'msTransition': 'MSTransitionEnd', 7 'transition': 'transitionend' 8 }, 9 transEndEventName = transEndEventNames[ Modernizr.prefixed( 'transition' ) ], 10 support = { 11 pointerevents : Modernizr.pointerevents, 12 csstransitions : Modernizr.csstransitions, 13 csstransforms3d : Modernizr.csstransforms3d 14 }; 15 16function scrollX() { 17 return window.pageXOffset || docElem.scrollLeft; 18} 19 20function scrollY() { 21 return window.pageYOffset || docElem.scrollTop; 22} 23 24// from http://responsejs.com/labs/dimensions/ 25function getViewportW() { 26 var client = docElem['clientWidth'], 27 inner = window['innerWidth']; 28 29 if( client < inner ) 30 return inner; 31 else 32 return client; 33} 34 35function getViewportH() { 36 var client = docElem['clientHeight'], 37 inner = window['innerHeight']; 38 39 if( client < inner ) 40 return inner; 41 else 42 return client; 43} 44 45function extend( a, b ) { 46 for( var key in b ) { 47 if( b.hasOwnProperty( key ) ) { 48 a[key] = b[key]; 49 } 50 } 51 return a; 52}
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.