PageSourceSearch

https://northernballet.com/sites/default/files/js/js_-SfgCBrVOrxOw…VYXZHtofVemKc8l0d8nb02vZGc2V8Kb20GPXE3uQl8o

js northernballet.com collected 2026-10-02 05:52:28 UTC 14,003 bytes, 20 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2;(function(Drupal){'use strict';Drupal.behaviors.cookiesGtag={consentGiven:function(){var scriptIds=['cookies_gtag_gtag','cookies_gtag_gtag_ajax','cookies_gtag_gtm'];for(var scriptId in scriptIds){var script=document.getElementById(scriptIds[scriptId]);if(script&&script.nodeName==='SCRIPT'){var content=script.innerHTML;var newScript=document.createElement('script');var attributes=Array.from(script.attributes);for(var attr in attributes){var name=attributes[attr].nodeName;if(name!=='type'&&name!=='id')newScript.setAttribute(name,attributes[attr].nodeValue);}newScript.innerHTML=content;script.parentNode.replaceChild(newScript,script);}}},attach:function(context){var self=this;document.addEventListener('cookiesjsrUserConsent',function(event){var service=(typeof event.detail.services==='object')?event.detail.services:{};if(typeof service.gtag!=='undefined'&&service.gtag)self.consentGiven(context);});}};})(Drupal);;
3"use strict";(function(a,b){b.behaviors.responsive={attach:function b(){"use strict";jQuery(document).ready(function(){1025>jQuery(window).width()&&(jQuery(".view-news.view-display-id-block_4 .grid").slick({slidesToShow:2,arrows:!1,dots:!0}),jQuery(".region-header-image .block-menu ul").slick({infinite:!1,arrows:!0,dots:!1,slidesToShow:3,variableWidth:!0}),jQuery(".region-header-image .main-menu__wrapper ul").slick({infinite:!1,arrows:!0,dots:!1,slidesToShow:3,variableWidth:!0}),jQuery(".logo-wall .image-link-inner").slick({dots:!1,arrows:!0,slidesToShow:3,variableWidth:!0})),jQuery(".referenced-item-grid.carousel-On .field_items").slick({dots:!0,arrows:!0,slidesToShow:2}),a(".autoHeight").length&&a("iframe.autoHeight").load(function(){var b=this.contentWindow.document.body.offsetHeight;a("iframe.autoHeight").css("max-height","none"),a("iframe.autoHeight").css("height",b+40+"px");});});}};})(jQuery,Drupal,drupalSettings);;
4const addMaximumScaleToMetaViewport=()=>{const el=document.querySelector('meta[name=viewport]');
4if(el!==null){let content=el.getAttribute('content');let re=/maximum\-scale=[0-9\.]+/g;if(re.test(content))content=content.replace(re,'maximum-scale=1.0');else content=[content,'maximum-scale=1.0'].join(', ');el.setAttribute('content',content);}};const disableIosTextFieldZoom=addMaximumScaleToMetaViewport;const checkIsIOS=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;if(checkIsIOS())disableIosTextFieldZoom();;
5"use strict";(function(a,b){b.behaviors.input={attach:function a(){"use strict";jQuery("input, textarea").each(function(){jQuery(this).val()?jQuery(this).addClass("used"):jQuery(this).removeClass("used");}),jQuery("input, textarea").blur(function(){jQuery(this).val()?jQuery(this).addClass("used"):jQuery(this).removeClass("used");});}};})(jQuery,Drupal,drupalSettings);;
6(function($){$(document).ready(function(){const linkOpensSubMenu=true;function toggleBodyLock(isLocked){const $body=$('body');if(isLocked){const scrollbarWidth=window.innerWidth-document.documentElement.clientWidth;$body.css('padding-right',scrollbarWidth+'px');$body.addClass('menu-open');}else{$body.css('padding-right','');$body.removeClass('menu-open');}}$('header .main-menu__item--with-sub').each(function(){const $item=$(this);const $link=$item.children('a');if($link.length&&$item.children('.menu-chevron').length===0)$link.after('<button class="menu-chevron" aria-label="Toggle sub-menu">&#10095;</button>');const $subMenu=$item.children('.sub-menu-wrapper');if($subMenu.length&&$subMenu.children('.menu-close-x').length===0)$subMenu.prepend('<button class="menu-close-x" aria-label="Close menu">&#10005;</button>');});if($('.desktop-page-overlay').length===0)$('body').append('<div class="desktop-page-overlay" style="display: none;"></div>');$('header .search-toggle').on('click',function(e){e.preventDefault();$('header #views-exposed-form-search-page-1').fadeToggle(250);});$('header .main-menu__open-button').on('click',function(){$('header .main-menu__wrapper').addClass('slide-in');toggleBodyLock(true);});$('header .main-menu__close-button').on('click',function(){$('header .main-menu__wrapper').removeClass('slide-in');$('header .sub-menu-wrapper').removeClass('slide-in');toggleBodyLock(false);});$(document).on('click',function(e){const $target=$(e.target);const isDesktop=$(window).width()>=1024;const $clickedChevron=$target.closest('header .menu-chevron');const $clickedLink=$target.closest('header a');let $parentItem=null;let isToggleAction=false;if($clickedChevron.length){$parentItem=$clickedChevron.closest('li.main-menu__item');isToggleAction=true;}else{if($clickedLink.length){$parentItem=$clickedLink.closest('li.main-menu__item');if($clickedLink.parent().is($parentItem)){const hasSubMenu=$parentItem.children('.sub-menu-wrapper').length>0;if(linkOpensSubMenu&&hasSubMenu)isToggleAction=true;}}}if(isToggleAction){e.preventDefault();const $subMenu=$parentItem.children('.sub-menu-wrapper');if(isDesktop){$parentItem.siblings('li').children('.sub-menu-wrapper').fadeOut(200);const willOpen=!$subMenu.is(':visible');$subMenu.fadeToggle(250);if($parentItem.hasClass('main-menu__item--sub-0'))willOpen?$('.desktop-page-overlay').fadeIn(250):$('.desktop-page-overlay').fadeOut(250);}else $subMenu.addClass('slide-in');return;}if($target.closest('header .menu-close-x').length){e.preventDefault();const $subMenu=$target.closest('.sub-menu-wrapper');if(isDesktop){$subMenu.fadeOut(250);
6if($subMenu.parent().hasClass('main-menu__item--sub-0'))$('.desktop-page-overlay').fadeOut(250);}else $subMenu.removeClass('slide-in');return;}if(isDesktop)if(!$target.closest('header #block-creode-main-menu').length&&!$target.closest('.desktop-page-overlay').length&&!$target.closest('header .search-block').length){$('header .sub-menu-wrapper').fadeOut(250);$('.desktop-page-overlay').fadeOut(250);}});$('.desktop-page-overlay').on('click',function(){$('header .sub-menu-wrapper').fadeOut(250);$(this).fadeOut(250);});$(window).on('resize',function(){if($(window).width()>=1024){$('header .main-menu__wrapper').css('display','');$('header .main-menu__wrapper, header .sub-menu-wrapper').removeClass('slide-in');toggleBodyLock(false);}else{$('.desktop-page-overlay').hide();$('header .sub-menu-wrapper').hide();}});$('a').not('[href^="#"], [target="_blank"], [href^="mailto:"], [href^="tel:"], .menu-item--expanded > a, .lightbox').on('click',function(e){if(!e.ctrlKey&&!e.metaKey&&!e.shiftKey)$('body').addClass('is-loading');});$(window).on('pageshow',function(event){if(event.originalEvent&&event.originalEvent.persisted)$('body').removeClass('is-loading');});$('header').on('click','#block-creode-account-menu .menu-item--expanded > span',function(e){e.preventDefault();$(this).parent().toggleClass('account-menu-open');});$(document).on('click',function(e){if(!$(e.target).closest('#block-creode-account-menu').length)$('#block-creode-account-menu .menu-item--expanded').removeClass('account-menu-open');});});})(jQuery);;
7"use strict";Drupal.behaviors.marquee={attach:function b(){"use strict";var a=jQuery(".marquee__content");a.on("mousedown",function(a){var b=jQuery(this).addClass("drag").css("cursor","move"),c=b.outerWidth(),d=b.offset().left+c-a.pageX;jQuery(document.body).on("mousemove",function(a){var e=a.pageX+d-c;b.hasClass("drag")&&b.offset({left:e});}).on("mouseup",function(){b.removeClass("drag");});});}};;
8"use strict";(function(){"use strict";jQuery(".search-block").on("click",".search-toggle",function(){jQuery(".search-block").toggleClass("show").find("#edit-search-api-fulltext").focus(),jQuery("body").toggleClass("search-open"),jQuery(this).toggleClass("active"),jQuery(this).hasClass("active")?jQuery(this).attr("aria-label","Hide search"):jQuery(this).attr("aria-label","Show search");});})();;
9"use strict";(function(){"use strict";function d(a){var b,c,d,e=[];for(b=document.getElementsByClassName("select-items"),c=document.getElementsByClassName("select-selected"),d=0;d<c.length;d++)a==c[d]?e.push(d):c[d].classList.remove("select-arrow-active");for(d=0;d<b.length;d++)e.indexOf(d)&&b[d].classList.add("select-hide");}var e,f,g,h,k,l,m;for(e=document.getElementsByClassName("select-wrap"),f=0;f<e.length;f++){for(h=e[f].getElementsByTagName("select")[0],k=document.createElement("DIV"),k.setAttribute("class","select-selected"),k.innerHTML=h.options[h.selectedIndex].innerHTML,e[f].appendChild(k),l=document.createElement("DIV"),l.setAttribute("class","select-items select-hide"),g=1;g<h.length;g++)m=document.createElement("DIV"),m.innerHTML=h.options[g].innerHTML,m.addEventListener("click",function(){var a,b,c,d,e;for(d=this.parentNode.parentNode.getElementsByTagName("select")[0],e=this.parentNode.previousSibling,b=0;b<d.length;b++)if(d.options[b].innerHTML==this.innerHTML){for(d.selectedIndex=b,e.innerHTML=this.innerHTML,a=this.parentNode.getElementsByClassName("same-as-selected"),c=0;c<a.length;c++)a[c].removeAttribute("class");this.setAttribute("class","same-as-selected");break;}jQuery(d).trigger("change"),e.click();}),l.appendChild(m);e[f].appendChild(l),k.addEventListener("click",function(a){a.stopPropagation(),d(this),this.nextSibling.classList.toggle("select-hide"),this.classList.toggle("select-arrow-active");});}document.addEventListener("click",d);})();;
10/*!
11 * hoverIntent v1.10.2 // 2020.04.28 // jQuery v1.7.0+
12 * http://briancherne.github.io/jquery-hoverIntent/
13 *
14 * You may use hoverIntent under the terms of the MIT license. Basically that
15 * means you are free to use hoverIntent as long as this header is left intact.
16 * Copyright 2007-2019 Brian Cherne
17 */
18!function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery"],factory):"object"==typeof module&&module.exports?module.exports=factory(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&factory(jQuery)}(function($){"use strict";function track(ev){cX=ev.pageX,cY=ev.pageY}function isFunction(value){return"function"==typeof value}var cX,cY,_cfg={interval:100,sensitivity:6,timeout:0},INSTANCE_COUNT=0,compare=function(ev,$el,s,cfg){if(Math.sqrt((s.pX-cX)*(s.pX-cX)+(s.pY-cY)*(s.pY-cY))<cfg.sensitivity)return $el.off(s.event,track),delete s.timeoutId,s.isActive=!0,ev.pageX=cX,ev.pageY=cY,delete s.pX,delete s.pY,cfg.over.apply($el[0],[ev]);s.pX=cX,s.pY=cY,s.timeoutId=setTimeout(function(){compare(ev,$el,s,cfg)},cfg.interval)};$.fn.hoverIntent=function(handlerIn,handlerOut,selector){var instanceId=INSTANCE_COUNT++,cfg=$.extend({},_cfg);$.isPlainObject(handlerIn)?(cfg=$.extend(cfg,handlerIn),isFunction(cfg.out)||(cfg.out=cfg.over)):cfg=isFunction(handlerOut)?$.extend(cfg,{over:handlerIn,out:handlerOut,selector:selector}):$.extend(cfg,{over:handlerIn,out:handlerIn,selector:handlerOut});function handleHover(e){var ev=$.extend({},e),$el=$(this),hoverIntentData=$el.data("hoverIntent");hoverIntentData||$el.data("hoverIntent",hoverIntentData={});var state=hoverIntentData[instanceId];state||(hoverIntentData[instanceId]=state={id:instanceId}),state.timeoutId&&(state.timeoutId=clearTimeout(state.timeoutId));
18var mousemove=state.event="mousemove.hoverIntent.hoverIntent"+instanceId;if("mouseenter"===e.type){if(state.isActive)return;state.pX=ev.pageX,state.pY=ev.pageY,$el.off(mousemove,track).on(mousemove,track),state.timeoutId=setTimeout(function(){compare(ev,$el,state,cfg)},cfg.interval)}else{if(!state.isActive)return;$el.off(mousemove,track),state.timeoutId=setTimeout(function(){!function(ev,$el,s,out){var data=$el.data("hoverIntent");data&&delete data[s.id],out.apply($el[0],[ev])}(ev,$el,state,cfg.out)},cfg.timeout)}}return this.on({"mouseenter.hoverIntent":handleHover,"mouseleave.hoverIntent":handleHover},cfg.selector)}});;
19"use strict";(function(a,b){b.behaviors.sticky_header={attach:function a(){"use strict";jQuery(window).on("scroll",function(){50<jQuery(window).scrollTop()?jQuery(".header").addClass("sticky-active"):jQuery(".header").removeClass("sticky-active");}),jQuery(".header").hoverIntent(function(){jQuery(".header").addClass("sticky-active");},function(){return !(50<jQuery(window).scrollTop())&&void setTimeout(function(){jQuery(".header").removeClass("sticky-active");},400);});}};})(jQuery,Drupal,drupalSettings);;
20(function($,Drupal,drupalSettings){Drupal.behaviors.FindBalletBehavior={attach:function(context,settings){context.querySelectorAll('[id^="find-a-ballet"]').forEach(function(element){element.addEventListener('change',optionsChanged);updateOptions(element);});function optionsChanged(event){updateOptions(event.currentTarget);}function updateOptions(element){let production=element.querySelector('select[id^="edit-production"]');let production_value=production.value;let city=element.querySelector('select[id^="edit-city"]');let city_value=city.value;let ballets=settings.find_a_ballet.values;let available_productions=unique(ballets.map(function(value){return value.production;})).sort(sorter);let available_cities=unique(ballets.map(function(value){return value.city;})).sort(sorter);ballets=ballets.filter(function(value){return production_value==0||value.production.id==production_value;}).filter(function(value){return city_value==0||value.city.id==city_value;});if(production_value>0)available_cities=unique(ballets.map(function(value){return value.city;})).sort(sorter);if(city_value>0)available_productions=unique(ballets.map(function(value){return value.production;})).sort(sorter);production.options.length=1;for(const opt of available_productions){const selected=opt.id==production_value;production.options[production.options.length]=new Option(opt.name,opt.id,false,selected);}city.options.length=1;for(const opt of available_cities){const selected=opt.id==city_value;city.options[city.options.length]=new Option(opt.name,opt.id,false,selected);}}function unique(array){const result=[];const map=new Map();for(const item of array)if(!map.has(item.id)){map.set(item.id,true);result.push(item);}return result;}function sorter(a,b){if(a.name>b.name)return 1;if(a.name<b.name)return -1;return 0;}}};})(jQuery,Drupal,drupalSettings);;

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.