PageSourceSearch

https://neocity.fr/wp-content/cache/min/1/wp-content/themes/jupite…ponsive-6be46284e929eaf97c1c3e4f0680b3e1.js

js neocity.fr collected 2026-10-01 14:17:04 UTC 7,024 bytes, 22 lines download raw bytes

1(function($){'use strict';window.MK=window.MK||{};MK.HB=MK.HB||{};$('.mkhb-navigation-resp__arrow').stop(!0).on('click',function(e){e.preventDefault();var $this=$(this);if($this.hasClass('mkhb-navigation-resp__sub-closed')){$this.siblings('ul').slideDown(450).end().removeClass('mkhb-navigation-resp__sub-closed').addClass('mkhb-navigation-resp__sub-opened')}else{$this.siblings('ul').slideUp(450).end().removeClass('mkhb-navigation-resp__sub-opened').addClass('mkhb-navigation-resp__sub-closed')}});var $window=$(window);var $body=$('body');var $resMenuWrap=$('.mkhb-navigation-resp__wrap');var $resMenuLink=$('.mkhb-navigation-resp__container');var $resSubMenuLink=$('.mkhb-navigation-resp__arrow');var $bottomCorner=$('.bottom-corner-btns.js-bottom-corner-btns');var hasResMenu=($resMenuWrap.length>0);var windowHeight=$window.height();var screenHeight=screen.height;if(!hasResMenu)return;function toggleResMenu(e){e.preventDefault();var container=$(this);var $this=container.parent();var device=$this.data('device');if(device==='desktop'){return}
2var $parentID=$this.parent().attr('id');var $headerInner=$this.parents('header');var $resMenu=$headerInner.find('#'+$parentID+'-wrap.mkhb-navigation-resp__wrap');var searchBox=$('.mkhb-navigation-resp__searchform .text-input');var adminBarHeight=$('#wpadminbar').height();var fixedStickyActive=!1;var $stickyHeader=$this.parents('.mkhb-sticky');var currentScroll=0;if($stickyHeader.length>0){var currentScroll=$window.scrollTop();fixedStickyActive=!0}
3var $fixedHeader=$this.parents('.mkhb-fixed');if($fixedHeader.length>0){fixedStickyActive=!0}
4var checkContainer=$('.mkhb-'+device);var checkRespMenu=checkContainer.find('.mkhb-navigation-resp');if(checkRespMenu.length>0){checkRespMenu.each(function(){var $menu=$(this);var $parentMenu=$menu.parent().attr('id');if($parentID==$parentMenu){return}
5var $menuWrap=$headerInner.find('#'+$parentMenu+'-wrap.mkhb-navigation-resp__wrap');if($body.hasClass('mkhb-navigation-resp--opened-'+$parentMenu)){$menu.removeClass('is-active').find('.mkhb-navigation-resp__container').removeClass('fullscreen-active');$body.removeClass('mkhb-navigation-resp--opened-'+$parentMenu).addClass('mkhb-navigation-resp--closed-'+$parentMenu).trigger('mkhb-navigation-resp--closed-'+$parentMenu);$menuWrap.hide()}});if(currentScroll>0){window.scrollTo(0,currentScroll)}}
6if($body.hasClass('mkhb-navigation-resp--opened-'+$parentID)){$this.removeClass('is-active').find('.mkhb-navigation-resp__container').removeClass('fullscreen-active');$body.removeClass('mkhb-navigation-resp--opened-'+$parentID).addClass('mkhb-navigation-resp--closed-'+$parentID).trigger('mkhb-navigation-resp--closed-'+$parentID);$resMenu.hide();if(fixedStickyActive){$bottomCorner.show()}}else{$this.addClass('is-active').find('.mkhb-navigation-resp__container').addClass('fullscreen-active');$body.removeClass('mkhb-navigation-resp--closed-'+$parentID).addClass('mkhb-navigation-resp--opened-'+$parentID).trigger('mkhb-navigation-resp--opened-'+$parentID);$resMenu.show();if(fixedStickyActive){$bottomCorner.hide()}}
7stickyFixedScrollable($this,$resMenu);if(searchBox.hasClass('input-focused')){searchBox.removeClass('input-focused')}}
8$resMenuLink.each(function(){$(this).on('click',toggleResMenu)});function toggleResSubMenu(e){var $this=$(this);var respMenu=$this.parents('.mkhb-navigation-resp__wrap');var respIDRaw=respMenu.attr('id');var respID=respIDRaw.replace('-wrap','');var respButton=$('#'+respID);setTimeout(function(){stickyFixedScrollable(respButton,respMenu)},300)}
9$resSubMenuLink.each(function(){$(this).on('click',toggleResSubMenu)});function stickyFixedScrollable(respButton,respMenu){var stickyHeader=respButton.parents('.mkhb-sticky');var fixedHeader=respButton.parents('.mkhb-fixed');var headerContHeight=0;if(stickyHeader.length>0){headerContHeight=stickyHeader.height()}else if(fixedHeader.length>0){headerContHeight=fixedHeader.height()}
10if(headerContHeight<1){return}
11respMenu.css({'height':'auto'});var adminBarHeight=$('#wpadminbar').height();var respMenuHeight=respMenu.height();var headerHeight=adminBarHeight+headerContHeight+respMenuHeight;var winHeight=window.innerHeight?window.innerHeight:windowHeight;if(headerHeight>winHeight){var newRespHeight=winHeight-adminBarHeight-headerContHeight;respMenu.css({'height':newRespHeight+'px',}).children().css({'height':'100%','overflow':'scroll',})}else{respMenu.css({'height':'auto',}).children().removeAttr('style')}}
12var setResMenuHeight=function(){var height=$window.height()-MK.HB.val.offsetHeaderHeight(0);$resMenuWrap.css('max-height',height)};var isVirtualKeyboard=function(){var currentWindowHeight=$window.height();var currentScreenHeight=screen.height;var searchBox=$('.mkhb-navigation-resp__searchform .text-input');var searchBoxIsFocused=!1;searchBox.on('touchstart touchend',function(e){searchBox.addClass('input-focused')});searchBoxIsFocused=(searchBox.is(':focus')||searchBox.hasClass("input-focused"));if($body.hasClass('[class^="mkhb-navigation-resp--opened"]')&&searchBoxIsFocused&&currentScreenHeight==screenHeight&&currentWindowHeight!=windowHeight){return!0}else{return!1}};
12var hideResMenu=function hideResMenu(){if(MK.HB.utils.isResponsiveMenuState()){if(!isVirtualKeyboard()){if($body.hasClass('[class^="mkhb-navigation-resp--opened"]')){$resMenuLink.filter('.is-active').trigger('click')}
13$resMenuWrap.hide()}}};$resMenuWrap.on('click','a',hideResMenu);var headerOverlap=$('.mkhb-overlap');var headerFixed=$('.mkhb-fixed');var headerSticky=$('.mkhb-sticky');var hasOverlap=(headerOverlap.length>0);var hasFixed=(headerFixed.length>0);var hasSticky=(headerSticky.length>0);var renderedStyle=[];if(!hasOverlap&&!hasSticky&&!hasFixed){return}
14var repositionRespNav=function repositionRespNav(){var parent=$('.hb-devices');var container=$(this);var device=container.data('device');var workspace=container.data('workspace');var fixed=container.hasClass('mkhb-fixed--filled');var combine=workspace+'-'+device;var top=$('#wpadminbar').height();top=(top==null)?0:top;if(device==='desktop'||renderedStyle.indexOf(combine)>-1){return}
15var height=container.find('.mkhb-device-container').height();if(height<=0){return}
16var style={};var target='';if(workspace==='normal'&&!fixed){style.position='absolute';style.height='auto';style.top=height+'px';target='.mkhb-navigation-resp__'+workspace+'.mkhb-navigation-resp__'+device}else{style.position='fixed';style.height='auto';style.top=(top+height)+'px';target='.mkhb-navigation-resp__'+workspace+'.mkhb-navigation-resp__'+device}
17if(!style||!target){return}
18parent.find(target).css(style);renderedStyle.push(combine)}
19var setPositionRespNav=function setPositionRespNav(){if(renderedStyle.length<4){var headerContainer='';if(hasOverlap){$('.mkhb-overlap').each(repositionRespNav)}
20if(hasFixed){$('.mkhb-fixed').each(repositionRespNav)}
21if(hasSticky){$('.mkhb-sticky').each(repositionRespNav)}}}
22$window.on('load',setPositionRespNav);$window.on('resize',setPositionRespNav);if(hasSticky){$window.on('scroll',setPositionRespNav)}}(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.