PageSourceSearch

https://www.ohio.edu/sites/default/files/js/js_126C-NtpjRVPVWHNahO…kkYLE9FTdtAqIUHlqUnxiTmpRSbE-Gl8PTAEAmmIkLg

js ohio.edu collected 2026-10-01 06:33:07 UTC 19,183 bytes, 17 lines download raw bytes

1/* @license GPL-2.0-or-later https://git.drupalcode.org/project/once/-/raw/v1.0.1/LICENSE.md */
2/*! @drupal/once - v1.0.1 - 2021-06-12 */
3var once=function(){"use strict";var n=/[\11\12\14\15\40]+/,e="data-once",t=document;function r(n,t,r){return n[t+"Attribute"](e,r)}function o(e){if("string"!=typeof e)throw new TypeError("once ID must be a string");if(""===e||n.test(e))throw new RangeError("once ID must not be empty or contain spaces");return'[data-once~="'+e+'"]'}function u(n){if(!(n instanceof Element))throw new TypeError("The element must be an instance of Element");return!0}function i(n,e){void 0===e&&(e=t);var r=n;if(null===n)r=[];else{if(!n)throw new TypeError("Selector must not be empty");"string"!=typeof n||e!==t&&!u(e)?n instanceof Element&&(r=[n]):r=e.querySelectorAll(n)}return Array.prototype.slice.call(r)}function c(n,e,t){return e.filter((function(e){var r=u(e)&&e.matches(n);return r&&t&&t(e),r}))}function f(e,t){var o=t.add,u=t.remove,i=[];r(e,"has")&&r(e,"get").trim().split(n).forEach((function(n){i.indexOf(n)<0&&n!==u&&i.push(n)})),o&&i.push(o);var c=i.join(" ");r(e,""===c?"remove":"set",c)}function a(n,e,t){return c(":not("+o(n)+")",i(e,t),(function(e){return f(e,{add:n})}))}return a.remove=function(n,e,t){return c(o(n),i(e,t),(function(e){return f(e,{remove:n})}))},a.filter=function(n,e,t){return c(o(n),i(e,t))},a.find=function(n,e){return i(n?o(n):"[data-once]",e)},a}();
4
5;
6/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
7(function(){const settingsElement=document.querySelector('head > script[type="application/json"][data-drupal-selector="drupal-settings-json"], body > script[type="application/json"][data-drupal-selector="drupal-settings-json"]');window.drupalSettings={};if(settingsElement!==null)window.drupalSettings=JSON.parse(settingsElement.textContent);})();;
8window.Drupal={behaviors:{},locale:{}};(function(Drupal,drupalSettings,drupalTranslations,console,Proxy,Reflect){Drupal.throwError=function(error){setTimeout(()=>{throw error;},0);};Drupal.attachBehaviors=function(context,settings){context=context||document;settings=settings||drupalSettings;const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].attach==='function')try{behaviors[i].attach(context,settings);}catch(e){Drupal.throwError(e);}});};Drupal.detachBehaviors=function(context,settings,trigger){context=context||document;settings=settings||drupalSettings;trigger=trigger||'unload';const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].detach==='function')try{behaviors[i].detach(context,settings,trigger);}catch(e){Drupal.throwError(e);}});};Drupal.checkPlain=function(str){str=str.toString().replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#39;');return str;};Drupal.formatString=function(str,args){const processedArgs={};Object.keys(args||{}).forEach((key)=>{switch(key.charAt(0)){case '@':processedArgs[key]=Drupal.checkPlain(args[key]);break;case '!':processedArgs[key]=args[key];break;default:processedArgs[key]=Drupal.theme('placeholder',args[key]);break;}});return Drupal.stringReplace(str,processedArgs,null);};Drupal.stringReplace=function(str,args,keys){if(str.length===0)return str;if(!Array.isArray(keys)){keys=Object.keys(args||{});keys.sort((a,b)=>a.length-b.length);}if(keys.length===0)return str;const key=keys.pop();const fragments=str.split(key);if(keys.length){for(let i=0;i<fragments.length;i++)fragments[i]=Drupal.stringReplace(fragments[i],args,keys.slice(0));}return fragments.join(args[key]);};Drupal.t=function(str,args,options){options=options||{};options.context=options.context||'';if(drupalTranslations?.strings?.[options.context]?.[str])str=drupalTranslations.strings[options.context][str];if(args)str=Drupal.formatString(str,args);return str;};Drupal.url=function(path){return drupalSettings.path.baseUrl+drupalSettings.path.pathPrefix+path;};Drupal.url.toAbsolute=function(url){const urlParsingNode=document.createElement('a');urlParsingNode.setAttribute('href',url);return urlParsingNode.href;};Drupal.url.isLocal=function(url){let absoluteUrl=Drupal.url.toAbsolute(url);let {protocol}=window.location;if(protocol==='http:'&&absoluteUrl.startsWith('https:'))protocol='https:';let baseUrl=`${protocol}//${window.location.host}${drupalSettings.path.baseUrl.slice(0,-1)}`;try{absoluteUrl=decodeURIComponent(absoluteUrl);}catch(e){}try{baseUrl=decodeURIComponent(baseUrl);}catch(e){}return absoluteUrl===baseUrl||absoluteUrl.startsWith(`${baseUrl}/`);};Drupal.formatPlural=function(count,singular,plural,args,options){args=args||{};args['@count']=count;const pluralDelimiter=drupalSettings.pluralDelimiter;const translations=Drupal.t(singular+pluralDelimiter+plural,args,options).split(pluralDelimiter);let index=0;
8if(drupalTranslations?.pluralFormula)index=count in drupalTranslations.pluralFormula?drupalTranslations.pluralFormula[count]:drupalTranslations.pluralFormula.default;else{if(args['@count']!==1)index=1;}return translations[index];};Drupal.encodePath=function(item){return window.encodeURIComponent(item).replace(/%2F/g,'/');};Drupal.deprecationError=({message})=>{if(drupalSettings.suppressDeprecationErrors===false&&console?.warn)console.warn(`[Deprecation] ${message}`);};Drupal.deprecatedProperty=({target,deprecatedProperty,message})=>{if(!Proxy||!Reflect)return target;return new Proxy(target,{get:(target,key,...rest)=>{if(key===deprecatedProperty)Drupal.deprecationError({message});return Reflect.get(target,key,...rest);}});};Drupal.theme=function(func,...args){if(typeof Drupal.theme?.[func]==='function')return Drupal.theme[func](...args);Drupal.throwError(new TypeError(`Drupal.theme.${func} must be function type.`));};Drupal.theme.placeholder=function(str){return `<em class="placeholder">${Drupal.checkPlain(str)}</em>`;};Drupal.elementIsVisible=function(elem){return !!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length);};Drupal.elementIsHidden=function(elem){return !Drupal.elementIsVisible(elem);};})(Drupal,window.drupalSettings,window.drupalTranslations,window.console,window.Proxy,window.Reflect);;
9if(window.jQuery)jQuery.noConflict();document.documentElement.className+=' js';(function(Drupal,drupalSettings){const domReady=(callback)=>{const listener=()=>{callback();document.removeEventListener('DOMContentLoaded',listener);};if(document.readyState!=='loading')setTimeout(callback,0);else document.addEventListener('DOMContentLoaded',listener);};domReady(()=>{Drupal.attachBehaviors(document,drupalSettings);});})(Drupal,window.drupalSettings);;
10//Detect IE Versions (returns integer of version)
11/*! IE Detect sourced from (https://codepen.io/gapcode/pen/vEJNZN)*/
12if (typeof window.detectIE === 'undefined') window.detectIE = function(){var n=window.navigator.userAgent,e=n.indexOf("MSIE ");if(e>0)return parseInt(n.substring(e+5,n.indexOf(".",e)),10);if(n.indexOf("Trident/")>0){var r=n.indexOf("rv:");return parseInt(n.substring(r+3,n.indexOf(".",r)),10)}var i=n.indexOf("Edge/");return i>0&&parseInt(n.substring(i+5,n.indexOf(".",i)),10)};;
13/**
14 * Detects @-ms-viewport css style and if you are on an IEMobile device. Fixes current bug where these devices ignore viewport meta tag.
15 */
16(function(){if("-ms-user-select" in document.documentElement.style&&navigator.userAgent.match(/IEMobile/)){var msViewportStyle=document.createElement("style");msViewportStyle.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}"));document.getElementsByTagName("head")[0].appendChild(msViewportStyle);}})();;
17(function(Drupal,once){let isMobile=window.innerWidth<992;let mouseEventsEnabled=true;Drupal.behaviors.ohioHeaderMenuBehavior={attach:(context)=>{once('ohioHeaderMainMenuBehavior','#header-top',context).forEach((element)=>{Drupal.behaviors.ohioHeaderMenuBehavior.setMenuClasses(element,isMobile);Drupal.behaviors.ohioHeaderMenuBehavior.setMenuAttributes(element,isMobile);Drupal.behaviors.ohioHeaderMenuBehavior.setAuxMenuAttributes(element,isMobile);window.addEventListener("resize",()=>{const isMobileNow=window.innerWidth<992;if(isMobile!==isMobileNow){isMobile=isMobileNow;if(!isMobileNow)element.querySelectorAll('#main-menu .menu-level-1').forEach((item)=>{if(item.classList.contains('menu-item--expanded'))Drupal.behaviors.ohioHeaderMenuBehavior.toggleMainMenuClasses(item);});Drupal.behaviors.ohioHeaderMenuBehavior.setMenuClasses(element,isMobile);Drupal.behaviors.ohioHeaderMenuBehavior.setMenuAttributes(element,isMobile);Drupal.behaviors.ohioHeaderMenuBehavior.setAuxMenuAttributes(element,isMobile);}});element.onmousemove=()=>{if(!mouseEventsEnabled){mouseEventsEnabled=true;element.querySelectorAll('#main-menu .menu-level-1.menu-item--expanded').forEach((item)=>{Drupal.behaviors.ohioHeaderMenuBehavior.toggleMainMenuClasses(item);});element.querySelectorAll('.aux-menu-links li.hasMenu').forEach((item)=>{const section=item.querySelector('section');if(!section.classList.contains('closed'))Drupal.behaviors.ohioHeaderMenuBehavior.toggleAuxMenuClasses(item);});document.activeElement.blur();}};});},setMenuClasses:(element,isMobile)=>{const mainMenuContainer=element.querySelector('.top-links > .menu');const mainMenu=element.querySelector('#main-menu');const mobileNavIcon=element.querySelector('#mobile-nav > span.fa');if(isMobile){mainMenu.classList.add('mobile-menu');mainMenuContainer.classList.add('closed');}else{mainMenu.classList.remove('mobile-menu');mainMenuContainer.classList.remove('closed');document.querySelector('html').classList.remove('overflow-hidden');const headerRegion=document.querySelector('.region-header');if(headerRegion)headerRegion.classList.remove('menu-container');if(mobileNavIcon.classList.contains('fa-close')){mobileNavIcon.classList.toggle('fa-close');mobileNavIcon.classList.toggle('fa-bars');}}},toggleMainMenuClasses:(item)=>{const nestedMenus=item.querySelectorAll('#main-menu .nested-menu');nestedMenus.forEach((menu)=>{if(!menu.parentElement.classList.contains('menu-level-2'))menu.classList.toggle('closed');if(menu.getAttribute('aria-hidden')==='false')menu.setAttribute('aria-hidden','true');else menu.setAttribute('aria-hidden','false');});item.classList.toggle('menu-item--collapsed');item.classList.toggle('menu-item--expanded');const button=item.querySelector('.link-wrapper button');button.classList.toggle('hover');if(button.getAttribute('aria-expanded')=='false')button.setAttribute('aria-expanded','true');else button.setAttribute('aria-expanded','false');if(button.ariaLabel.includes('Expand'))button.ariaLabel=button.ariaLabel.replace('Expand','Collapse');else button.ariaLabel=button.ariaLabel.replace('Collapse','Expand');},setMenuAttributes:(element,isMobile)=>{element.querySelectorAll('#main-menu .menu-level-1').forEach((item)=>{if(!isMobile){const anyMegaMenus=item.querySelectorAll('.menu-level-3');const nestedMenu=item.querySelector('.nested-menu');if(!anyMegaMenus.length){item.classList.add('single-menu');if(nestedMenu!==null){const lastLevelTwoMenu=nestedMenu.querySelector('.menu-level-2:last-of-type');if(lastLevelTwoMenu)lastLevelTwoMenu.onkeydown=(e)=>{if(e.keyCode==9){Drupal.behaviors.ohioHeaderMenuBehavior.toggleMainMenuClasses(item);mouseEventsEnabled=false;}};const levelTwoFirstChild=nestedMenu.querySelector('.menu-level-2:first-child');levelTwoFirstChild.onkeydown=(e)=>{if(e.shiftKey&&e.keyCode==9&&document.activeElement==levelTwoFirstChild.querySelector('a')){Drupal.behaviors.ohioHeaderMenuBehavior.toggleMainMenuClasses(item);mouseEventsEnabled=false;}};}}else{const lastLevelThreeMenu=nestedMenu.querySelector('.menu-level-2:last-of-type .nested-menu .menu-level-3:last-of-type');if(lastLevelThreeMenu)lastLevelThreeMenu.onkeydown=(e)=>{if(e.keyCode==9){Drupal.behaviors.ohioHeaderMenuBehavior.toggleMainMenuClasses(item);mouseEventsEnabled=false;}};const levelThreeFirstChild=nestedMenu.querySelector('.menu-level-2:first-child .nested-menu .menu-level-3:first-child');if(levelThreeFirstChild)levelThreeFirstChild.onkeydown=(e)=>{if(e.shiftKey&&e.keyCode==9&&document.activeElement==levelThreeFirstChild.querySelector('a')){Drupal.behaviors.ohioHeaderMenuBehavior.toggleMainMenuClasses(item);mouseEventsEnabled=false;}};}}item.querySelectorAll('.link-wrapper').forEach((wrapper)=>{const anchors=wrapper.getElementsByTagName('a');if(anchors.length){for(let i=0;i<anchors.length;i++)anchors[i].onclick=(e)=>{if(!anchors[i].getAttribute('href'))e.preventDefault();};}const button=wrapper.querySelector('button');if(isMobile)button.onclick=()=>Drupal.behaviors.ohioHeaderMenuBehavior.toggleMainMenuClasses(item);else{button.onclick=()=>Drupal.behaviors.ohioHeaderMenuBehavior.toggleMainMenuClasses(item);item.addEventListener('mouseenter',(e)=>{const nestedMenu=item.querySelector('.nested-menu');
17const levelOneMenus=document.querySelectorAll('.menu-level-1');const auxMenus=document.querySelectorAll('.aux-menu-links li.hasMenu section:not(.closed)');auxMenus.forEach((auxMenu)=>{Drupal.behaviors.ohioHeaderMenuBehavior.toggleAuxMenuClasses(auxMenu.parentElement);});levelOneMenus.forEach((menu)=>{if(menu.classList.contains('menu-item--expanded')){Drupal.behaviors.ohioHeaderMenuBehavior.toggleMainMenuClasses(menu);nestedMenu.style.removeProperty('left');nestedMenu.style.removeProperty('right');}});if(nestedMenu.classList.contains('closed')){Drupal.behaviors.ohioHeaderMenuBehavior.toggleMainMenuClasses(item);const rect=nestedMenu.getBoundingClientRect();const viewportWidth=window.innerWidth||document.documentElement.clientWidth;if(rect.right>viewportWidth){const overflow=rect.right-viewportWidth;const currentLeft=parseFloat(window.getComputedStyle(nestedMenu).left)||0;nestedMenu.style.left=`${currentLeft-overflow}px`;}else{if(rect.left<0){const currentLeft=parseFloat(window.getComputedStyle(nestedMenu).left)||0;nestedMenu.style.left=`${currentLeft-rect.left}px`;}}}});item.addEventListener('mouseleave',(e)=>{setTimeout(()=>{if(item.classList.contains('menu-item--expanded')&&!item.matches(':hover')&&!item.querySelector('.nested-menu').matches(':hover'))Drupal.behaviors.ohioHeaderMenuBehavior.toggleMainMenuClasses(item);},1000);});}button.onkeydown=(e)=>{if(e.keyCode==13||e.keyCode==32)mouseEventsEnabled=false;if(e.shiftKey&&e.keyCode==9&&item.classList.contains('menu-item--expanded')){button.click();mouseEventsEnabled=false;}};});});},toggleAuxMenuClasses:(item)=>{const section=item.querySelector('section');section.classList.toggle('closed');if(section.getAttribute('aria-hidden')==='true')section.setAttribute('aria-hidden','false');else section.setAttribute('aria-hidden','true');section.querySelectorAll('ul').forEach((list)=>{if(list.getAttribute('aria-expanded')==='false')list.setAttribute('aria-expanded','true');else list.setAttribute('aria-expanded','false');});const button=item.querySelector('button');button.classList.toggle('hover');if(button.getAttribute('aria-expanded')=='false')button.setAttribute('aria-expanded','true');else button.setAttribute('aria-expanded','false');},setAuxMenuAttributes:(element,isMobile)=>{element.querySelectorAll('.aux-menu-links li.hasMenu').forEach((item)=>{const chevron=item.querySelector('button');let hoverTimeout=null;let isHovered=true;if(isMobile)chevron.onclick=()=>Drupal.behaviors.ohioHeaderMenuBehavior.toggleAuxMenuClasses(item);else{chevron.onclick=()=>Drupal.behaviors.ohioHeaderMenuBehavior.toggleAuxMenuClasses(item);item.addEventListener('mouseenter',(e)=>{isHovered=true;if(hoverTimeout){clearTimeout(hoverTimeout);hoverTimeout=null;}const menu=item.querySelector('section');const levelOneMenus=document.querySelectorAll('.menu-level-1.menu-item--expanded');const openMenus=element.querySelectorAll('.aux-menu-links li.hasMenu section:not(.closed)');levelOneMenus.forEach((levelOneMenu)=>{Drupal.behaviors.ohioHeaderMenuBehavior.toggleMainMenuClasses(levelOneMenu);});openMenus.forEach((openMenu)=>{Drupal.behaviors.ohioHeaderMenuBehavior.toggleAuxMenuClasses(openMenu.parentElement);});Drupal.behaviors.ohioHeaderMenuBehavior.toggleAuxMenuClasses(item);});item.addEventListener('mouseleave',(e)=>{isHovered=false;hoverTimeout=setTimeout(()=>{if(!isHovered){const section=item.querySelector('section');section.classList.add('closed');section.setAttribute('aria-hidden','true');section.querySelectorAll('ul').forEach((list)=>{list.setAttribute('aria-expanded','false');});const button=item.querySelector('button');button.classList.remove('hover');button.setAttribute('aria-expanded','false');}hoverTimeout=null;},1000);});}chevron.onkeydown=(e)=>{if(e.keyCode==13||e.keyCode==32)mouseEventsEnabled=false;if(e.shiftKey&&e.keyCode==9&&!item.querySelector('section').classList.contains('closed')&&document.activeElement==item.querySelector('button')){chevron.click();mouseEventsEnabled=false;}};const lastList=item.querySelector('section ul:last-of-type');lastList.querySelector('li:last-of-type').onkeydown=(e)=>{if(e.keyCode==9){Drupal.behaviors.ohioHeaderMenuBehavior.toggleAuxMenuClasses(item);mouseEventsEnabled=false;}};item.querySelector('section').style.setProperty('left','-8px');});}};Drupal.behaviors.ohioHeaderSearchBehavior={attach:(context)=>{once('ohioHeaderSearchBehavior','#header-wrapper',context).forEach((element)=>{element.querySelectorAll('#search-desktop, #search-mobile, #page-dimmer, #closeSearch').forEach((item)=>{item.onclick=()=>Drupal.behaviors.ohioHeaderSearchBehavior.toggleSearchItems(element);});});},toggleSearchItems:(element)=>{const funnelbackBlock=element.querySelector('.block-funnelback-integration');const pageDimmer=element.querySelector('#page-dimmer');funnelbackBlock.classList.toggle('active');pageDimmer.classList.toggle('active');if(pageDimmer.classList.contains('active'))element.querySelector('.searchBoxContainer input').focus();}};Drupal.behaviors.ohioHeaderMobileMenuBehavior={attach:(context)=>{once('ohioHeaderMobileMenuBehavior','#header-top',context).forEach((element)=>{element.querySelector('#mobile-nav').onclick=()=>Drupal.behaviors.ohioHeaderMobileMenuBehavior.toggleMobileMenuClasses(element);const mobileMenu=element.querySelector('.top-links > .menu');mobileMenu.onkeydown=(e)=>{if(e.keyCode==27)if(isMobile&&!mobileMenu.classList.contains('closed'))Drupal.behaviors.ohioHeaderMobileMenuBehavior.toggleMobileMenuClasses(element);};});},toggleMobileMenuClasses:(element)=>{const mobileNavIcon=element.querySelector('#mobile-nav > span.fa');mobileNavIcon.classList.toggle('fa-bars');mobileNavIcon.classList.toggle('fa-close');element.querySelector('.top-links > .menu').classList.toggle('closed');document.querySelector('html').classList.toggle('overflow-hidden');document.querySelector('.region-header').classList.toggle('menu-container');if(mobileNavIcon.classList.contains('fa-bars'))element.querySelectorAll('.top-links .menu li.hasMenu').forEach((item)=>{item.querySelectorAll('button.hover').forEach((button)=>{if(item.classList.contains('menu-item--expanded')){item.classList.toggle('menu-item--expanded');item.classList.toggle('menu-item--collapsed');item.querySelector('.nested-menu').classList.toggle('closed');}else item.querySelector('section').classList.toggle('closed');button.classList.toggle('hover');});});}};})(Drupal,once);;

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.