PageSourceSearch

https://www.ville-rodez.fr/cache/min/1/plugins/lae-elementor-widge…/js/lae-menu-courant.js?ver=1790839446

js ville-rodez.fr collected 2026-10-02 07:05:42 UTC 1,450 bytes, 2 lines download raw bytes

1(function($){var MenuCourant=function($scope){this.$scope=$scope;this.mode=$('body').attr('data-elementor-device-mode');this.sliderID='h_mc';this.slider=null;this.initialized=!1;this.$swiperContainer=this.$scope.find('.swiper-container');this.offsetTop=this.$swiperContainer.offset().top;this.isSticky=!1;this.initialize()};MenuCourant.prototype.initialize=function(){var that=this;this.initialized=!0;var $liActif=this.$scope.find('.lae-menu-courant a[aria-current="page"]').first().parent();var indexActif=$liActif?$liActif.index():null;this.$scope.find('.nxt').addClass('nxt'+that.sliderID);this.$scope.find('.prv').addClass('prv'+that.sliderID);this.$swiperContainer.attr('id',that.sliderID);this.options={slidesPerView:'auto',navigation:{nextEl:'.nxt'+that.sliderID,prevEl:'.prv'+that.sliderID,},spaceBetween:0,freeMode:!0,};this.slider=new Swiper('#'+that.sliderID,that.options);if(indexActif){this.slider.slideTo(indexActif)}
2window.addEventListener('scroll',function(){that.onscroll()})};MenuCourant.prototype.onscroll=function(){if(window.pageYOffset>=this.offsetTop&&!this.isSticky){this.$scope.addClass("sticky-mc");this.$scope.closest('section').addClass("sticky-section");this.isSticky=!0}else if(window.pageYOffset<this.offsetTop&&this.isSticky){this.$scope.removeClass("sticky-mc");this.$scope.closest('section').removeClass("sticky-section");this.isSticky=!1}};$(function(){$scope=$('header.h--mg');new MenuCourant($scope)})})(jQuery)

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.