1jQuery(window).load(function(){ 2 3 if(checkBrowser() == 'Google Chrome' && device.windows()){ 4 if (window.addEventListener) window.addEventListener('DOMMouseScroll', wheel, false); 5 window.onmousewheel = document.onmousewheel = wheel; 6 7 var time = 330; 8 var distance = 100; 9 10 function wheel(event) { 11 if (event.wheelDelta) delta = event.wheelDelta / 90; 12 else if (event.detail) delta = -event.detail / 3; 13 handle(); 14 if (event.preventDefault) event.preventDefault(); 15 event.returnValue = false; 16 } 17 18 function handle() { 19 jQuery('html, body').stop().animate({ 20 scrollTop: jQuery(window).scrollTop() - (distance * delta) 21 }, time); 22 } 23 } 24}); 25function checkBrowser(){ 26 var ua = navigator.userAgent; 27 28 if (ua.search(/MSIE/) > 0) return 'Internet Explorer'; 29 if (ua.search(/Firefox/) > 0) return 'Firefox'; 30 if (ua.search(/Opera/) > 0) return 'Opera'; 31 if (ua.search(/Chrome/) > 0) return 'Google Chrome'; 32 if (ua.search(/Safari/) > 0) return 'Safari'; 33 if (ua.search(/Konqueror/) > 0) return 'Konqueror'; 34 if (ua.search(/Iceweasel/) > 0) return 'Debian Iceweasel'; 35 if (ua.search(/SeaMonkey/) > 0) return 'SeaMonkey'; 36 if (ua.search(/Gecko/) > 0) return 'Gecko'; 37 38 return 'Search Bot'; 39}
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.