1function addEvent(obj,evtType,func,cap){ 2 cap=cap||false; 3 if(obj.addEventListener){ 4 obj.addEventListener(evtType,func,cap); 5 return true; 6 }else if(obj.attachEvent){ 7 if(cap){ 8 obj.setCapture(); 9 return true; 10 }else{ 11 return obj.attachEvent("on" + evtType,func); 12 } 13 }else{ 14 return false; 15 } 16} 17function getPageScroll(){ 18 var xScroll,yScroll; 19 if (self.pageXOffset) { 20 xScroll = self.pageXOffset; 21 } else if (document.documentElement && document.documentElement.scrollLeft){ 22 xScroll = document.documentElement.scrollLeft; 23 } else if (document.body) { 24 xScroll = document.body.scrollLeft; 25 } 26 if (self.pageYOffset) { 27 yScroll = self.pageYOffset; 28 } else if (document.documentElement && document.documentElement.scrollTop){ 29 yScroll = document.documentElement.scrollTop; 30 } else if (document.body) { 31 yScroll = document.body.scrollTop; 32 } 33 arrayPageScroll = new Array(xScroll,yScroll); 34 return arrayPageScroll; 35} 36function GetPageSize(){ 37 var xScroll, yScroll; 38 if (window.innerHeight && window.scrollMaxY) { 39 xScroll = document.body.scrollWidth; 40 yScroll = window.innerHeight + window.scrollMaxY; 41 } else if (document.body.scrollHeight > document.body.offsetHeight){ 42 xScroll = document.body.scrollWidth; 43 yScroll = document.body.scrollHeight; 44 } else { 45 xScroll = document.body.offsetWidth; 46 yScroll = document.body.offsetHeight; 47 } 48 var windowWidth, windowHeight; 49 if (self.innerHeight) { 50 windowWidth = self.innerWidth; 51 windowHeight = self.innerHeight; 52 } else if (document.documentElement && document.documentElement.clientHeight) { 53 windowWidth = document.documentElement.clientWidth; 54 windowHeight = document.documentElement.clientHeight; 55 } else if (document.body) { 56 windowWidth = document.body.clientWidth; 57 windowHeight = document.body.clientHeight; 58 } 59 if(yScroll < windowHeight){ 60 pageHeight = windowHeight; 61 } else { 62 pageHeight = yScroll; 63 } 64 if(xScroll < windowWidth){ 65 pageWidth = windowWidth; 66 } else { 67 pageWidth = xScroll; 68 } 69 arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 70 return arrayPageSize; 71}
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.