PageSourceSearch

https://seedeffect.org/wp-content/plugins/divi-mobile-menu/assets/js/main.js?ver=1.0

js seedeffect.org collected 2026-10-07 21:02:18 UTC 7,932 bytes, 1 lines download raw bytes

1;(function($,window,document,undefined){'use strict';window.addEventListener("load",function(){$.divimobilemenu()});$.divimobilemenu=function(options){if(typeof options==='undefined'){options=[]}const $divimobilemenu=$('.divi-mobile-menu'),$parentWrapper=$divimobilemenu.parent().parent().parent();if($divimobilemenu.hasClass('dmm-initialized')){return}$divimobilemenu.detach();$parentWrapper.prepend($divimobilemenu);const body=$('body'),$defaultNavbar=$divimobilemenu.find('.navbar'),$defaultToggler=$divimobilemenu.find('.navbar-toggler'),$defaultClose=$divimobilemenu.find('.btn-close'),$defaultDiviMobileMenuWrapper=($('#et_mobile_nav_menu').length>0?$('#et_mobile_nav_menu'):$('.et_mobile_nav_menu')),$defaultDiviMobileMenuBarIcon=$('.mobile_menu_bar:before'),$defaultDiviMobileMenuBarToggle=$('.mobile_menu_bar'),$defaultDiviETmobileMenu=$('.et_mobile_menu'),idSelector='#divimobilemenu',cssSelector=$divimobilemenu.attr('data-dmmcssselector'),$customToggle=$(cssSelector),preventScroll=$divimobilemenu.attr('data-dmmpreventscroll'),fullWidthHeight=$divimobilemenu.attr('data-fullwidthheight'),defaults={appendTo:body,triggerTarget:'',wrapperAttrs:{class:''},title:'',content:'',footer:'',onShow:null,onHide:null},settings=$.extend(true,{},defaults,options),animationEndList=['webkitAnimationEnd','mozAnimationEnd','MSAnimationEnd','oanimationend','animationend'],animateCSS=(element,animation,prefix='animate__')=>new Promise((resolve,reject)=>{const animationName=`${ prefix }${ animation }`;const node=(typeof element==='object'?element:document.querySelector(element));node.classList.add(`${ prefix }animated`,animationName);function handleAnimationEnd(event){event.stopPropagation();node.classList.remove(`${ prefix }animated`,animationName);resolve('Animation ended')}animationEndList.forEach((animation,index)=>{node.addEventListener(animation,handleAnimationEnd,{once:true})})});if($('.divi-mobile-menu #divimobilemenu').length===0){return}const modal=new dmmrobootstrap.Modal(idSelector,{}),$dmmModal=$divimobilemenu.find('.dmm-modal');$divimobilemenu.addClass('dmm-initialized');let isDefault=true;if($customToggle.length>0){$customToggle.off();$customToggle.attr('data-bs-toggle','dmm-modal');$customToggle.attr('data-bs-target','#divimobilemenu')}if($defaultDiviETmobileMenu.length>0){if($divimobilemenu.hasClass('dmm-defaultdivimenu')){setTimeout(()=>{let $defaultDiviETmobileMenuClone=$defaultDiviETmobileMenu.clone(true);$defaultDiviETmobileMenuClone.addClass('divimobilemenu-etmenuclone');$defaultDiviETmobileMenuClone.prependTo('.dmm-modal-body > div > .et_pb_section');$defaultDiviETmobileMenu.remove();modal.handleUpdate()},1000)}$defaultNavbar.prependTo($defaultDiviMobileMenuWrapper);$defaultNavbar.addClass('mobile_nav');if($defaultDiviMobileMenuBarToggle.length>0){let CSSattr=$defaultDiviMobileMenuBarToggle.attr('class');$defaultToggler.addClass(CSSattr);$defaultDiviMobileMenuBarToggle.remove()}}if($defaultDiviMobileMenuBarToggle.length>0){settings.triggerTarget=$defaultDiviMobileMenuBarToggle}else if($defaultDiviMobileMenuBarIcon.length>0){settings.triggerTarget=$defaultDiviMobileMenuBarIcon}if(settings.triggerTarget.length===0){return}let $toggler=settings.triggerTarget;$toggler.off();if($dmmModal.length>0){const modal_observeConfig={attributes:false,childList:true,subtree:true},modal_callback=function(mutationsList,observer){mutationsList.forEach(function(mutation){if(mutation.type==='childList'){modal.handleUpdate()}})},modal_observer=new MutationObserver(modal_callback),modal_wrapper=$dmmModal[0],modal_animation=function(modalTarget,event,type){let animationIn=modalTarget.parent().attr('data-dmm-animationin'),animationInSpeed=modalTarget.parent().attr('data-dmm-animationspeedin'),animationOut=modalTarget.parent().attr('data-dmm-animationout'),animationOutSpeed=modalTarget.parent().attr('data-dmm-animationspeedout'),modalDialog=modalTarget.find('.dmm-modal-body');if(type==='show'){modalDialog.css('cssText','animation-duration: '+animationInSpeed+'s !important;');animateCSS(modalDialog[0],animationIn).then((message)=>{})}if(type==='hide'){modalDialog.css('cssText','animation-duration: '+animationOutSpeed+'s !important;');animateCSS(modalDialog[0],animationOut).then((message)=>{modal.realhide()})}};modal_wrapper.addEventListener('show.bs.dmm-modal',event=>{let pThis=$(event.target),dialog=pThis.find('.dmm-modal-dialog'),dmmId=pThis.parent().attr('id');setPointOfOrigin(dmmId);modal_animation(pThis,event,'show')});modal_wrapper.addEventListener('hide.bs.dmm-modal',event=>{let pThis=$(event.target);modal_animation(pThis,event,'hide');pThis.addClass('show')});modal_wrapper.addEventListener('shown.bs.dmm-modal',event=>{$defaultClose.focus();modal_observer.observe(modal_wrapper,modal_observeConfig)});modal_wrapper.addEventListener('hidden.bs.dmm-modal',event=>{modal_observer.disconnect()})}function setPointOfOrigin(dmmId){let responsive=dmm_globalresponsivevalues,CSSidRef='';if(typeof dmmId!=='undefined'&&dmmId!==''){CSSidRef='#'+dmmId}let dmms=$(CSSidRef+'.divi-mobile-menu').filter(":visible");if(dmms.length){$.each(dmms,function(elem,selector){let dmm=$(this),dmmId=dmm.attr('id'),modal=dmm.find('.dmm-modal-dialog'),stylesTag=$('style.dmm-styles-'
1+dmmId);if(stylesTag.contents().length===0){let CSSmediaRef='@media (min-width: '+responsive.min_width+'px) {',pointOfOriginRef='data-dmm-pointoforigin',styles='';styles=styles+applyPointOfOriginStyles(dmm,dmmId,CSSmediaRef,pointOfOriginRef);CSSmediaRef='@media (max-width: '+responsive.tablet_width+'px) and (min-width: '+(responsive.phone_width+1)+'px){';pointOfOriginRef='data-dmm-pointoforigin_tablet';styles=styles+applyPointOfOriginStyles(dmm,dmmId,CSSmediaRef,pointOfOriginRef);CSSmediaRef='@media (max-width: '+responsive.phone_width+'px){';pointOfOriginRef='data-dmm-pointoforigin_phone';styles=styles+applyPointOfOriginStyles(dmm,dmmId,CSSmediaRef,pointOfOriginRef);stylesTag.html(styles)}})}}function applyPointOfOriginStyles(elem,elemId,CSSmediaRef,pointOfOriginRef){let styles=CSSmediaRef;let pointoforigin=elem.attr(pointOfOriginRef),top,left=0,cssSelector='#'+elemId+' .dmm-modal-dialog',returnStyles=false;pointoforigin=pointoforigin.split('_');if(pointoforigin[0]==='center'||pointoforigin[1]==='center'){styles=styles+cssSelector+'{ display: flex;';if(pointoforigin[0]==='center'&&pointoforigin[1]==='center'){styles=styles+' align-items: center;'}styles=styles+'min-height: calc(100% - var(--bs-dmm-modal-margin) * 2); }';if(pointoforigin[0]==='top'){styles=styles+cssSelector+'{ margin-top:0 !important;margin-bottom:auto !important; }'}if(pointoforigin[0]==='bottom'){styles=styles+cssSelector+'{ margin-top:auto !important;margin-bottom:0 !important; }'}if(pointoforigin[1]==='left'){styles=styles+cssSelector+'{ margin-left:0px !important;margin-right:auto !important; }'}if(pointoforigin[1]==='right'){styles=styles+cssSelector+'{ margin-left:auto !important;margin-right:0 !important; }'}returnStyles=true}if(pointoforigin[0]==='top'&&pointoforigin[1]==='left'){styles=styles+cssSelector+'{ margin-top:0 !important; margin-right:auto !important; margin-bottom:auto !important; margin-left:0 !important; }';returnStyles=true}if(pointoforigin[0]==='top'&&pointoforigin[1]==='right'){styles=styles+cssSelector+'{ margin-top:0 !important; margin-right:0 !important; margin-bottom:auto !important; margin-left:auto !important; }';returnStyles=true}if(pointoforigin[0]==='bottom'&&pointoforigin[1]==='left'){styles=styles+cssSelector+'{ margin-top:auto !important; margin-right:auto !important; margin-bottom:0 !important; margin-left:0 !important; }';returnStyles=true}if(pointoforigin[0]==='bottom'&&pointoforigin[1]==='right'){styles=styles+cssSelector+'{ margin-top:auto !important; margin-right:0 !important; margin-bottom:0 !important; margin-left:auto !important; }';returnStyles=true}if(returnStyles===true){styles=styles+'}'}else{styles=''}return styles}}})(jQuery,window,document);

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.