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 if (jQuery('.loader-inner').length){ 44 $.fn.loaders = function() { 45 return this.each(function() { 46 var elem = $(this); 47 $.each(divs, function(key, value) { 48 if (elem.hasClass(key)) 49 elem.html(addDivs(value)) 50 }) 51 }); 52 }; 53 54 $(function() { 55 $.each(divs, function(key, value) { 56 $('.loader-inner.' + key).html(addDivs(value)); 57 }) 58 }); 59 } 60}).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.