PageSourceSearch

https://www.indenbeer.be/Files/7/111000/111339/Mila_Celebration/Scripts.parsed_224.js

js indenbeer.be collected 2026-09-26 18:09:02 UTC 6,771 bytes, 14 lines download raw bytes

1$(document).ready(function(){setmenuheight();$(window).on('load resize',setmenuheight);function setmenuheight(){const oNav=document.getElementById('m-nav-left');const oCategories=document.querySelector('#m-nav-left .m-categories');if(!oNav||!oCategories||oNav.clientHeight===0){return}
2const iTopWithinNav=oCategories.getBoundingClientRect().top-oNav.getBoundingClientRect().top;const iPaddingBottom=parseFloat($(oNav).css('padding-bottom'))||0;$(oCategories).css('height',(oNav.clientHeight-iTopWithinNav-iPaddingBottom)+'px')}
3$('.m-nav-left-toggle').on('click',function(){$(this).toggleClass('toggled');$('#m-nav-left').toggleClass('toggled');$('.nav-left-enabled').toggleClass('no-scroll')});$('.m-nav-toggle').on('click',function(){$(this).toggleClass('toggled');$('#m-nav ul').toggleClass('toggled')});$('#m-nav .has-sub').each(function(){var itemWidth=($(this).width()-2);$(this).children('ul').css('min-width',itemWidth)});var columns=$('.mega-menu .main-item');var columnCount=columns.length;var clearcolumns=$('<div class="clearcolumns"></div>');if(columnCount<=5){var columnWidth=(100/columnCount)}else if(columnCount==6){var columnWidth=33.3333;clearcolumns.insertAfter(columns.eq(2))}else if(columnCount==7||columnCount==8){var columnWidth=25;clearcolumns.insertAfter(columns.eq(3))}else{var columnWidth=20;clearcolumns.insertAfter(columns.eq(4))}
4columns.css('width',columnWidth+'%');$('#m-nav .m-cat-dropdown, .mega-menu').mouseenter(function(){$('#m-nav .mega-menu').stop().show()});$('#m-nav .m-cat-dropdown, .mega-menu').mouseleave(function(){$('#m-nav .mega-menu').stop().hide()});var footerColumns=$('.m-footer .row > div');if(footerColumns.length>2){$('<div class="clearfix visible-xm visible-sm"></div>').insertAfter(footerColumns.eq(1))}
5$(document).on('click','.m-fcart-button',function(){$('.m-fcart-container').toggleClass('cart-open');$('.m-fcart-overlay').stop().fadeToggle()});$(document).on('click','.m-fcart-overlay',function(){$('.m-fcart-container').removeClass('cart-open');$('.m-fcart-overlay').stop().fadeOut()});if($('body').find('#m-nav').length){var headerHeight=$('#m-header').height();$('div[id^="m-content"]').css('padding-top',(headerHeight));$('.usp-top-sticky').css('padding-top',(headerHeight))}
6$(document).on('click touchstart','.button__expand',function(){$(this).closest('.cs-product').find('.cs-lightbox').fadeIn()});$(document).on('click','.cs-lightbox i',function(){$(this).closest('.cs-lightbox').fadeOut()});function searchShow(){$('#m-nav .m-search').addClass('open');$('#m-nav .m-search-container').addClass('open')}
7function searchHide(){$('#m-nav .m-search').removeClass('open');$('#m-nav .m-search-container').removeClass('open')}
8$('#m-nav .search-toggle').on('click',function(){searchShow()});$('#m-nav .m-search-close').on('click',function(){searchHide()});$('#m-nav-left .m-search').on('click',function(){$(this).closest('.m-icons').addClass('search-toggled')});$('#m-nav-left .m-search-close').on('click',function(){$(this).closest('.m-icons').removeClass('search-toggled')});$('#m-nav-left .has-sub').on('mouseenter',function(){var iTopNavOffset=$('#m-header').height();var iFirstItemOffset=$('#m-nav-left ul li').first().offset().top-$(window).scrollTop();iFirstItemOffset-=iTopNavOffset;$(this).children('ul').css('top',iTopNavOffset);$(this).children('ul').css('height','calc(100vh - '+iTopNavOffset+'px)');$(this).children('ul').css('padding-top',iFirstItemOffset)});$(document).on('mouseenter','#m-nav ul.toggled .has-sub',function(){var itemOffset=$(this).offset().top;var itemPosition=itemOffset-$(document).scrollTop();$(this).children('ul').css('top',itemPosition)});$('#m-nav-top .m-nav-pages-toggle').on('click',function(){$('#m-nav-top .m-nav-pages').toggleClass('show');$(this).toggleClass('toggled')});$('div[class^="ShowProductCategory"]').each(function(){function isEmpty(el){return!$.trim(el.html())}
9if(isEmpty($(this))){$(this).addClass('m-empty')}})});$(document).on('click touchstart',function(e){const lightBoxImage=$('.cs-lightbox img');const lightBoxToggle=$('.button__expand');const lightBoxToggleIcon=$('.button__expand i');if(!lightBoxImage.is(e.target)&&lightBoxImage.has(e.target).length===0&&!lightBoxToggle.is(e.target)&&lightBoxImage.has(e.target).length===0&&!lightBoxToggleIcon.is(e.target)){$('.cs-lightbox').fadeOut()}
10navTopPagesToggle=$('#m-nav-top .m-nav-pages-toggle');navTopPages=$('#m-nav-top .m-nav-pages');if(navTopPagesToggle.hasClass('toggled')){if(!navTopPagesToggle.is(e.target)&&navTopPagesToggle.has(e.target).length===0&&!navTopPages.is(e.target)&&navTopPages.has(e.target).length===0){navTopPagesToggle.removeClass('toggled');navTopPages.removeClass('show')}}
11navToggle=$('.m-nav-toggle');
11navMenu=$('#m-nav ul');if(navToggle.hasClass('toggled')){if(!navToggle.is(e.target)&&navToggle.has(e.target).length===0&&!navMenu.is(e.target)&&navMenu.has(e.target).length===0){navToggle.removeClass('toggled');navMenu.removeClass('toggled')}}
12searchContainer=$('#m-nav-left .m-search-container');navLeftIcons=$('#m-nav-left .m-icons');if(navLeftIcons.hasClass('search-toggled')){if(!navLeftIcons.is(e.target)&&navLeftIcons.has(e.target).length===0){navLeftIcons.removeClass('search-toggled')}}});$(document).ready(function(){$(".hook__open__filters").on('click',function(){$(".cs-filters").slideToggle("slow")});if($('.TotalCount').html()==='0'){$('#QuotationCount').hide()}});var count=0;var NavCatId=0;function ShouldINavigate(iCategoryId){$.browser.device=(/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));if($(window).width()>767&&$.browser.device===!0){if(NavCatId==0){NavCatId=iCategoryId;return!1}else if(NavCatId==iCategoryId){NavCatId=0;return!0}else{NavCatId=iCategoryId;return!1}}else{return!0}}
13const setScrollToTopVisibility=(visible)=>{document.querySelector('[data-scroll-to-top-hook]').style.display=visible?'block':'none'};const scrollToTop=()=>{setScrollToTopVisibility(!1);const productContainerElement=document.querySelector('.page__products');productContainerElement.scrollIntoView({behavior:"smooth",block:"start"})};const toggleScrollToTop=()=>{const productContainerElement=document.querySelector('.page__products');const arrowElement=document.querySelector('.scroll-to-top .arrow-icon');if(productContainerElement&&arrowElement){const isAbove=productContainerElement.getBoundingClientRect().top<0;arrowElement.style.transform=isAbove?'rotate(0deg)':'rotate(180deg)'}
14setScrollToTopVisibility(productContainerElement&&!IsElementVisibleOnScreen(productContainerElement))};window.addEventListener('scroll',()=>{const productContainerElement=document.querySelector('.page__products');if(productContainerElement&&IsElementVisibleOnScreen(productContainerElement)){toggleScrollToTop()}})

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.