PageSourceSearch

https://listenmd.ai/themes/custom/martex/js/global.js,qv=11.4.7.pagespeed.jm.2DI5aWU-MJ.js

js listenmd.ai collected 2026-10-05 12:14:16 UTC 13,202 bytes, 1 lines download raw bytes

1(function($,Drupal){'use strict';Drupal.behaviors.martexCkeditor={attach:function(context,settings){if(typeof CKEDITOR!=="undefined"){CKEDITOR.dtd.$removeEmpty['i']=false;CKEDITOR.dtd.$removeEmpty['span']=false;console.log('Ckeditor log',CKEDITOR.dtd);}}};Drupal.behaviors.martexStickyHeader={attach:function(context,settings){if($('body.user-logged-in form.node-landing-page-edit-form').length)return;var navbar=document.querySelector(".navbar");if(navbar==null)return;var options={offset:350,offsetSide:'top',classes:{clone:'navbar-clone fixed',stick:'navbar-stick',unstick:'navbar-unstick',},onStick:function(){var navbarClonedClass=this.clonedElem.classList;if(navbarClonedClass.contains('transparent')&&navbarClonedClass.contains('navbar-dark')){this.clonedElem.className=this.clonedElem.className.replace("navbar-dark","navbar-light");}}};var banner=new Headhesive('.navbar',options);}};Drupal.behaviors.martexSubmenu={attach:function(context,settings){(function($bs){const CLASS_NAME='has-child-dropdown-show';$bs.Dropdown.prototype.toggle=function(_original){return function(){document.querySelectorAll('.'+CLASS_NAME).forEach(function(e){e.classList.remove(CLASS_NAME);});let dd=this._element.closest('.dropdown').parentNode.closest('.dropdown');if(dd){dd=dd.parentNode.closest('.dropdown');}for(;dd&&dd!==document;dd=dd.parentNode.closest('.dropdown')){dd.classList.add(CLASS_NAME);}return _original.call(this);}}($bs.Dropdown.prototype.toggle);document.querySelectorAll('.dropdown').forEach(function(dd){dd.addEventListener('hide.bs.dropdown',function(e){if(this.classList.contains(CLASS_NAME)){this.classList.remove(CLASS_NAME);e.preventDefault();}e.stopPropagation();});});})(bootstrap);document.querySelectorAll('.offcanvas-nav .clickable-dd-parent').forEach(function(link){if(link.dataset.mobileDropdownInitialized==='true'){return;}link.dataset.mobileDropdownInitialized='true';link.addEventListener('click',function(event){if(window.innerWidth>=992){return;}var dropdown=link.closest('.dropdown');if(!dropdown){return;}var menu=dropdown.querySelector(':scope > .dropdown-menu');if(!menu){return;}event.preventDefault();event.stopPropagation();var isOpen=dropdown.classList.contains('show');var navigation=dropdown.closest('.offcanvas-nav');if(navigation){navigation.querySelectorAll('.dropdown.show').forEach(function(otherDropdown){if(otherDropdown!==dropdown){otherDropdown.classList.remove('show');var otherMenu=otherDropdown.querySelector(':scope > .dropdown-menu');if(otherMenu){otherMenu.classList.remove('show');}var otherLink=otherDropdown.querySelector(':scope > .clickable-dd-parent');if(otherLink){otherLink.setAttribute('aria-expanded','false');}}});}if(isOpen){dropdown.classList.remove('show');menu.classList.remove('show');link.setAttribute('aria-expanded','false');}else{dropdown.classList.add('show');menu.classList.add('show');link.setAttribute('aria-expanded','true');}});});}};Drupal.behaviors.martexOffCanvas={attach:function(context,settings){var navbar=document.querySelector(".navbar");if(navbar==null)return;const navOffCanvasBtn=document.querySelectorAll(".offcanvas-nav-btn");const navOffCanvas=document.querySelector('.navbar:not(.navbar-clone) .offcanvas-nav');const bsOffCanvas=new bootstrap.Offcanvas(navOffCanvas,{scroll:true});const scrollLink=document.querySelectorAll('.onepage .navbar li a.scroll');const searchOffcanvas=document.getElementById('offcanvas-search');navOffCanvasBtn.forEach(e=>{e.addEventListener('click',event=>{bsOffCanvas.show();})});scrollLink.forEach(e=>{e.addEventListener('click',event=>{bsOffCanvas.hide();})});if(searchOffcanvas!=null){searchOffcanvas.addEventListener('shown.bs.offcanvas',function(){document.getElementById("search-form").focus();});}}};Drupal.behaviors.martexBackgroundImage={attach:function(context,settings){var bg=document.querySelectorAll(".bg-image");for(var i=0;i<bg.length;i++){var url=bg[i].getAttribute('data-image-src');bg[i].style.backgroundImage="url('"+url+"')";}}};Drupal.behaviors.martexBackgroundImageMobile={attach:function(context,settings){var isMobile=(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||(navigator.platform==='MacIntel'&&navigator.maxTouchPoints>1)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i))?true:false;if(isMobile){document.querySelectorAll(".image-wrapper").forEach(e
1=>{e.classList.add("mobile")})}}};Drupal.behaviors.martexPageProgress={attach:function(context,settings){var progressWrap=document.querySelector('.progress-wrap');if(progressWrap!=null){var progressPath=document.querySelector('.progress-wrap path');var pathLength=progressPath.getTotalLength();var offset=50;progressPath.style.transition=progressPath.style.WebkitTransition='none';progressPath.style.strokeDasharray=pathLength+' '+pathLength;progressPath.style.strokeDashoffset=pathLength;progressPath.getBoundingClientRect();progressPath.style.transition=progressPath.style.WebkitTransition='stroke-dashoffset 10ms linear';window.addEventListener("scroll",function(event){var scroll=document.body.scrollTop||document.documentElement.scrollTop;var height=document.documentElement.scrollHeight-document.documentElement.clientHeight;var progress=pathLength-(scroll*pathLength/height);progressPath.style.strokeDashoffset=progress;var scrollElementPos=document.body.scrollTop||document.documentElement.scrollTop;if(scrollElementPos>=offset){progressWrap.classList.add("active-progress")}else{progressWrap.classList.remove("active-progress")}});progressWrap.addEventListener('click',function(e){e.preventDefault();window.scroll({top:0,left:0,behavior:'smooth'});});}}};Drupal.behaviors.martexLPB={attach:function(context,settings){$('.js-lpb-component .block-contact textarea, .js-lpb-component .block-contact input, .js-lpb-component .block-simplenews input, .js-lpb-component .block-user input').each(function(){var thisElement=$(this);thisElement.attr('disabled','disabled');});}};Drupal.behaviors.martexSection={attach:function(context,settings){$('section').each(function(index,element){var thisSection=$(this),gutterClass=thisSection.attr('data-gutter-class')||'',contentAlignClass=thisSection.attr('data-content-align')||'',marginClass=thisSection.attr('data-margin')||'';thisSection.find('div[class*="container"] > .row').addClass([gutterClass,contentAlignClass,marginClass]);});$('div.paragraph--type--paragraph-layout').each(function(index,element){var thisParagraph=$(this),gutterClass=thisParagraph.attr('data-gutter-class')||'',contentAlignClass=thisParagraph.attr('data-content-align')||'';if(gutterClass)thisParagraph.find('.row').removeClass().addClass('row');thisParagraph.find('.row').addClass([gutterClass,contentAlignClass]);});}};Drupal.behaviors.martexAccordion={attach:function(context,settings){$('.accordion-title').on('click',function(){var accordion=$(this).closest('.accordion');var li=$(this).closest('li');if(li.hasClass('active')){li.removeClass('active');}else{if(accordion.hasClass('accordion-oneopen')){var wasActive=accordion.find('li.active');wasActive.removeClass('active');li.addClass('active');}else{li.addClass('active');}}});}};Drupal.behaviors.martexTabs={attach:function(context,settings){$('.tabs').each(function(){var tabs=$(this);tabs.after('<ul class="tabs-content">');tabs.find('li').each(function(){var currentTab=$(this),tabContent=currentTab.find('.tab__content').wrap('<li></li>').parent(),tabContentClone=tabContent.clone(true,true);tabContent.remove();currentTab.closest('.tabs-container').find('.tabs-content').append(tabContentClone);});});$('.tabs li').on('click',function(){var clickedTab=$(this),tabContainer=clickedTab.closest('.tabs-container'),activeIndex=(clickedTab.index()*1)+(1),activeContent=tabContainer.find('> .tabs-content > li:nth-of-type('+activeIndex+')'),iframe,radial;tabContainer.find('> .tabs > li').removeClass('active');tabContainer.find('> .tabs-content > li').removeClass('active');clickedTab.addClass('active');activeContent.addClass('active');iframe=activeContent.find('iframe');if(iframe.length){iframe.attr('src',iframe.attr('src'));}});$('.tabs li.active').trigger('click');}};Drupal.behaviors.sandboxProjectList1={attach:function(context,settings){$('#projects-list-1 .project.item').each(function(index,element){var thisItem=$(this),thisItemImage=thisItem.find('figure'),thisItemDetail=thisItem.find('.project-details');thisItemDetail.css('bottom','25%');if(index%2==0){thisItemImage.addClass('offset-xl-1');thisItemDetail.css('right','10%');}else{thisItemImage.addClass('offset-xl-4');thisItemDetail.css('left','18%');}});}};Drupal.behaviors.martexSwiperSlider={attach:function(context,settings){var carousel=document.querySelectorAll('.swiper-container');for(var i=0;i<carousel.length;i++){var slider1=carousel[i];slider1.classList.add('swiper-container-'+i);var controls=document.createElement('div');
1controls.className="swiper-controls";var pagi=document.createElement('div');pagi.className="swiper-pagination";var navi=document.createElement('div');navi.className="swiper-navigation";var prev=document.createElement('div');prev.className="swiper-button swiper-button-prev";var next=document.createElement('div');next.className="swiper-button swiper-button-next";slider1.appendChild(controls);controls.appendChild(navi);navi.appendChild(prev);navi.appendChild(next);controls.appendChild(pagi);var sliderEffect=slider1.getAttribute('data-effect')?slider1.getAttribute('data-effect'):'slide';if(slider1.getAttribute('data-items-auto')==='true'){var slidesPerViewInit="auto";var breakpointsInit=null;}else{var sliderItems=slider1.getAttribute('data-items')?slider1.getAttribute('data-items'):3;var sliderItemsXs=slider1.getAttribute('data-items-xs')?slider1.getAttribute('data-items-xs'):1;var sliderItemsSm=slider1.getAttribute('data-items-sm')?slider1.getAttribute('data-items-sm'):Number(sliderItemsXs);var sliderItemsMd=slider1.getAttribute('data-items-md')?slider1.getAttribute('data-items-md'):Number(sliderItemsSm);var sliderItemsLg=slider1.getAttribute('data-items-lg')?slider1.getAttribute('data-items-lg'):Number(sliderItemsMd);var sliderItemsXl=slider1.getAttribute('data-items-xl')?slider1.getAttribute('data-items-xl'):Number(sliderItemsLg);var sliderItemsXxl=slider1.getAttribute('data-items-xxl')?slider1.getAttribute('data-items-xxl'):Number(sliderItemsXl);var slidesPerViewInit=sliderItems;var breakpointsInit={0:{slidesPerView:Number(sliderItemsXs)},576:{slidesPerView:Number(sliderItemsSm)},768:{slidesPerView:Number(sliderItemsMd)},992:{slidesPerView:Number(sliderItemsLg)},1200:{slidesPerView:Number(sliderItemsXl)},1400:{slidesPerView:Number(sliderItemsXxl)}}}var sliderSpeed=slider1.getAttribute('data-speed')?slider1.getAttribute('data-speed'):500;var sliderAutoPlay=slider1.getAttribute('data-autoplay')!=='false';var sliderAutoPlayTime=slider1.getAttribute('data-autoplaytime')?slider1.getAttribute('data-autoplaytime'):5000;var sliderAutoHeight=slider1.getAttribute('data-autoheight')==='true';var sliderResizeUpdate=slider1.getAttribute('data-resizeupdate')!=='false';var sliderAllowTouchMove=slider1.getAttribute('data-drag')!=='false';var sliderReverseDirection=slider1.getAttribute('data-reverse')==='true';var sliderMargin=slider1.getAttribute('data-margin')?slider1.getAttribute('data-margin'):30;var sliderLoop=slider1.getAttribute('data-loop')==='true';var sliderCentered=slider1.getAttribute('data-centered')==='true';var swiper=slider1.querySelector('.swiper:not(.swiper-thumbs)');var swiperTh=slider1.querySelector('.swiper-thumbs');var sliderTh=new Swiper(swiperTh,{slidesPerView:5,spaceBetween:10,loop:false,threshold:2,slideToClickedSlide:true});if(slider1.getAttribute('data-thumbs')==='true'){var thumbsInit=sliderTh;var swiperMain=document.createElement('div');swiperMain.className="swiper-main";swiper.parentNode.insertBefore(swiperMain,swiper);swiperMain.appendChild(swiper);slider1.removeChild(controls);swiperMain.appendChild(controls);}else{var thumbsInit=null;}var slider=new Swiper(swiper,{on:{beforeInit:function(){if(slider1.getAttribute('data-nav')!=='true'&&slider1.getAttribute('data-dots')!=='true'){controls.remove();}if(slider1.getAttribute('data-dots')!=='true'){pagi.remove();}if(slider1.getAttribute('data-nav')!=='true'){navi.remove();}},init:function(){if(slider1.getAttribute('data-autoplay')!=='true'){this.autoplay.stop();}this.update();}},autoplay:{delay:sliderAutoPlayTime,disableOnInteraction:false,reverseDirection:sliderReverseDirection,pauseOnMouseEnter:false},allowTouchMove:sliderAllowTouchMove,speed:parseInt(sliderSpeed),slidesPerView:slidesPerViewInit,loop:sliderLoop,centeredSlides:sliderCentered,spaceBetween:Number(sliderMargin),effect:sliderEffect,autoHeight:sliderAutoHeight,grabCursor:true,resizeObserver:false,updateOnWindowResize:sliderResizeUpdate,breakpoints:breakpointsInit,pagination:{el:carousel[i].querySelector('.swiper-pagination'),clickable:true},navigation:{prevEl:slider1.querySelector('.swiper-button-prev'),nextEl:slider1.querySelector('.swiper-button-next'),},thumbs:{swiper:thumbsInit,},});}}};Drupal.behaviors.martexForms={attach:function(context,settings){}};})(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.