vendor: 11,255 bytes, lines 1-228
1/*! WOW - v1.1.3 - 2016-05-06 2* Copyright (c) 2016 Matthieu Aussaguel;*/ 3(function () { 4 var a, b, c, d, e, f = function (a, b) { 5 return function () { 6 return a.apply(b, arguments) 7 } 8 }, g = [].indexOf || function (a) { 9 for (var b = 0, c = this.length; c > b; b++) { 10 if (b in this && this[b] === a) { 11 return b; 12 } 13 } 14 return -1 15 }; 16 b = function () { 17 function a() { 18 } 19 20 return a.prototype.extend = function (a, b) { 21 var c, d; 22 for (c in b) { 23 d = b[c], null == a[c] && (a[c] = d); 24 } 25 return a 26 }, a.prototype.isMobile = function (a) { 27 return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a) 28 }, a.prototype.createEvent = function (a, b, c, d) { 29 var e; 30 return null == b && (b = !1), null == c && (c = !1), null == d && (d = null), null != document.createEvent ? (e = document.createEvent("CustomEvent"), e.initCustomEvent(a, b, c, d)) : null != document.createEventObject ? (e = document.createEventObject(), e.eventType = a) : e.eventName = a, e 31 }, a.prototype.emitEvent = function (a, b) { 32 return null != a.dispatchEvent ? a.dispatchEvent(b) : b in (null != a) ? a[b]() : "on" + b in (null != a) ? a["on" + b]() : void 0 33 }, a.prototype.addEvent = function (a, b, c) { 34 return null != a.addEventListener ? a.addEventListener(b, c, !1) : null != a.attachEvent ? a.attachEvent("on" + b, c) : a[b] = c 35 }, a.prototype.removeEvent = function (a, b, c) { 36 return null != a.removeEventListener ? a.removeEventListener(b, c, !1) : null != a.detachEvent ? a.detachEvent("on" + b, c) : delete a[b] 37 }, a.prototype.innerHeight = function () { 38 return "innerHeight" in window ? window.innerHeight : document.documentElement.clientHeight 39 }, a 40 }(), c = this.WeakMap || this.MozWeakMap || (c = function () { 41 function a() { 42 this.keys = [], this.values = [] 43 } 44 45 return a.prototype.get = function (a) { 46 var b, c, d, e, f; 47 for (f = this.keys, b = d = 0, e = f.length; e > d; b = ++d) { 48 if (c = f[b], c === a) { 49 return this.values[b] 50 } 51 } 52 }, a.prototype.set = function (a, b) { 53 var c, d, e, f, g; 54 for (g = this.keys, c = e = 0, f = g.length; f > e; c = ++e) { 55 if (d = g[c], d === a) { 56 return void (this.values[c] = b); 57 } 58 } 59 return this.keys.push(a), this.values.push(b) 60 }, a 61 }()), a = this.MutationObserver || this.WebkitMutationObserver || this.MozMutationObserver || (a = function () { 62 function a() { 63 "undefined" != typeof console && null !== console && console.warn("MutationObserver is not supported by your browser."), "undefined" != typeof console && null !== console && console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.") 64 } 65 66 return a.notSupported = !0, a.prototype.observe = function () { 67 }, a 68 }()), d = this.getComputedStyle || function (a, b) { 69 return this.getPropertyValue = function (b) { 70 var c; 71 return "float" === b && (b = "styleFloat"), e.test(b) && b.replace(e, function (a, b) { 72 return b.toUpperCase() 73 }), (null != (c = a.currentStyle) ? c[b] : void 0) || null 74 }, this 75 }, e = /(\-([a-z]){1})/g, this.WOW = function () { 76 function e(a) { 77 null == a && (a = {}), this.scrollCallback = f(this.scrollCallback, this), this.scrollHandler = f(this.scrollHandler, this), this.resetAnimation = f(this.resetAnimation, this), this.start = f(this.start, this), this.scrolled = !0, this.config = this.util().extend(a, this.defaults), null != a.scrollContainer && (this.config.scrollContainer = document.querySelector(a.scrollContainer)), this.animationNameCache = new c, this.wowEvent = this.util().createEvent(this.config.boxClass) 78 } 79 80 return e.prototype.defaults = { 81 boxClass: "wow", 82 animateClass: "animated", 83 offset: 0, 84 mobile: !0, 85 live: !0, 86 callback: null, 87 scrollContainer: null 88 }, e.prototype.init = function () { 89 var a; 90 return this.element = window.document.documentElement, "interactive" === (a = document.readyState) || "complete" === a ? this.start() : this.util().addEvent(document, "DOMContentLoaded", this.start), this.finished = [] 91 }, e.prototype.start = function () { 92 var b, c, d, e; 93 if (this.stopped = !1, this.boxes = function () { 94 var a, c, d, e; 95 for (d = this.element.querySelectorAll("." + this.config.boxClass), e = [], a = 0, c = d.length; c > a; a++) { 96 b = d[a], e.push(b); 97 } 98 return e 99 }.call(this), this.all = function () { 100 var a, c, d, e; 101 for (d = this.boxes, e = [], a = 0, c = d.length; c > a; a++) { 102 b = d[a], e.push(b); 103 } 104 return e 105 }.call(this), this.boxes.length) { 106 if (this.disabled()) { 107 this.resetStyle(); 108 } 109 else { 110 for (e = this.boxes, c = 0, d = e.length; d > c; c++) { 111 b = e[c], this.applyStyle(b, !0); 112 } 113 } 114 } 115 return this.disabled() || (this.util().addEvent(this.config.scrollContainer || window, "scroll", this.scrollHandler), this.util().addEvent(window, "resize", this.scrollHandler), this.interval = setInterval(this.scrollCallback, 50)), this.config.live ? new a(function (a) { 116 return function (b) { 117 var c, d, e, f, g; 118 for (g = [], c = 0, d = b.length; d > c; c++) { 119 f = b[c], g.push(function () { 120 var a, b, c, d; 121 for (c = f.addedNodes || [], d = [], a = 0, b = c.length; b > a; a++) { 122 e = c[a], d.push(this.doSync(e)); 123 } 124 return d 125 }.call(a)); 126 } 127 return g 128 } 129 }(this)).observe(document.body, {childList: !0, subtree: !0}) : void 0 130 }, e.prototype.stop = function () { 131 return this.stopped = !0, this.util().removeEvent(this.config.scrollContainer || window, "scroll", this.scrollHandler), this.util().removeEvent(window, "resize", this.scrollHandler), null != this.interval ? clearInterval(this.interval) : void 0 132 }, e.prototype.sync = function (b) { 133 return a.notSupported ? this.doSync(this.element) : void 0 134 }, e.prototype.doSync = function (a) { 135 var b, c, d, e, f; 136 if (null == a && (a = this.element), 1 === a.nodeType) { 137 for (a = a.parentNode || a, e = a.querySelectorAll("." + this.config.boxClass), f = [], c = 0, d = e.length; d > c; c++) { 138 b = e[c], g.call(this.all, b) < 0 ? (this.boxes.push(b), this.all.push(b), this.stopped || this.disabled() ? this.resetStyle() : this.applyStyle(b, !0), f.push(this.scrolled = !0)) : f.push(void 0); 139 } 140 return f 141 } 142 }, e.prototype.show = function (a) { 143 return this.applyStyle(a), a.className = a.className + " " + this.config.animateClass, null != this.config.callback && this.config.callback(a), this.util().emitEvent(a, this.wowEvent), this.util().addEvent(a, "animationend", this.resetAnimation), this.util().addEvent(a, "oanimationend", this.resetAnimation), this.util().addEvent(a, "webkitAnimationEnd", this.resetAnimation), this.util().addEvent(a, "MSAnimationEnd", this.resetAnimation), a 144 }, e.prototype.applyStyle = function (a, b) { 145 var c, d, e; 146 return d = a.getAttribute("data-wow-duration"), c = a.getAttribute("data-wow-delay"), e = a.getAttribute("data-wow-iteration"), this.animate(function (f) { 147 return function () { 148 return f.customStyle(a, b, d, c, e) 149 } 150 }(this)) 151 }, e.prototype.animate = function () { 152 return "requestAnimationFrame" in window ? function (a) { 153 return window.requestAnimationFrame(a) 154 } : function (a) { 155 return a() 156 } 157 }(), e.prototype.resetStyle = function () { 158 var a, b, c, d, e; 159 for (d = this.boxes, e = [], b = 0, c = d.length; c > b; b++) { 160 a = d[b], e.push(a.style.visibility = "visible"); 161 } 162 return e 163 }, e.prototype.resetAnimation = function (a) { 164 var b; 165 return a.type.toLowerCase().indexOf("animationend") >= 0 ? (b = a.target || a.srcElement, b.className = b.className.replace(this.config.animateClass, "").trim()) : void 0 166 }, e.prototype.customStyle = function (a, b, c, d, e) { 167 return b && this.cacheAnimationName(a), a.style.visibility = b ? "hidden" : "visible", c && this.vendorSet(a.style, {animationDuration: c}), d && this.vendorSet(a.style, {animationDelay: d}), e && this.vendorSet(a.style, {animationIterationCount: e}), this.vendorSet(a.style, {animationName: b ? "none" : this.cachedAnimationName(a)}), a 168 }, e.prototype.vendors = ["moz", "webkit"], e.prototype.vendorSet = function (a, b) { 169 var c, d, e, f; 170 d = []; 171 for (c in b) { 172 e = b[c], a["" + c] = e, d.push(function () { 173 var b, d, g, h; 174 for (g = this.vendors, h = [], b = 0, d = g.length; d > b; b++) { 175 f = g[b], h.push(a["" + f + c.charAt(0).toUpperCase() + c.substr(1)] = e); 176 } 177 return h 178 }.call(this)); 179 } 180 return d 181 }, e.prototype.vendorCSS = function (a, b) { 182 var c, e, f, g, h, i; 183 for (h = d(a), g = h.getPropertyCSSValue(b), f = this.vendors, c = 0, e = f.length; e > c; c++) { 184 i = f[c], g = g || h.getPropertyCSSValue("-" + i + "-" + b); 185 } 186 return g 187 }, e.prototype.animationName = function (a) { 188 var b; 189 try { 190 b = this.vendorCSS(a, "animation-name").cssText 191 } 192 catch (c) { 193 b = d(a).getPropertyValue("animation-name") 194 } 195 return "none" === b ? "" : b 196 }, e.prototype.cacheAnimationName = function (a) { 197 return this.animationNameCache.set(a, this.animationName(a)) 198 }, e.prototype.cachedAnimationName = function (a) { 199 return this.animationNameCache.get(a) 200 }, e.prototype.scrollHandler = function () { 201 return this.scrolled = !0 202 }, e.prototype.scrollCallback = function () { 203 var a; 204 return !this.scrolled || (this.scrolled = !1, this.boxes = function () { 205 var b, c, d, e; 206 for (d = this.boxes, e = [], b = 0, c = d.length; c > b; b++) { 207 a = d[b], a && (this.isVisible(a) ? this.show(a) : e.push(a)); 208 } 209 return e 210 }.call(this), this.boxes.length || this.config.live) ? void 0 : this.stop() 211 }, e.prototype.offsetTop = function (a) { 212 for (var b; void 0 === a.offsetTop;) { 213 a = a.parentNode; 214 } 215 for (b = a.offsetTop; a = a.offsetParent;) { 216 b += a.offsetTop; 217 } 218 return b 219 }, e.prototype.isVisible = function (a) { 220 var b, c, d, e, f; 221 return c = a.getAttribute("data-wow-offset") || this.config.offset, f = this.config.scrollContainer && this.config.scrollContainer.scrollTop || window.pageYOffset, e = f + Math.min(this.element.clientHeight, this.util().innerHeight()) - c, d = this.offsetTop(a), b = d + a.clientHeight, e >= d && b >= f 222 }, e.prototype.util = function () { 223 return null != this._util ? this._util : this._util = new b 224 }, e.prototype.disabled = function () { 225 return !this.config.mobile && this.util().isMobile(navigator.userAgent) 226 }, e 227 }() 228}).call(this);
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.