1(function($, undefined) { 2 3 $.nette.ext('spinner', { 4 init: function () { 5 this.spinner = this.createSpinner(); 6 this.spinner.appendTo('body'); 7 }, 8 start: function () { 9 this.counter++; 10 if (this.counter === 1) { 11 this.spinner.show(this.speed); 12 } 13 }, 14 complete: function () { 15 this.counter--; 16 if (this.counter <= 0) { 17 this.spinner.hide(this.speed); 18 } 19 } 20 }, { 21 createSpinner: function () { 22 return $('<div>', { 23 id: 'ajax-spinner', 24 css: { 25 display: 'none' 26 } 27 }); 28 }, 29 spinner: null, 30 speed: undefined, 31 counter: 0 32 }); 33 34})(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.