1( function( $, elementor ) { 2 3 "use strict"; 4 5 $( window ).on( 'elementor/frontend/init', function (){ 6 elementor.hooks.addAction( 'frontend/element_ready/kitify-nova-menu.default', function ( $scope ){ 7 if ( $scope.data( 'initialized' ) ) { 8 return; 9 } 10 11 $scope.data( 'initialized', true ); 12 13 var mobileActiveClass = 'kitify-mobile-menu-active', 14 _has_mobile_bkp = false; 15 16 if($scope.find('.kitify-nova-mobile-menu').length){ 17 _has_mobile_bkp = $scope.find('.kitify-nova-mobile-menu').data('mobile-breakpoint'); 18 } 19 20 function checkActiveMobileTrigger(){ 21 if(_has_mobile_bkp !== false && $(window).width() <= _has_mobile_bkp){ 22 $scope.find('.kitify-nova-mobile-menu').addClass('kitify-active--mbmenu'); 23 } 24 else{ 25 $scope.find('.kitify-nova-mobile-menu').removeClass('kitify-active--mbmenu'); 26 } 27 } 28 checkActiveMobileTrigger(); 29 $(window).on('resize', checkActiveMobileTrigger); 30 31 } ); 32 } ); 33 34}( jQuery, window.elementorFrontend ) );
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.