1( function( $, elementor ) { 2 3 $( window ).on( 'elementor/frontend/init', function (){ 4 elementor.hooks.addAction( 'frontend/element_ready/kitify-sidebar.default', function ( $scope ){ 5 if ( $scope.data( 'initialized' ) ) { 6 return; 7 } 8 $scope.data( 'initialized', true ); 9 var _has_mobile_bkp = false; 10 if($scope.find('.kitify-toggle-sidebar').length){ 11 _has_mobile_bkp = $scope.find('.kitify-toggle-sidebar').data('breakpoint'); 12 } 13 function checkActiveToggle(){ 14 if(_has_mobile_bkp !== false && $(window).width() <= _has_mobile_bkp){ 15 $scope.find('.kitify-toggle-sidebar').addClass('kitify-active-sidebar-toggle'); 16 } 17 else{ 18 $scope.find('.kitify-toggle-sidebar').removeClass('kitify-active-sidebar-toggle'); 19 } 20 } 21 checkActiveToggle(); 22 $(window).on('resize', checkActiveToggle); 23 $(document).on('click', '.js-column-toggle', function() { 24 $('body').toggleClass('toogle-opened'); 25 $('.kitify-toggle-sidebar').toggleClass('opened'); 26 }); 27 }); 28 elementor.hooks.addAction( 'frontend/element_ready/kitify-wooproducts.default', function ( $scope ){ 29 _has_btn_bkp = false; 30 if($scope.find('.nova-product-filter').length){ 31 _has_btn_bkp = $scope.find('.nova-product-filter').data('breakpoint'); 32 } 33 function checkActiveToggle(){ 34 if(_has_btn_bkp !== false && $(window).width() <= _has_btn_bkp){ 35 $scope.find('.nova-product-filter').addClass('kitify-active-sidebar-toggle'); 36 } 37 else{ 38 $scope.find('.nova-product-filter').removeClass('kitify-active-sidebar-toggle'); 39 } 40 } 41 checkActiveToggle(); 42 $(window).on('resize', checkActiveToggle); 43 }); 44 45 }); 46 47}( 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.