1(function($){ 2 3 NodeVisibility = { 4 init: function() 5 { 6 NodeVisibility._checkingVisibility(); 7 8 $(window).on('resize', NodeVisibility._checkingVisibility); 9 }, 10 11 _checkingVisibility: function() 12 { 13 if( $('body').hasClass('fl-builder-edit') ) 14 { 15 $('.check-breakpoint').removeClass('bbsui-visibility-hidden'); 16 return; 17 } 18 19 var winW = $(window).width(); 20 if( $('.check-breakpoint').length > 0 ) 21 { 22 $('.check-breakpoint').each(function(){ 23 var minW = ( ( $(this).attr('data-min-width') ) ? $(this).data('min-width') : 0 ), 24 maxW = ( ( $(this).attr('data-max-width') ) ? $(this).data('max-width') : 9999 ); 25 26 if( winW >= parseInt(minW) && winW <= parseInt(maxW) ) 27 { 28 $(this).removeClass('bbsui-visibility-hidden'); 29 } else { 30 $(this).addClass('bbsui-visibility-hidden'); 31 } 32 }); 33 } 34 } 35 }; 36 37 MobileAnimation = { 38 init: function() 39 { 40 if(typeof jQuery.fn.waypoint !== 'undefined' && 0 === $('.fl-builder-edit').length && FLBuilderLayout._isMobile()) { 41 $('.fl-animation').each( function() { 42 var node = $( this ), 43 nodeTop = node.offset().top, 44 winHeight = $( window ).height(), 45 bodyHeight = $( 'body' ).height(), 46 offset = '80%'; 47 48 if ( bodyHeight - nodeTop < winHeight * 0.2 ) { 49 offset = '100%'; 50 } 51 52 node.waypoint({ 53 offset: offset, 54 handler: FLBuilderLayout._doModuleAnimation 55 }); 56 } ); 57 } 58 } 59 }; 60 61 $(function(){ 62 MobileAnimation.init(); 63 NodeVisibility.init(); 64 }); 65 66})(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.