1carma=window.carma||{};carma.roi=carma.roi||(function(){var _serverUrl=null;var _roiImage=null;var _expires=null;var _domain=null;var COOKIE_NAME='c_rid';function _setCookie(name,value){var cookie=name+"="+value;if(_expires){cookie+=_getExpires()} 2cookie+="; path=/";if(_domain){cookie+="; domain="+_domain} 3document.cookie=cookie} 4function _getCookie(name){var nameEQ=name+"=";var cookieSplit=document.cookie.split(';');for(var i=0;i<cookieSplit.length;i++){var cookie=cookieSplit[i];while(cookie.charAt(0)==' '){cookie=cookie.substring(1,cookie.length)} 5if(cookie.indexOf(nameEQ)==0){return cookie.substring(nameEQ.length,cookie.length)}} 6return null} 7function _getRequestParameterValue(name){var nameEQ=name+"=";var queryString=window.location.search;var index=queryString.indexOf(nameEQ,0);if(index>=0){var endIndex=queryString.indexOf("&",index);if(endIndex<0){endIndex=queryString.length} 8return queryString.substring(index+nameEQ.length,endIndex)} 9return null} 10function _logWarning(msg){if(typeof(console)!=='undefined'&&console){console.warn(msg)}} 11function _initCookie(){var paramValue=_getRequestParameterValue("c_rid");if(paramValue){_setCookie(COOKIE_NAME,paramValue)}else{_logWarning("Required parameter c_rid is not present")}} 12function _getExpires(){var sExpires="";if(_expires){switch(typeof _expires){case "number":var d=new Date();d.setTime(d.getTime()+(_expires*60*60*1000));sExpires="; expires="+d.toUTCString();break;case "string":sExpires="; expires="+_expires;break;case "object":if(typeof(_expires.toUTCString)==='function'){sExpires="; expires="+_expires.toUTCString()}break}} 13return sExpires} 14return{init:function(server,isLandingPage,expires,domain){_serverUrl=server+"/roi";_expires=typeof(expires)!=='undefined'?expires:null;_domain=typeof(domain)!=='undefined'?domain:null;if(isLandingPage){_initCookie()} 15_roiImage=document.getElementById('carmaRoi');if(!_roiImage){_roiImage=document.createElement('img');_roiImage.setAttribute('id','carmaRoi');_roiImage.setAttribute('width','0');_roiImage.setAttribute('height','0');document.getElementsByTagName('body')[0].appendChild(_roiImage)}},register:function(amount){if(!amount){amount=0} 16var cookieValue=_getCookie(COOKIE_NAME);if(cookieValue&&cookieValue.indexOf('|')!=-1){cookieValue=encodeURIComponent(cookieValue)} 17if(cookieValue){_roiImage.setAttribute('src',_serverUrl+'?ts='+Math.floor(Math.random()*1000000)+'&rid='+cookieValue+'&amount='+amount)}else{_logWarning("Cookie not set")}}}})()
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.