vendor: 1,373 bytes, lines 1-59
1(function ($) { 2 3 var divs = { 4 'ball-pulse': 3, 5 'ball-grid-pulse': 9, 6 'ball-clip-rotate': 1, 7 'ball-clip-rotate-pulse': 2, 8 'square-spin': 1, 9 'ball-clip-rotate-multiple': 2, 10 'ball-pulse-rise': 5, 11 'ball-rotate': 1, 12 'cube-transition': 2, 13 'ball-zig-zag': 2, 14 'ball-zig-zag-deflect': 2, 15 'ball-triangle-path': 3, 16 'ball-scale': 1, 17 'line-scale': 5, 18 'line-scale-party': 4, 19 'ball-scale-multiple': 3, 20 'ball-pulse-sync': 3, 21 'ball-beat': 3, 22 'line-scale-pulse-out': 5, 23 'line-scale-pulse-out-rapid': 5, 24 'ball-scale-ripple': 1, 25 'ball-scale-ripple-multiple': 3, 26 'ball-spin-fade-loader': 8, 27 'line-spin-fade-loader': 8, 28 'triangle-skew-spin': 1, 29 'pacman': 5, 30 'ball-grid-beat': 9, 31 'semi-circle-spin': 1, 32 'ball-scale-random': 3 33 }; 34 35 var addDivs = function(n) { 36 var arr = []; 37 for (i = 1; i <= n; i++) { 38 arr.push('<div></div>'); 39 } 40 return arr; 41 }; 42 43 $.fn.loaders = function() { 44 return this.each(function() { 45 var elem = $(this); 46 $.each(divs, function(key, value) { 47 if (elem.hasClass(key)) 48 elem.html(addDivs(value)) 49 }) 50 }); 51 }; 52 53 $(function() { 54 $.each(divs, function(key, value) { 55 $('.loader-inner.' + key).html(addDivs(value)); 56 }) 57 }); 58 59}).call(window, window.$ || window.jQuery || window.Zepto);
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.