PageSourceSearch

https://www.montpellier-rugby.com/wp-content/litespeed/js/be801811fd1eed26750a74252caac010.js?ver=b8989

js montpellier-rugby.com collected 2026-10-02 10:33:36 UTC 4,656 bytes, 21 lines download raw bytes

1jQuery(document).ready(function($){if($('.slider').length){$('.slider').slick()}
2$('.wp-block-gallery').each(function(index){$(this).find(`
3      a[href*=".jpg"], a[href*=".jpeg"], a[href*=".png"], a[href*=".gif"], a[href*=".webp"], a[href*=".svg"], a[href*=".ico"],
4      a[href*=".JPG"], a[href*=".JPEG"], a[href*=".PNG"], a[href*=".GIF"], a[href*=".WEBP"], a[href*=".SVG"], a[href*=".ICO"]
5      `).attr('data-fancybox','gallery-'+index)});if($('[data-fancybox]').length){$('[data-fancybox]').fancybox()}
6if($('[data-toggle]').length){$('[data-toggle]').on('click',function(e){e.preventDefault();let selector=$(this).data('toggle');$(selector).slideToggle();$(this).toggleClass('opened')})}
7setVw();window.addEventListener('resize',setVw);function setVw(){let vw=document.documentElement.clientWidth/100;document.documentElement.style.setProperty('--vw',`${vw}px`)}
8$('.navigation-toggler').on('click',function(){$('body').toggleClass('js-navigation-opened')});$('.navigation li.menu-item-has-children').on('click',function(e){e.stopPropagation();$(this).find('> .sub-menu').toggleClass('active')});$('.navigation a[href*="#"]').on('click',function(e){$('body').toggleClass('js-navigation-opened')});let throttleTimer;function elementInView(el,dividend=1){const elementTop=el.getBoundingClientRect().top;return(elementTop<=(window.innerHeight||document.documentElement.clientHeight)/dividend)}
9function scrollAnimation(){document.querySelectorAll(".js-scroll").forEach((el)=>{if(elementInView(el,1.25)){el.classList.add("scrolled")}else{el.classList.remove("scrolled")}})}
10function counterAnimation(){document.querySelectorAll(".counter:not(.animated)").forEach((el)=>{if(elementInView(el,1.1)){el.classList.add("animated");let $this=$(el);let counterText=$this.text();let hasVirgule=counterText.includes(',');if(hasVirgule){counterText=counterText.replace(',','.')}
11let nbAfterVirgule=counterText.length-counterText.indexOf(".")-1;$({counter:0}).animate({counter:counterText},{duration:3000,easing:'swing',step:function(){if(counterText.includes('.')){let val=this.counter.toFixed(nbAfterVirgule);if(hasVirgule){val=val.replace('.',',')}
12$this.text(val)}else{$this.text(Math.ceil(this.counter))}}})}})}
13window.addEventListener("scroll",()=>{if(window.matchMedia('(min-width:1200px)').matches){if(throttleTimer)return;throttleTimer=!0;setTimeout(()=>{scrollAnimation();counterAnimation();throttleTimer=!1},250)}});scrollspy();$(window).bind('scroll',function(){scrollspy()});function scrollspy(){var currentTop=$(window).scrollTop();var elems=$('.layout-content > div[id], #top');elems.each(function(index){var elemTop=$(this).offset().top;if($('body.js-header-sticky').length){elemTop-=$('.layout-header').height()}
14var elemBottom=elemTop+$(this).height();if(currentTop>=(elemTop-100)&&currentTop<=elemBottom){var id_section=$(this).attr('id');var navElem=$('a[href$="#'+id_section+'"]');navElem.parent().addClass('current-anchor').siblings().removeClass('current-anchor')}})}
15if($('body.is-sticky').length){let previousScrollTop=0;let stickyNavTop=$('.layout-wrapper > header').outerHeight(!0);function stickyNav(){let scrollTop=$(window).scrollTop();if(scrollTop>stickyNavTop){$('body').addClass('is-scroll-over-header')}else{$('body').removeClass('is-scroll-over-header')}
16if(scrollTop<previousScrollTop){$('body').addClass('is-scroll-up');$('body').removeClass('is-scroll-down')}else if(scrollTop>previousScrollTop){$('body').addClass('is-scroll-down');$('body').removeClass('is-scroll-up')}else{$('body').removeClass('is-scroll-up');$('body').removeClass('is-scroll-down')}
17previousScrollTop=scrollTop}
18stickyNav();$(window).scroll(function(){stickyNav()})}
19$(window).scroll(function(){if($(this).scrollTop()>200){$('.btn-go-top').fadeIn()}else{$('.btn-go-top').fadeOut()}});$('.search-btn').on('click',function(){$('body').toggleClass('js-search-opened')});$('.search-form > button').on('click',function(){$('body').removeClass('js-search-opened')});$('.tabs').each(function(){var $tab=$(this);var $tabcontent=$tab.next();if($tab.is(":visible")){$tabcontent.addClass('has-tabs');$tabcontent.find('[data-cat]:visible:last').addClass('last');$tab.find('button, a').on('click',function(){var choosenCat=$(this).parent().attr('data-cat');var $items=$tabcontent.find('[data-cat]');
19$items.removeClass('last');if(choosenCat=='all'){$items.fadeIn()}else{$items.hide();$items.each(function(){var categories_item=$(this).attr('data-cat').split(';');if(categories_item.indexOf(choosenCat)>=0){$(this).fadeIn()}})}
20$tabcontent.find('[data-cat]:visible:last').addClass('last');$tab.find('li').removeClass('active');$(this).parent().addClass('active')})}})})
21;

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.