1// Clickscript 2// (c) 2008 - 2014 Online Performance 3(function(){"use strict";var ignore_urls="google.com googleadservices.com";function addEvent(element,type,handler) 4{if(element.addEventListener) 5{element.addEventListener(type,handler,false);} 6else 7{if(!handler.$$guid)handler.$$guid=addEvent.guid++;if(!element.events)element.events={};var handlers=element.events[type];if(!handlers) 8{handlers=element.events[type]={};if(element["on"+type]) 9{handlers[0]=element["on"+type];}} 10handlers[handler.$$guid]=handler;element["on"+type]=handleEvent;}} 11addEvent.guid=1;function handleEvent(event) 12{var returnValue=true;event=event||fixEvent(((this.ownerDocument||this.document||this).parentWindow||window).event);var handlers=this.events[event.type];for(var i in handlers) 13{this.$$handleEvent=handlers[i];if(this.$$handleEvent(event)===false) 14{returnValue=false;}} 15return returnValue;} 16function fixEvent(event) 17{event.preventDefault=fixEvent.preventDefault;event.stopPropagation=fixEvent.stopPropagation;return event;} 18fixEvent.preventDefault=function() 19{this.returnValue=false;} 20fixEvent.stopPropagation=function() 21{this.cancelBubble=true;} 22var domain=document.domain+"";ignore_urls=domain+" "+ignore_urls;domain=domain.replace(/.+\.([\w\-]+\.[a-z]+)$/i,"$1");ignore_urls=domain+" "+ignore_urls;ignore_urls=ignore_urls.replace(/^\s+/,'').replace(/\s+$/,'');ignore_urls=ignore_urls.split(" ");function notLinkToOwnDomain(txt) 23{for(var i=0;i<ignore_urls.length;i++) 24{if(txt.indexOf(ignore_urls[i])>-1){return false;}} 25return true;} 26var elm=document.getElementsByTagName("a");for(var i=0;i<elm.length;i++) 27{var path=elm[i].href+"";if((notLinkToOwnDomain(path)&&path.indexOf("javascript:")==-1)||elm[i].rel.indexOf("clickout")>-1||path.indexOf("#clickout")>-1) 28{addEvent(elm[i],'click',function(){var h=(this.href).replace(/^https?:\/\//,'');if(typeof ga=='function'&&typeof _gaq=='undefined') 29{ga('send','event','default','clickout',h,0);} 30else if(typeof _gaq=='object') 31{_gaq.push(['_trackEvent','default','clickout',h,0]);}});}}}());
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.