vendor: 4,156 bytes, lines 1-32
1/* 2* jquery-match-height 0.7.2 by @liabru 3* http://brm.io/jquery-match-height/ 4* License MIT 5*/ 6!function (t) { "use strict"; "function" == typeof define && define.amd ? define(["jquery"], t) : "undefined" != typeof module && module.exports ? module.exports = t(require("jquery")) : t(jQuery) }(function (t) { 7 var e = -1, o = -1, n = function (t) { return parseFloat(t) || 0 }, a = function (e) { var o = 1, a = t(e), i = null, r = []; return a.each(function () { var e = t(this), a = e.offset().top - n(e.css("margin-top")), s = r.length > 0 ? r[r.length - 1] : null; null === s ? r.push(e) : Math.floor(Math.abs(i - a)) <= o ? r[r.length - 1] = s.add(e) : r.push(e), i = a }), r }, i = function (e) { 8 var o = { 9 byRow: !0, property: "height", target: null, remove: !1 10 }; return "object" == typeof e ? t.extend(o, e) : ("boolean" == typeof e ? o.byRow = e : "remove" === e && (o.remove = !0), o) 11 }, r = t.fn.matchHeight = function (e) { var o = i(e); if (o.remove) { var n = this; return this.css(o.property, ""), t.each(r._groups, function (t, e) { e.elements = e.elements.not(n) }), this } return this.length <= 1 && !o.target ? this : (r._groups.push({ elements: this, options: o }), r._apply(this, o), this) }; r.version = "0.7.2", r._groups = [], r._throttle = 80, r._maintainScroll = !1, r._beforeUpdate = null, 12 r._afterUpdate = null, r._rows = a, r._parse = n, r._parseOptions = i, r._apply = function (e, o) { 13 var s = i(o), h = t(e), l = [h], c = t(window).scrollTop(), p = t("html").outerHeight(!0), u = h.parents().filter(":hidden"); return u.each(function () { var e = t(this); e.data("style-cache", e.attr("style")) }), u.css("display", "block"), s.byRow && !s.target && (h.each(function () { 14 var e = t(this), o = e.css("display"); "inline-block" !== o && "flex" !== o && "inline-flex" !== o && (o = "block"), e.data("style-cache", e.attr("style")), e.css({ 15 display: o, "padding-top": "0", 16 "padding-bottom": "0", "margin-top": "0", "margin-bottom": "0", "border-top-width": "0", "border-bottom-width": "0", height: "100px", overflow: "hidden" 17 }) 18 }), l = a(h), h.each(function () { var e = t(this); e.attr("style", e.data("style-cache") || "") })), t.each(l, function (e, o) { 19 var a = t(o), i = 0; if (s.target) i = s.target.outerHeight(!1); else { 20 if (s.byRow && a.length <= 1) return void a.css(s.property, ""); a.each(function () { 21 var e = t(this), o = e.attr("style"), n = e.css("display"); "inline-block" !== n && "flex" !== n && "inline-flex" !== n && (n = "block"); var a = { 22 display: n 23 }; a[s.property] = "", e.css(a), e.outerHeight(!1) > i && (i = e.outerHeight(!1)), o ? e.attr("style", o) : e.css("display", "") 24 }) 25 } a.each(function () { var e = t(this), o = 0; s.target && e.is(s.target) || ("border-box" !== e.css("box-sizing") && (o += n(e.css("border-top-width")) + n(e.css("border-bottom-width")), o += n(e.css("padding-top")) + n(e.css("padding-bottom"))), e.css(s.property, i - o + "px")) }) 26 }), u.each(function () { var e = t(this); e.attr("style", e.data("style-cache") || null) }), r._maintainScroll && t(window).scrollTop(c / p * t("html").outerHeight(!0)), 27 this 28 }, r._applyDataApi = function () { var e = {}; t("[data-match-height], [data-mh]").each(function () { var o = t(this), n = o.attr("data-mh") || o.attr("data-match-height"); n in e ? e[n] = e[n].add(o) : e[n] = o }), t.each(e, function () { this.matchHeight(!0) }) }; var s = function (e) { r._beforeUpdate && r._beforeUpdate(e, r._groups), t.each(r._groups, function () { r._apply(this.elements, this.options) }), r._afterUpdate && r._afterUpdate(e, r._groups) }; r._update = function (n, a) { 29 if (a && "resize" === a.type) { 30 var i = t(window).width(); if (i === e) return; e = i; 31 } n ? o === -1 && (o = setTimeout(function () { s(a), o = -1 }, r._throttle)) : s(a) 32 }, t(r._applyDataApi);
32 var h = t.fn.on ? "on" : "bind"; t(window)[h]("load", function (t) { r._update(!1, t) }), t(window)[h]("resize orientationchange", function (t) { r._update(!0, t) }) 33}); 34 35!function (t) { "function" == typeof define && define.amd ? define(["jquery"], t) : t(jQuery) }(function (t) { t.fn.addBack = t.fn.addBack || t.fn.andSelf, t.fn.extend({ actual: function (e, n) { if (!this[e]) throw '$.actual => The jQuery method "' + e + '" you called does not exist'; var i, a, o = { absolute: !1, clone: !1, includeMargin: !1, display: "block" }, r = t.extend(o, n), d = this.eq(0); if (r.clone === !0) i = function () { var t = "position: absolute !important; top: -1000 !important; "; d = d.clone().attr("style", t).appendTo("body") }, a = function () { d.remove() }; else { var l, s = [], u = ""; i = function () { l = d.parents().addBack().filter(":hidden"), u += "visibility: hidden !important; display: " + r.display + " !important; ", r.absolute === !0 && (u += "position: absolute !important; "), l.each(function () { var e = t(this), n = e.attr("style"); s.push(n), e.attr("style", n ? n + ";" + u : u) }) }, a = function () { l.each(function (e) { var n = t(this), i = s[e]; void 0 === i ? n.removeAttr("style") : n.attr("style", i) }) } } i(); var c = /(outer)/.test(e) ? d[e](r.includeMargin) : d[e](); return a(), c } }) }); 36 37(function ($) { 38 39 $.fn.countdown = function (toDate, callback) { 40 var handlers = ['seconds', 'minutes', 'hours', 'days', 'weeks', 'daysLeft']; 41 42 function delegate(scope, method) { 43 return function () { return method.call(scope) } 44 } 45 46 return this.each(function () { 47 // Convert 48 49 50 var $this = $(this), 51 values = {}, 52 lasting = {}, 53 interval = $this.data('countdownInterval'), 54 55 secondsLeft = Math.floor((toDate - upcoming_data.c_time)); 56 57 function triggerEvents() { 58 secondsLeft--; 59 if (secondsLeft < 0) { 60 secondsLeft = 0; 61 } 62 lasting = { 63 seconds: secondsLeft % 60, 64 minutes: Math.floor(secondsLeft / 60) % 60, 65 hours: Math.floor(secondsLeft / 60 / 60) % 24, 66 days: Math.floor(secondsLeft / 60 / 60 / 24), 67 weeks: Math.floor(secondsLeft / 60 / 60 / 24 / 7), 68 daysLeft: Math.floor(secondsLeft / 60 / 60 / 24) % 7 69 } 70 for (var i = 0; i < handlers.length; i++) { 71 var eventName = handlers[i]; 72 if (values[eventName] != lasting[eventName]) { 73 values[eventName] = lasting[eventName]; 74 dispatchEvent(eventName); 75 } 76 } 77 if (secondsLeft == 0) { 78 stop(); 79 dispatchEvent('finished'); 80 } 81 } 82 triggerEvents(); 83 84 function dispatchEvent(eventName) { 85 var event = $.Event(eventName); 86 event.date = new Date(new Date().valueOf() + secondsLeft); 87 event.value = values[eventName] || "0"; 88 event.toDate = toDate; 89 event.lasting = lasting; 90 switch (eventName) { 91 case "seconds": 92 case "minutes": 93 case "hours": 94 event.value = event.value < 10 ? '0' + event.value.toString() : event.value.toString(); 95 break; 96 default: 97 if (event.value) { 98 event.value = event.value.toString(); 99 } 100 break; 101 } 102 callback.call($this, event); 103 } 104 105 $this.bind('remove', function () { 106 stop(); // If the selector is removed clear the interval for memory sake! 107 dispatchEvent('removed'); 108 }); 109 110 function stop() { 111 clearInterval(interval); 112 } 113 function start() { 114 $this.data('countdownInterval', setInterval(delegate($this, triggerEvents), 1000)); 115 interval = $this.data('countdownInterval'); 116 } 117 118 if (interval) stop(); 119 start(); 120 }); 121 } 122 // Wrap the remove method to trigger an event when called 123 var removeEvent = new $.Event('remove'), 124 removeFunction = $.fn.remove; 125 $.fn.remove = function () { 126 $(this).trigger(removeEvent); 127 return removeFunction.apply(this, arguments); 128 } 129})(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.