1(function($) { 2 fpClient.custom = 3 { 4 loading: function() { 5 var obj = function(){ 6 this.__showCount = 0; 7 var html = '\ 8 <div class="animated-loading"> \ 9 <div class="circle circle-1"></div> \ 10 <div class="circle circle-2"></div> \ 11 <div class="circle circle-3"></div> \ 12 <div class="circle circle-4"></div> \ 13 <div class="circle circle-5"></div> \ 14 <div class="circle circle-6"></div> \ 15 <div class="circle circle-7"></div> \ 16 <div class="circle circle-8"></div> \ 17 </div> \ 18 ' 19 this.$element = $(html); 20 }; 21 obj.prototype.show = function(options) { 22 if(this.__showCount == 0) { 23 this.$element.removeAttr('style'); 24 var appendTo = document.body; 25 if(typeof(options) == 'object') { 26 if(options.jquery) { 27 appendTo = options; 28 } 29 else { 30 if(options.appendTo) { 31 appendTo = options.appendTo; 32 } 33 if(options.css) { 34 this.$element.css(options.css); 35 } 36 } 37 } 38 this.$element.appendTo(appendTo); 39 } 40 this.$element.show(); 41 this.__showCount++; 42 }; 43 obj.prototype.hide = function(force) { 44 if(force && this.__showCount > 1) { 45 this.__showCount = 1; 46 } 47 if(this.__showCount > 0) { 48 this.__showCount--; 49 if(this.__showCount == 0) { 50 this.$element.appendTo(document.body).hide(); 51 } 52 } 53 }; 54 obj.prototype.isShown = function() { 55 return this.__showCount > 0; 56 }; 57 return new obj(); 58 } 59 }; 60})(jQuery); 61
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.