vendor: 4,041 bytes, lines 1-112
1/*! bootstrap-progressbar v0.9.0 | Copyright (c) 2012-2015 Stephan Groà | MIT license | http://www.minddust.com */ 2!function(t) { 3 "use strict"; 4 var e = function(n, s) { 5 this.$element = t(n), 6 this.options = t.extend({}, e.defaults, s) 7 }; 8 e.defaults = { 9 transition_delay: 300, 10 refresh_speed: 50, 11 display_text: "none", 12 use_percentage: !0, 13 percent_format: function(t) { 14 return t + "%" 15 }, 16 amount_format: function(t, e) { 17 return t + " / " + e 18 }, 19 update: t.noop, 20 done: t.noop, 21 fail: t.noop 22 }, 23 e.prototype.transition = function() { 24 var n = this.$element 25 , s = n.parent() 26 , a = this.$back_text 27 , r = this.$front_text 28 , i = this.options 29 , o = parseInt(n.attr("data-transitiongoal")) 30 , h = parseInt(n.attr("aria-valuemin")) || 0 31 , d = parseInt(n.attr("aria-valuemax")) || 100 32 , f = s.hasClass("vertical") 33 , p = i.update && "function" == typeof i.update ? i.update : e.defaults.update 34 , u = i.done && "function" == typeof i.done ? i.done : e.defaults.done 35 , c = i.fail && "function" == typeof i.fail ? i.fail : e.defaults.fail; 36 if (isNaN(o)) 37 return void c("data-transitiongoal not set"); 38 var l = Math.round(100 * (o - h) / (d - h)); 39 if ("center" === i.display_text && !a && !r) { 40 this.$back_text = a = t("<span>").addClass("progressbar-back-text").prependTo(s), 41 this.$front_text = r = t("<span>").addClass("progressbar-front-text").prependTo(n); 42 var g; 43 f ? (g = s.css("height"), 44 a.css({ 45 height: g, 46 "line-height": g 47 }), 48 r.css({ 49 height: g, 50 "line-height": g 51 }), 52 t(window).resize(function() { 53 g = s.css("height"), 54 a.css({ 55 height: g, 56 "line-height": g 57 }), 58 r.css({ 59 height: g, 60 "line-height": g 61 }) 62 })) : (g = s.css("width"), 63 r.css({ 64 width: g 65 }), 66 t(window).resize(function() { 67 g = s.css("width"), 68 r.css({ 69 width: g 70 }) 71 })) 72 } 73 setTimeout(function() { 74 var t, e, c, g, _; 75 f ? n.css("height", l + "%") : n.css("width", l + "%"); 76 var x = setInterval(function() { 77 f ? (c = n.height(), 78 g = s.height()) : (c = n.width(), 79 g = s.width()), 80 t = Math.round(100 * c / g), 81 e = Math.round(h + c / g * (d - h)), 82 t >= l && (t = l, 83 e = o, 84 u(n), 85 clearInterval(x)), 86 "none" !== i.display_text && (_ = i.use_percentage ? i.percent_format(t) : i.amount_format(e, d, h), 87 "fill" === i.display_text ? n.text(_) : "center" === i.display_text && (a.text(_), 88 r.text(_))), 89 n.attr("aria-valuenow", e), 90 p(t, n) 91 }, i.refresh_speed) 92 }, i.transition_delay) 93 } 94 ; 95 var n = t.fn.progressbar; 96 t.fn.progressbar = function(n) { 97 return this.each(function() { 98 var s = t(this) 99 , a = s.data("bs.progressbar") 100 , r = "object" == typeof n && n; 101 a && r && t.extend(a.options, r), 102 a || s.data("bs.progressbar", a = new e(this,r)), 103 a.transition() 104 }) 105 } 106 , 107 t.fn.progressbar.Constructor = e, 108 t.fn.progressbar.noConflict = function() { 109 return t.fn.progressbar = n, 110 this 111 } 112}(window.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.