PageSourceSearch

https://sjlibrary.org/web/js/sa.min.js?3116

js sjlibrary.org collected 2026-10-02 04:26:23 UTC 7,767 bytes, 3 lines download raw bytes

1/*! springshare 1.11.0 */
2
3var springSpace=springSpace||{},springStats=springStats||{};springStats.saConfig=springStats.saConfig||{},springSpace.stats={},springSpace.stats._construct=function(){var t=function(t){this.STATS_UUID_LENGTH=20,this.TRACKING_MODE_ONCLICK=1,this.TRACKING_TYPE_PAGE=1,this.TRACKING_TYPE_WIDGET=9,this.TRACKING_TYPE_API=10,this.TRACKING_TYPE_LINK=2,this.TRACKING_TYPE_BOOK=3,this.TRACKING_TYPE_EVENT=4,this.TRACKING_TYPE_FILE=5,this.TRACKING_TYPE_FORM_INPUT=6,this.TRACKING_TYPE_FORM_BUTTON=7,this.TRACKING_TYPE_FORM=8,this.TRACKING_TYPE_HOME_PAGE=11,this.TRACKING_TYPE_CUSTOM_LINK=12,this.TRACKING_TYPE_SEARCH=13,this.TRACKING_TYPE_HOME_PAGE_MOBILE=14,this.TRACKING_TYPE_PAGE_MOBILE=15,this.TRACKING_TYPE_SEARCH_AZ=27,this.TRACKING_ACTION_TRACK="track",this.COOKIE_SESSION_NAME="sts",this.COOKIE_REFERRER_NAME="str",this.site_id=t.site_id,this.is_cg=!0,this.st_prefix="_st_",this.tracking_parameters=t.tracking_parameters,this.tracking_server_host=t.tracking_server_host,this.tracking_script="log.php",this.st_tracking_parameters={},this.is_logout=document.location.search.indexOf("msg=logout")>-1,this.do_not_track=document.location.search.indexOf("tracking=off")>-1,this.is_password_prompt="1"===jQuery("#is_password_prompt").val(),this.is_preview=document.location.search.indexOf("preview=")>-1,this.page_params=document.location.search,this.opt_use_page_params=!0,this.imgs=[],this.img_idx=0,this.track_delay=600,this.sessionCookieTimeout=30,this.referrerCookieTimeout=259200,this.cookie_session={},this.new_session=!1,this.sessionCookieTimeout=30,this.referrerCookieTimeout=259200,this.unique_id=this.uuidv4(),this.tracking_fields={site_path:{key:"sp",val:document.location.pathname+(document.location.search.length>0?document.location.search:"")},resource_type:{key:"rt",val:""},resource_id:{key:"rid",val:""},search_terms:{key:"st",val:""},search_subjects:{key:"st",val:""},search_az_types:{key:"st",val:""},search_az_vendors:{key:"st",val:""},search_az_access_modes:{key:"st",val:""},custom_data:{key:"cd",val:""},monitor_resolution:{key:"mr",val:screen.width+"x"+screen.height},cookie_session_start:{key:"sst",val:""},cookie_session_id:{key:"sid",val:""},cookie_referrer:{key:"rr",val:""},visitor_id:{key:"vid",val:""}},this.processCookies()};t.prototype.uuidv4=function(){var t=window.crypto||window.msCrypto,e=([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(function(e){return(e^t.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)})),s=Math.floor(Math.random()*(e.length-this.STATS_UUID_LENGTH));return e.substring(s,s+this.STATS_UUID_LENGTH)},t.prototype.processCookies=function(){var t=this.readCookie(this.COOKIE_SESSION_NAME);try{this.cookie_session=JSON.parse(t)}catch(t){this.cookie_session={}}var e=new Date;if(!this.cookie_session){var s={id:this.unique_id,start:e.getTime()};t=JSON.stringify(s),this.cookie_session=s,this.new_session=!0}this.createCookie(this.COOKIE_SESSION_NAME,t,this.sessionCookieTimeout)},t.prototype.createCookie=function(t,e,s){let i="";if(s){let t=new Date;t.setTime(t.getTime()+60*s*1e3),i=" expires="+t.toGMTString()}document.cookie=t+"="+(e||"")+"; path=/; secure=true; samesite=none;"+i},t.prototype.readCookie=function(t){for(var e=t+"=",s=document.cookie.split(";"),i=0;i<s.length;i++){for(var r=s[i];" "==r.charAt(0);)r=r.substring(1,r.length);if(0==r.indexOf(e))return r.substring(e.length,r.length)}return null},t.prototype.eraseCookie=function(t){this.createCookie(t,"",-1)},t.prototype.setSpringTrackData=function(t){for(elt in t)0==elt.indexOf(this.st_prefix)&&(this.st_tracking_parameters[elt]=t[elt])},t.prototype.trackIt=function(t){if(!(this.is_preview||this.is_logout||this.do_not_track||this.is_password_prompt)){var e="https://"+this.tracking_server_host+"/"+this.tracking_script+this.generateQSData(t);document.images?(this.imgs[this.img_idx]=new Image,this.imgs[this.img_idx].src=e,this.img_idx++):document.write('
3<img alt="Tracking" src="'+e+'" style="height: 0px; width: 0px; display: none;" />')}return!0},t.prototype.generateQSData=function(t){var e=[];if(this.generateCookieQSData(),null!=this.tracking_fields)for(field in this.tracking_fields){var s=this.tracking_fields[field];void 0!==s.val&&""!==s.val&&e.push(s.key+"="+encodeURIComponent(s.val))}var i=this.st_prefix+"site_id";if(null!=this.tracking_parameters){var r=!1;for(param in this.tracking_parameters)param==i&&(r=!0),e.push(param+"="+encodeURIComponent(this.tracking_parameters[param]));r||e.push(i+"="+this.site_id)}else e.push(i+"="+this.site_id);if(null!=t)if(void 0!==t._full_qs&&t._full_qs)e.push("_full_qs="+encodeURIComponent(document.location.search));else for(param in t)"link"!==param&&void 0===this.tracking_parameters[param]&&e.push(param+"="+encodeURIComponent(t[param]));var a=new Date;return e.length>0?"?action="+this.TRACKING_ACTION_TRACK+"&"+e.join("&")+"&_nocache="+a.getTime():"?action="+this.TRACKING_ACTION_TRACK+"&nocache="+a.getTime()},t.prototype.generateCookieQSData=function(){null!=this.cookie_session&&(this.new_session&&(this.tracking_fields.cookie_session_start.val=this.cookie_session.start),this.tracking_fields.cookie_session_id.val=this.cookie_session.id),this.is_cg&&(this.tracking_fields.cookie_referrer.val=document.referrer)},t.prototype.propExists=function(t,e){return void 0!==t[e]},t.prototype.getResourceType=function(t,e){var s=this.st_prefix+"type_id";if(null!=e){if(this.propExists(e,s))switch(e[s]){case"r":return this.TRACKING_TYPE_PAGE;case"w":return this.Widget();case"a":return this.TRACKING_TYPE_API;default:return e[s]}return this.propExists(e,"custom_type")?e.custom_type:this.TRACKING_TYPE_LINK}if(null!=t&&this.propExists(t,"tagName"))switch(t.tagName.toUpperCase()){case"A":return this.TRACKING_TYPE_LINK;case"INPUT":return this.TRACKING_TYPE_FORM_INPUT;case"BUTTON":return this.TRACKING_TYPE_FORM_BUTTON;case"FORM":return this.TRACKING_TYPE_FORM}return this.TRACKING_TYPE_PAGE},t.prototype.track=function(t,e){var s=void 0!==t?t:document;switch(this.propExists(s,"tagName")?s.tagName:""){case"A":this.trackLink(s,e);break;case"FORM":this.trackForm(s,e);break;default:this.trackPage(s,e)}},t.prototype.gaLinkTracking=function(t){try{if("undefined"!=typeof pageTracker&&void 0!==t){var e=t.link_obj.innerHTML.replace("&amp;","&"),s="/"+t.guide_name+"/"+t.page_name+"/"+e+"/"+escape(t.link_obj.href);pageTracker._trackPageview(s)}}catch(t){}},t.prototype.trackLink=function(t){return this.tracking_fields.custom_data.val=void 0!==t.custom_data?t.custom_data:"",this.trackIt(t),!!t.link.target||(setTimeout("document.location.href = '"+t.link.href+"';",this.track_delay),!1)},t.prototype.trackPage=function(t){this.trackIt(t)},t.prototype.trackEr=function(t){this.trackIt(t)},t.prototype.trackDiscussion=function(t){this.trackIt(t)},t.prototype.trackBlog=function(t){this.trackIt(t)},t.prototype.trackPageRedirect=function(t){if(this.trackIt(t),this.propExists(t,"mode")&&t.mode==this.TRACKING_MODE_ONCLICK)return!!t.target||(setTimeout("document.location.href = '"+t.href+"';",this.track_delay),!1)},t.prototype.trackForm=function(t,e){return this.trackIt(e),setTimeout("form_obj.submit();",this.track_delay),!1},t.prototype.trackSearch=function(t){this.tracking_fields.search_terms.val=void 0!==t.search_terms?t.search_terms:"",this.tracking_fields.search_subjects.val=void 0!==t.search_subjects?t.search_subjects:"",this.tracking_fields.search_az_types.val=void 0!==t.search_az_types?t.search_az_types:"",this.tracking_fields.search_az_vendors.val=void 0!==t.search_az_vendors?t.search_az_vendors:"",this.tracking_fields.search_az_access_modes.val=void 0!==t.search_az_access_modes?t.search_az_access_modes:"",this.trackIt(t)},this.Stats=t},springSpace.stats._construct(),springSpace.springTrack=new springSpace.stats.Stats(springStats.saConfig);

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.