PageSourceSearch

https://www.csu.edu/cms-p13n.js

js csu.edu collected 2026-09-24 09:00:28 UTC 4,704 bytes, 10 lines download raw bytes

1'use strict';var _p13n=window._p13n=window._p13n||{},p13nConfig={siteDomains:["*.csu.omniweb.cloud","*.www.csu.edu"],matomoBaseUrl:"https://matomo.personalization.moderncampus.net/",matomoSiteId:177,p13nBaseUrl:"https://api.personalization.moderncampus.net/api"};Object.assign(_p13n,p13nConfig);_p13n=window._p13n=window._p13n||{};var _paq=window._paq=window._paq||[];_paq.push(["setDomains",_p13n.siteDomains]);_paq.push(["enableCrossDomainLinking"]);_paq.push(["setDoNotTrack",!0]);_paq.push(["setCustomUrl",getCustomURL()]);setUserId();_paq.push(["trackPageView"]);_paq.push(["enableLinkTracking"]);(function(){_paq.push(["setTrackerUrl",addSlash(_p13n.matomoBaseUrl)+"matomo.php"]);_paq.push(["setSiteId",_p13n.matomoSiteId])})();function addSlash(c){return c.replace(/\/?$/,"/")}
2function getCustomURL(){var c=window.location.href,g=c.search(/\?/);0<=g&&(c=c.substr(0,g));return c}function setUserId(){var c=getUserId();c&&_paq.push(["setUserId",c])}function getUserId(){var c=`; ${document.cookie}`.split("; userId=");return 2===c.length?c[1].split("; ")[0]:!1}var TIMEOUT=!1;
3_paq.push([function(){function c(){n.forEach(({uuid:b,type:a})=>{"PAGE_FORWARD"!==a&&(a=localStorage.getItem(`${b}-cachedVariationId`),(document.querySelector(`[data-id="${a}"]`)||document.querySelector(`[data-id="${b}-default"]`)).removeAttribute("hidden"))})}function g(){const b=f?n.find(h=>"PAGE_FORWARD"===h.type):document.querySelector('[data-modern-campus-p13n-type="Page"]');if(b){var a=window.location.href.split("?");"redirect=1"===a[a.length-1]?p():y(b)}else p()}function y(b){r(f.dataset.modernCampusP13nAccount,
4b.uuid,function(a){window.location.href=a+"?redirect=1"},p)}function t(b,a,h,e,d){b.removeAttribute("hidden");b.setAttribute("data-content-name",a);b.setAttribute("data-content-piece",h);b.setAttribute("data-track-content","");u++;b=h.includes("-default");a={dynamicContentId:a,type:e,isDefault:b,variationId:h};document.dispatchEvent(new CustomEvent("modernCampusCmsPersonalizationVariationComplete",{detail:a}));v.push(a);u>=d&&document.dispatchEvent(new CustomEvent("modernCampusCmsPersonalizationComplete",
5{detail:{dynamicContentLength:d,dynamicContentEventData:v}}))}function p(){const b=f?n:document.querySelectorAll("[data-modern-campus-p13n-type]"),a=b.length;if(0<a){const h=f?f.dataset.modernCampusP13nAccount:b[0].dataset.modernCampusP13nAccount;b.forEach(e=>{const d=f?e.uuid:e.dataset.id;if("PAGE_FORWARD"!==(f?e.type:e.dataset.modernCampusP13nType)){var k=localStorage.getItem(`${d}-cachedVariationId`);r(h,d,function(l){const q=document.querySelector(`[data-id="${l}"]`),m=document.querySelector(`[data-id="${k}"]`);
6k&&l!==k&&m?m.setAttribute("hidden",""):k&&m||document.querySelector(`[data-id="${d}-default"]`).setAttribute("hidden","");localStorage.setItem(`${d}-cachedVariationId`,l);t(q,d,l,"success",a)},function(){const l=`${d}-default`,q=document.querySelector(`[data-id="${l}"]`),m=document.querySelector(`[data-id="${k}"]`);k&&l!==k&&m&&m.setAttribute("hidden","");localStorage.setItem(`${d}-cachedVariationId`,l);t(q,d,l,"success",a)})}})}}function w(){document.querySelectorAll('[data-modern-campus-p13n-based-on="AB"]').forEach(b=>
7{const a=b.dataset,h=[...b.children].map(e=>({name:e.dataset.p13nId,activate:function(d){"original"!==e.dataset.p13nId&&(document.querySelector(`[data-id="${a.id}"] [data-p13n-id="original"]`).hidden=!0,document.querySelector(`[data-id="${a.id}"] [data-p13n-id="${e.dataset.p13nId}"]`).hidden=!1)}}));_paq.push(["AbTesting::create",{name:a.p13nId,percentage:100,includedTargets:[{attribute:"url",inverted:"0",type:"any",value:""}],excludedTargets:[],startDateTime:a.p13nStartDate,endDateTime:a.p13nEndDate,
8variations:h,trigger:function(){return!0}}]);b.addEventListener("click",function(){_paq.push(["trackGoal",a.p13nClickGoalId])},!0)})}async function r(b,a,h,e){try{const d=await fetch(addSlash(_p13n.p13nBaseUrl)+"p13n/calc/"+b+"/"+a+"/"+z+"?referer="+window.location.href);if(200===d.status&&d.ok){const k=await d.text();h(k)}else e()}catch(d){e()}}if(!TIMEOUT){clearTimeout(matomoTimeout);var z=this.getVisitorId(),u=0,v=[],f=document.querySelector('meta[name="dynamicContentTracking"]'),x=f?f.dataset.dynamicContent:
9null,n=x?JSON.parse(x).dynamicContent:[];_paq.push(["trackVisibleContentImpressions",!0,3E3]);f&&g();"interactive"===document.readyState?(f||g(),w()):"loading"===document.readyState&&document.addEventListener("DOMContentLoaded",()=>{f?c():g();w()})}}]);
10var matomoTimeout=setTimeout(function(){TIMEOUT=!0;var c=document.querySelectorAll("[data-modern-campus-p13n-type]");if(0<c.length)for(var g=0;g<c.length;g++)c[g].querySelector("[data-id='"+c[g].dataset.id+"-default']").removeAttribute("hidden","")},1E4);

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.