1(function( $window, $document, $ ){ 2 var loadingBar = ( function(){ 3 4 function Init(){ 5 create(); 6 addEvent(); 7 } 8 9 10 var _$wrap; 11 var _$loading = null; 12 13 function create(){ 14 _$wrap = $('#wrap'); 15 } 16 17 function addEvent(){ 18 $( document ).ajaxStart(showLoading); 19 $( document ).ajaxStop(hideLoading); 20 } 21 22 function showLoading() { 23 if( _$loading == null ){ 24 _$loading = $('<div />').addClass('loading_bar').appendTo(_$wrap); 25 } 26 27 _$loading.fadeIn(); 28 } 29 30 function hideLoading() { 31 if( _$loading ){ 32 _$loading.fadeOut(400); 33 } 34 } 35 36 37 return{ 38 Init:Init, 39 showLoading : showLoading, 40 hideLoading : hideLoading 41 }; 42 43 })(); 44 45 $( $document ).ready( function(){ 46 App.loadingBar = loadingBar; 47 App.loadingBar.Init(); 48 }); 49 50})( window, document, jQuery ); 51
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.