PageSourceSearch

https://www.indianastate.edu/sites/default/files/js/js_oa_7Bbf6yaf…hOURKFBFv_Io1Ez1wgqzgEKyGmMzd_CKuDa699q_Gzs

js indianastate.edu collected 2026-10-02 10:31:52 UTC 7,614 bytes, 3 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2(function(Drupal,$,once){"use strict";Drupal.behaviors.acalog={attach:function(context,settings){$(".acalog").acalogWidgetize({gateway:"https://catalog.indstate.edu"});}};Drupal.behaviors.acalogApplyLinkA11yFix={attach:function(context){once("acalog-apply-link-a11y-fix",".acalog",context).forEach(function(wrap){const labelMap=[{match:"apply.indstate.edu/apply",label:"Apply to Indiana State University"},{match:"indianastate.edu/admissions",label:"Admissions at Indiana State University"}];const fix=()=>{wrap.querySelectorAll("a").forEach((a)=>{const href=(a.getAttribute("href")||"").trim();if(!href)return;const hit=labelMap.find((x)=>href.includes(x.match));if(!hit)return;if(a.textContent.trim())return;const existingLabel=a.getAttribute("aria-label");if(!existingLabel||existingLabel.trim()==="")a.setAttribute("aria-label",hit.label);const img=a.querySelector("img");if(img){img.setAttribute("alt","");img.setAttribute("aria-hidden","true");img.setAttribute("role","presentation");}});};fix();const obs=new MutationObserver(fix);obs.observe(wrap,{childList:true,subtree:true});});}};Drupal.behaviors.acalogStripInjectedImages={attach:function(context){once("acalog-strip-injected-images",".acalog",context).forEach(function(wrap){const remnant=/^\s*\/[^<>]*"\s*\/>\s*$/;const strip=()=>{wrap.querySelectorAll("img").forEach((img)=>{const link=img.closest("a");img.remove();if(link&&!link.textContent.trim()&&link.children.length===0){const p=link.closest("p");link.remove();if(p&&!p.textContent.trim()&&p.children.length===0)p.remove();}});const walker=document.createTreeWalker(wrap,NodeFilter.SHOW_TEXT);const junk=[];while(walker.nextNode())if(remnant.test(walker.currentNode.nodeValue))junk.push(walker.currentNode);junk.forEach((node)=>node.remove());};strip();const obs=new MutationObserver(strip);obs.observe(wrap,{childList:true,subtree:true});});}};Drupal.behaviors.setBackgroundImage={attach:function(context,settings){if($("body.department .has-hero-bg, body.venue .has-hero-bg, body.article .has-hero-bg").length>0)$(".department-featured-image",context).each(function(){if(!$(this).hasClass("background-image-processed")){var imageUrl=$(this).data("bg-source");var positionY=$(this).data("hero-position-y");if(positionY!==undefined&&positionY!=="")this.style.setProperty("--hero-position-y",positionY+"%");$(this).css("background-image","url("+imageUrl+")").addClass("background-image-processed");}});}};Drupal.behaviors.appendHrefToCurrentUrl={attach:function(context,settings){$("a.dept-append",context).each(function(){var currentPagePath=window.location.pathname;var currentHref=$(this).attr("href");if(!currentHref.startsWith("/"))currentHref="/"+currentHref;if(currentPagePath.endsWith("/"))currentPagePath=currentPagePath.slice(0,-1);var newHref=window.location.origin+currentPagePath+currentHref;$(this).attr("href",newHref);});}};Drupal.behaviors.wrapTables={attach:function(context,settings){$("body.page-node #main-content table, body.page-node #context-after-main table",context).each(function(){if(!$(this).parent().hasClass("c-table"))$(this).wrap('<div class="c-table hscroll"></div>');});}};Drupal.behaviors.solrToggle={attach:function(context,settings){const elements=once("solr-toggle","[data-solr-toggle]",context);elements.forEach(function(toggleElement){toggleElement.addEventListener("click",function(event){event.stopPropagation();const isExpanded=this.getAttribute("aria-expanded")==="true";this.setAttribute("aria-expanded",String(!isExpanded));});});document.addEventListener("click",function(event){elements.forEach(function(toggleElement){let parentFieldset=toggleElement.closest("fieldset");if(parentFieldset&&!parentFieldset.contains(event.target))toggleElement.setAttribute("aria-expanded","false");});},true);}};Drupal.behaviors.appendSpanToCheckedCheckbox={attach:function(context,settings){once("append-span",'.bef-checkboxes input[type="checkbox"]',context).forEach((element)=>{if(!element.closest(".static-checks")&&element.checked&&!element.nextElementSibling.matches("span"))element.insertAdjacentHTML("afterend",'<span class="filter__checkbox-alt"></span>');});document.querySelectorAll('.bef-checkboxes input[type="checkbox"]').forEach((element)=>{element.addEventListener("change",function(){if(!this.closest(".static-checks"))if(this.checked&&!this.nextElementSibling.matches("span"))this.insertAdjacentHTML("afterend",'<span class="filter__checkbox-alt"></span>');else{if(!this.checked&&this.nextElementSibling.matches("span"))this.nextElementSibling.remove();}});});}};Drupal.behaviors.customAjaxPagerScroll={attach:function(context,settings){$(context).aja
2xComplete(function(event,xhr,settings){if($(context).find(".ajax-scroll").length){var mainContentTop=$("#main-content",context).offset().top;var targetScrollPosition=mainContentTop-200;$("html, body").animate({scrollTop:targetScrollPosition},0);}});}};Drupal.behaviors.toggleContent={attach:function(context){const buttons=once("toggleContentButtons",".button-group button",context);buttons.forEach((button)=>{button.addEventListener("click",function(){const divs=document.querySelectorAll("#main-content .finder-panel");buttons.forEach((btn)=>{btn.classList.remove("active");});this.classList.add("active");const targetClass=this.getAttribute("data-target");divs.forEach((div)=>{div.classList.add("hidden");});const targetDiv=document.querySelector(`.${targetClass}`);if(targetDiv)targetDiv.classList.remove("hidden");});});}};Drupal.behaviors.trackStickyState={attach:function(context,settings){once("trackStickyState",".sticky-helper",context).forEach(function(helperElement){const stickyElement=helperElement.nextElementSibling;let observer=new IntersectionObserver(([entry])=>{if(!entry.isIntersecting)stickyElement.classList.add("is-sticky");else stickyElement.classList.remove("is-sticky");},{threshold:[0]});observer.observe(helperElement);});}};Drupal.behaviors.insertSpanIntoTextButtonArrow={attach:function(context,settings){once("insertSpanIntoTextButtonArrow","a.text-button-arrow",context).forEach(function(element){element.classList.add("button-arrow");var iconPosition="before";if(element.classList.contains("text-button-icon-after"))iconPosition="after";else{if(element.classList.contains("text-button-icon-before"))iconPosition="before";}var span=document.createElement("span");span.classList.add("material-symbols-outlined","span-headline");span.setAttribute("aria-hidden","true");span.textContent="arrow_forward";if(iconPosition==="before")element.prepend(span);else element.append(span);});}};})(Drupal,jQuery,once);;
3(function($,Drupal){Drupal.behaviors.cookieConsentGTM={attach:function(context,settings){function pushConsentStatus(status){window.dataLayer=window.dataLayer||[];dataLayer.push({event:'userConsentChanged',cookieConsentStatus:status});}function attachConsentListeners(){const acceptButton=document.querySelector('.agree-button');const declineButton=document.querySelector('.decline-button');if(acceptButton&&!acceptButton.dataset.tracked){acceptButton.addEventListener('click',function(){pushConsentStatus('granted');});acceptButton.dataset.tracked=true;}if(declineButton&&!declineButton.dataset.tracked){declineButton.addEventListener('click',function(){pushConsentStatus('0');});declineButton.dataset.tracked=true;}}const observer=new MutationObserver(function(mutations){mutations.forEach(function(mutation){if(mutation.addedNodes.length>0)attachConsentListeners();});});observer.observe(document.body,{childList:true,subtree:true});attachConsentListeners();}};})(jQuery,Drupal);;

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.