PageSourceSearch

https://www.aunomdelarose.fr/Assets/266382/Theme/Project/Anr/js/menu.js

js aunomdelarose.fr collected 2026-10-02 12:09:18 UTC 3,258 bytes, 13 lines download raw bytes

1$(document).ready(function(){checkScrollLevel();scrollAppear();$(window).scroll(function(){scrollAppear();checkScrollLevel();});$('.navbar-action').on('click',function(){$('html').toggleClass('navbar-open');});if($(window).width()<992){$(".header-main").addClass("open");}
2advancedDropdownMenu();linkEvent();});function scrollAppear(){var e=$(window).height(),i=$(window).scrollTop(),n=i+e;sliderHp=$(".slider-hp");if(sliderHp.length){setTimeout(function(){sliderHp.addClass("in-view");},100);};$(".block.smooth").each(function(){var t=$(this);var th=t.offset().top;if(th<=n){var e=$(this);setTimeout(function(){t.addClass("in-view")},100*t);}});}
3function checkScrollLevel(){$scroll=$(this).scrollTop();$scroll>=50?$('body').addClass('header-stack'):$('body').removeClass('header-stack');$scroll>300?$('.gototop').addClass('active'):$('.gototop').removeClass('active');}
4function advancedDropdownMenu(){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||$(window).width()<992){isMobile=true;}
5menuContainer=$('header .navbar');menuMobileBtn=$('.navbar-action');menu=$('ul.navbar-content');menuBtnClose=menu.prev('.navbar-close').children('i');menuLinks=menu.find('.navbar-root-link');menuMobileBtn.on('click',function(e){e.preventDefault();if($(window).width()<992){$('html').toggleClass('noScroll');}
6menuContainer.toggleClass('open');});menuBtnClose.on('click',function(e){e.preventDefault();if($(window).width()<992){$('html').removeClass('noScroll');}
7menuContainer.removeClass('open');});menuLinks.on('click',function(e){that=$(this);submenu=that.parent().next('.submenu')
8hasSubMenu=submenu.length?true:false;subMenuLinks=submenu.find('li');backLink=submenu.find('.close-tab');if(isMobile&&hasSubMenu){e.preventDefault();$('.navbar-universe-link').on('click',function(){href=$(this).attr('href');if(href&&href!='undefined'){window.location.href=href;}});}
9that.parent().parent().toggleClass('open');subMenuLinks.on('click',function(e){e.stopImmediatePropagation();});backLink.off('click').on('click',function(e){e.preventDefault();e.stopImmediatePropagation();that.removeClass('open');});});menu.on('click',function(e){e.stopImmediatePropagation();});$(document).on('click','.mainmenu.open',function(){$('body').removeClass('navbar-open');$('html').removeClass('noScroll');$('.navbar-root-item.open').removeClass('open');menuContainer.removeClass('open');});}
10function linkEvent()
11{$('.js-arrow-anchor').on('click',function(){featuredProduct=$('.featured-products');if(featuredProduct.length){$('html, body').animate({scrollTop:featuredProduct.offset().top-165},600);}})
12$('.page-heading-category .btn-link').on('click',function(e){e.preventDefault();$('html, body').animate({scrollTop:$('#page-footer-category').offset().top-180},600);})
13$('.navbar-action').on('click',function(){menu=$('.header-main .mainmenu');menu.toggleClass('shown');});$('.search-action').on('click',function(){$('.header-main .header-top').toggleClass('search-open');$('.header-main .header-top .search-action .icon').toggleClass('icon-search icon-cross');});$('.gototop').on('click',function(){$('html, body').animate({scrollTop:0},600);});$('.footer-middle-item h3').on('click',function(){$(this).parent().toggleClass('open');});}

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.