החבילה הפופולרית
.elementor-section-wrap .elementor-menu-toggle '), hamburger_dropdown = document.querySelector('.elementor-location-header > .elementor-section-wrap nav.elementor-nav-menu--dropdown'); // or better - if you will put menu-dbl-click in the id of the element, you can use these two lines instead - /* var hamburger = document.querySelector('.elementor-location-header > .elementor-section-wrap #menu-dbl-click .elementor-menu-toggle'), hamburger_dropdown = document.querySelector('.elementor-location-header > .elementor-section-wrap #menu-dbl-click nav.elementor-nav-menu--dropdown'); */ if(hamburger){ hamburger.addEventListener("click", function() { if (document.querySelector('script[type="rocketlazyloadscript"]')) { this.classList.add("elementor-active"), hamburger_dropdown.style.cssText = 'width: 100vw;top: 60px;' /* // or try this line hamburger_dropdown.style.cssText = 'width:'+window.screen.availWidth+'px;'+'left:'+(-window.screen.availWidth/2.88)+'px;'+'top:'+21+'vw;' */ } } ) } } );
דלג לתוכן