PageSourceSearch

https://nbss.edu/wp-content/themes/nbss/assets/js/custom.js?ver=7.0.4

js nbss.edu collected 2026-10-02 04:46:52 UTC 12,424 bytes, 1 lines download raw bytes

1jQuery(document).ready(function(e){e(".accordion-title").click(function(){"false"===e(this).attr("aria-expanded")?(e(this).attr("aria-expanded","true"),e(this).parent().addClass("open").next(".accordion-content").slideDown()):(e(this).attr("aria-expanded","false"),e(this).parent().removeClass("open").next(".accordion-content").slideUp())})}),jQuery(document).ready(function(e){e(".dropdown-menu").on("click",function(e){e.stopPropagation()})}),jQuery(document).ready(function(n){var e=(()=>{var e=window.location.search.substring(1);if(e.split("&"),0<e.length)return e})();0<n("#filtered-query").length&&e&&setTimeout(function(){n("html, body").animate({scrollTop:n("#filtered-query").offset().top-150},600)},1e3),n(".exposed-filter-pill").on("click",function(e){e.preventDefault(),n('input[value="'+n(this).attr("data-filter")+'"]').click(),n(this).parents(".query-wrangler").find('input[value="Filter"]').click()}),n('input[value="Reset"]').click(function(e){e.preventDefault(),window.location=window.location.href.split("?")[0]}),n(".calendar-filter__see-all-events a").click(function(e){e.preventDefault(),window.location=window.location.href.split("?")[0]}),n(".query-checkbox").each(function(){var e=n(this).children(),t=e.attr("value");n(this).children().attr("id","checkbox_"+t),n(this).attr("for","checkbox_"+t),e.parent().before(e)}),n("#mobile-filter-toggle").click(function(e){n(".query-wrangler__form").addClass("show"),n(this).addClass("d-none")}),n("#opusKeywordSearch").length&&(e=n("#opusKeywordSearch")).prev(".query-exposed-label-opus_search").attr("for",e.attr("id"))}),document.addEventListener("DOMContentLoaded",function(){var e=document.getElementById("cat"),e=(e&&e.addEventListener("change",function(){document.getElementById("categories-filter-select").submit()}),document.getElementById("sort"));e&&e.addEventListener("change",function(){document.getElementById("sort-filter-form").submit()})}),jQuery(document).ready(function(e){e("a.footnote-link.footnote-back-link").prepend('<span class="sr-only">Return to text </span>')}),jQuery(document).ready(function(t){if(t(".frm_forms").length){let a=function(){t(".frm_checkbox label").each(function(){var e=t(this).children();e.parent().before(e)}),t(".frm_radio label").each(function(){var e=t(this).children();e.parent().before(e)}),t(".frm_forms select").wrap('<div class="select-wrapper"></div>'),t(".frm_forms textarea").wrap('<div class="input-wrapper"></div>'),t('.frm_forms input[type="text"]:not(.frm_other_input)').wrap('<div class="input-wrapper"></div>'),t('.frm_forms input[type="password"]').wrap('<div class="input-wrapper"></div>'),t('.frm_forms input[type="number"]').wrap('<div class="input-wrapper"></div>'),t('.frm_forms input[type="url"]').wrap('<div class="input-wrapper"></div>'),t('.frm_forms input[type="tel"]').wrap('<div class="input-wrapper"></div>'),t('.frm_forms input[type="search"]').wrap('<div class="input-wrapper"></div>'),t('.frm_forms input[type="email"]').wrap('<div class="input-wrapper"></div>')};a(),t(document).on("frmPageChanged",function(e,t,n){a()})}}),jQuery(document).ready(function(e){e(".wp-block-gallery figure a").next("figcaption").click(function(){console.log("clicked"),e(this).prev("a")[0].click()})}),jQuery(document).ready(function(a){if(a(".g-trans > .gtranslate_wrapper").length){let e=a(".g-trans > .gtranslate_wrapper"),t=a(".g-trans--desktop"),n=a(".g-trans--mobile");enquire.register("screen and (min-width:1280px)",{match(){a(".g-trans--desktop > .gtranslate_wrapper").length||a(t).prepend(e)}}).register("screen and (max-width:1279px)",{match(){a(".g-trans--mobile > .gtranslate_wrapper").length||a(n).prepend(e)}})}}),jQuery(document).ready(function(t){var e;t(".home-spotlight-region__item").find("a").hover(function(){t(this).parents(".home-spotlight-region__item").addClass("hover")},function(){t(this).parents(".home-spotlight-region__item").removeClass("hover")}),t("#home-programs-region").length&&new Waypoint({element:document.getElementById("home-programs-region"),handler:function(e){t(".home-programs-region__bg-image").addClass("scale")},offset:"20%"}),t(".home-community-region__quote").length&&(e=t(".home-community-region__quote").length,e=Math.floor(Math.random()*e),t(".home-community-region__quote").eq(e).removeClass("d-none"))}),jQuery(document).ready(function(e){e(".image-text-block").find("h2 a").hover(function(){e(this).parents(".image-text-block").addClass("hover")},function(){e(this).parents(".image-text-block").removeClass("hover")})}),jQuery(document).ready(function(t){let n=0;t(window).on("scroll",_.throttle(function(){var e=t(this).scrollTop();e>n&&140<t(document).scrollTop()?t("#sticky-main-nav").addClass("fixed-top"):t("#sticky-main-nav").removeClass("fixed-top"),n=e}
1,250)),t("#main-nav").on("keyup",function(e){27===e.keyCode&&t("li.has-submenu").removeClass("open").children("button").attr("aria-expanded","false")}),t("#main-nav li.has-submenu button").click(function(){t(this).parent().hasClass("open")?t(this).attr("aria-expanded","false").parent().removeClass("open"):t(this).attr("aria-expanded","true").parent().addClass("open")}),t("#main-nav li.has-submenu").on("mouseleave",function(){t(this).removeClass("open").children("button").attr("aria-expanded","false")}),t("#main-nav li.has-submenu").on("mouseenter",function(){t(this).addClass("open").children("button").attr("aria-expanded","true")}),t("#main-nav").on("keydown","li:not(.level-1) > a, li:not(.level-1) > button",function(e){if(9===e.keyCode){if(!0===e.shiftKey)return!0;e=t(this).parents(".has-submenu.level-1").find("a:visible, button:visible").last();t(this)[0]===e[0]?(t(this).parents(".has-submenu.open").removeClass("open"),t(this).parents(".has-submenu.level-1").find("button").attr("aria-expanded","false")):t(this).parent().hasClass("level-3")&&t(this).parent().is(":last-child")&&t(this).parents(".has-submenu.level-2").removeClass("open").children("button").attr("aria-expanded","false")}}),jQuery("#main-nav .has-submenu.level-1 > button").on("keydown",function(e){if(9===e.keyCode){if(!0==!e.shiftKey)return!0;t(this).parent(".has-submenu.level-1").removeClass("open").find(".open").removeClass("open"),t(this).parent(".has-submenu.level-1").find("button").attr("aria-expanded","false")}})}),jQuery(document).ready(function(t){t(".mobile-menu-wrapper button.caret").click(function(e){e.preventDefault(),"false"==t(this).attr("aria-expanded")?t(this).attr("aria-expanded","true").next().show():t(this).attr("aria-expanded","false").next().hide()}),t("#navbar-toggler").click(function(e){"true"==t(this).attr("aria-expanded")?(t("#mobile-navigation").removeClass("show"),t(this).attr("aria-expanded",!1).addClass("collapsed"),t("html").removeClass("noscroll"),t("body").removeClass("noscroll")):(t("#mobile-navigation").addClass("show"),t(this).attr("aria-expanded",!0).removeClass("collapsed"),t("html").addClass("noscroll"),t("body").addClass("noscroll"))}),t(".header__wrapper").on("keyup",function(e){27===e.keyCode&&"true"==t("#navbar-toggler").attr("aria-expanded")&&(t("#mobile-navigation").removeClass("show"),t("#navbar-toggler").attr("aria-expanded",!1).addClass("collapsed"),t("html").removeClass("noscroll"),t("body").removeClass("noscroll"))}),t(".mobile-menu-wrapper").on("keydown","a.mit-logo",function(e){if(9===e.keyCode){if(!0===e.shiftKey)return!0;t("#mobile-navigation").removeClass("show"),t("#navbar-toggler").attr("aria-expanded",!1).addClass("collapsed"),t("html").removeClass("noscroll"),t("body").removeClass("noscroll")}})}),jQuery(document).ready(function(e){e(".news-card").find("h3 a").hover(function(){e(this).parents(".news-card__wrapper").addClass("hover")},function(){e(this).parents(".news-card__wrapper").removeClass("hover")})}),jQuery(document).ready(function(e){var t;e(".people-community-block__featured-profile").length&&(t=e(".people-community-block__featured-profile").length,t=Math.floor(Math.random()*t),e(".people-community-block__featured-profile").eq(t).removeClass("d-none"))}),jQuery(document).ready(function(m){var e,u,h,f,g,v;e=m("[data-imgbg]"),u="(max-width: 539px)",h="(min-width: 540px) and (max-width: 719px)",f="(min-width: 720px) and (max-width: 959px)",g="(min-width: 960px) and (max-width: 1279px)",v="(min-width: 1280px)",e.each(function(){var e=m(this).data("imgbg-mobile"),t=m(this).data("imgbg-mobile2x"),n=m(this).data("imgbg-narrow"),a=m(this).data("imgbg-narrow2x"),i=m(this).data("imgbg-wide"),r=m(this).data("imgbg-wide2x"),o=m(this).data("imgbg-xwide"),s=m(this).data("imgbg-xwide2x"),d=m(this).data("imgbg-xxwide"),l=m(this).data("imgbg-xxwide2x"),c=m(this);function p(e){c.css("background-image",'url("'+e+'")')}enquire.register("screen and "+u,{match:function(){p(e)}}).register("screen and (min-resolution: 2dppx), screen and (-webkit-min-device-pixel-ratio: 2), screen and (min--moz-device-pixel-ratio: 2), screen and (min-resolution: 250dpi)",{match:function(){p(t)}}).register("screen and "+h,{match:function(){p(n)}}).register("screen and (min-width: 540px) and (max-width: 719px) and (min-resolution: 2dppx), screen and (min-width: 540px) and (max-width: 719px) and (-webkit-min-device-pixel-ratio: 2), screen and (min-width: 540px) and (max-width: 719px) and (min--moz-device-pixel-ratio: 2), screen and (min-width: 540px) and (max-width: 719px) and (min-resolution: 250dpi)",{match:function(){p(a)}}).register("screen and "+f,{match:function(){p(i)}}).register("screen and (min-width: 720px) and (max-width: 959px) and (min-resolution: 2dppx), screen and (min-width: 720px) and (max-width: 959px) and (-webkit-min-device-pixel-ratio: 2), screen and (min-width: 720px) and (max-width: 959px) and (min--moz-device-pixel-ratio: 2), screen and (min-width: 720px) and (max-width: 959px) and (min-resolution: 250dpi)",{match:function(){p(r)}}).register("screen and "+g,{match:function(){p(o)}}).register("screen and (min-width: 960px) and (max-width: 1279px) and (min-resolution: 2dppx), screen and (min-width: 960px) and (max-width: 1279px) and (-webkit-min-device-pixel-ratio: 2), screen and (min-width: 960px) and (max-width: 1279px) and (min--moz-device-pixel-ratio: 2), screen and (min-width: 960px) and (max-width: 1279px) and (min-resolution: 250dpi)",{match:function(){p(s)}}).register("screen and "+v,{match:function(){p(d)}}).register("screen and (min-width: 1280px) and (min-resolution: 2dppx), screen and (min-width: 1280px) and (-webkit-min-device-pixel-ratio: 2), screen and (min-width: 1280px) and (min--moz-device-pixel-ratio: 2), screen and (min-width: 1280px) and (min-resolution: 250dpi)",{match:function(){p(l)}})})}),jQuery(document).ready(function(r){function t(t,e,n){var a=!!t.hasClass("wp-block-opus-core-block-rewrite-oa"),i=!!t.parents(".wp-block-opus-core-block-rewrite-oa");if(a||i){let e;
1"false"===(e=(a?t:t.parents(".wp-block-opus-core-block-rewrite-oa")).find(".accordion-title")).attr("aria-expanded")&&e.click()}setTimeout(function(){r("html, body").animate({scrollTop:t.offset().top-e},600)},n)}var e;window.location.hash&&(e=r(window.location.hash)).length&&t(e,100,500),r('a[href*="#"]').not('[href="#"], [href="#0"], .skip-link, .page-numbers').click(function(e){this.pathname===window.location.pathname&&(e.preventDefault(),e=r(this).attr("href"),(e=r(e)).length)&&t(e,100,100)})}),jQuery.fn.blindRightToggle=function(e,t,n){return this.animate({marginRight:0},jQuery.speed(e,t,n))},jQuery(document).ready(function(e){e("#search-form-toggle").click(function(){e(this).attr("aria-expanded","true"),e(this).toggle(),e(".utility-navigation .searchform").toggleClass("active"),e(".utility-navigation input[type='text']").addClass("sup").blindRightToggle(),setTimeout(function(){e(".utility-navigation input[type='text']").focus()},400)})}),/(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(e=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus())},!1),jQuery(document).ready(function(e){e(".wp-block-table table").each(function(){e(this).find("thead").length?e(this).basictable():e(this).basictable({header:!1})})}),jQuery(document).ready(function(e){e(".tiles-block__tile").find("h3 a").hover(function(){e(this).parents(".tiles-block__tile").addClass("hover")},function(){e(this).parents(".tiles-block__tile").removeClass("hover")})});

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.