vendor: 3,992 bytes, lines 1-91
1/** 2 * BxSlider v4.1.2 - Fully loaded, responsive content slider 3 * http://bxslider.com 4 * 5 * Copyright 2014, Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com 6 * Written while drinking Belgian ales and listening to jazz 7 * 8 * Released under the MIT license - http://opensource.org/licenses/MIT 9 */ 10!function (t) { 11 var e = {}, s = { 12 mode: "horizontal", 13 slideSelector: "", 14 infiniteLoop: !0, 15 hideControlOnEnd: !1, 16 speed: 500, 17 easing: null, 18 slideMargin: 0, 19 startSlide: 0, 20 randomStart: !1, 21 captions: !1, 22 ticker: !1, 23 tickerHover: !1, 24 adaptiveHeight: !1, 25 adaptiveHeightSpeed: 500, 26 video: !1, 27 useCSS: !0, 28 preloadImages: "visible", 29 responsive: !0, 30 slideZIndex: 50, 31 touchEnabled: !0, 32 swipeThreshold: 50, 33 oneToOneTouch: !0, 34 preventDefaultSwipeX: !0, 35 preventDefaultSwipeY: !1, 36 pager: !0, 37 pagerType: "full", 38 pagerShortSeparator: " / ", 39 pagerSelector: null, 40 buildPager: null, 41 pagerCustom: null, 42 controls: !0, 43 nextText: "Next", 44 prevText: "Prev", 45 nextSelector: null, 46 prevSelector: null, 47 autoControls: !1, 48 startText: "Start", 49 stopText: "Stop", 50 autoControlsCombine: !1, 51 autoControlsSelector: null, 52 auto: !1, 53 pause: 4e3, 54 autoStart: !0, 55 autoDirection: "next", 56 autoHover: !1, 57 autoDelay: 0, 58 minSlides: 1, 59 maxSlides: 1, 60 moveSlides: 0, 61 slideWidth: 0, 62 onSliderLoad: function () { 63 }, 64 onSlideBefore: function () { 65 }, 66 onSlideAfter: function () { 67 }, 68 onSlideNext: function () { 69 }, 70 onSlidePrev: function () { 71 }, 72 onSliderResize: function () { 73 } 74 }; 75 t.fn.bxSlider = function (n) { 76 if (0 == this.length)return this; 77 if (this.length > 1)return this.each(function () { 78 t(this).bxSlider(n) 79 }), this; 80 var o = {}, r = this; 81 e.el = this; 82 var a = t(window).width(), l = t(window).height(), d = function () { 83 o.settings = t.extend({}, s, n), o.settings.slideWidth = parseInt(o.settings.slideWidth), o.children = r.children(o.settings.slideSelector), o.children.length < o.settings.minSlides && (o.settings.minSlides = o.children.length), o.children.length < o.settings.maxSlides && (o.settings.maxSlides = o.children.length), o.settings.randomStart && (o.settings.startSlide = Math.floor(Math.random() * o.children.length)), o.active = {index: o.settings.startSlide}, o.carousel = o.settings.minSlides > 1 || o.settings.maxSlides > 1, o.carousel && (o.settings.preloadImages = "all"), o.minThreshold = o.settings.minSlides * o.settings.slideWidth + (o.settings.minSlides - 1) * o.settings.slideMargin, o.maxThreshold = o.settings.maxSlides * o.settings.slideWidth + (o.settings.maxSlides - 1) * o.settings.slideMargin, o.working = !1, o.controls = {}, o.interval = null, o.animProp = "vertical" == o.settings.mode ? "top" : "left", o.usingCSS = o.settings.useCSS && "fade" != o.settings.mode && function () { 84 var t = document.createElement("div"), e = ["WebkitPerspective", "MozPerspective", "OPerspective", "msPerspective"]; 85 for (var i in e)if (void 0 !== t.style[e[i]])return o.cssPrefix = e[i].replace("Perspective", "").toLowerCase(), o.animProp = "-" + o.cssPrefix + "-transform", !0; 86 return !1 87 }(), "vertical" == o.settings.mode && (o.settings.maxSlides = o.settings.minSlides), r.data("origStyle", r.attr("style")), r.children(o.settings.slideSelector).each(function () { 88 t(this).data("origStyle", t(this).attr("style")) 89 }), c() 90 }, c = function () { 91 r.wrap('<div class="bx-wrapper"><div class="bx-viewport"></div></div>
91'), o.viewport = r.parent(), o.loader = t('<div class="bx-loading" />'), o.viewport.prepend(o.loader), r.css({ 92 width: "horizontal" == o.settings.mode ? 100 * o.children.length + 215 + "%" : "auto", 93 position: "relative" 94 }), o.usingCSS && o.settings.easing ? r.css("-" + o.cssPrefix + "-transition-timing-function", o.settings.easing) : o.settings.easing || (o.settings.easing = "swing"), f(), o.viewport.css({ 95 width: "100%", 96 overflow: "hidden", 97 position: "relative" 98 }), o.viewport.parent().css({maxWidth: p()}), o.settings.pager || o.viewport.parent().css({margin: "0 auto 0px"}), o.children.css({ 99 "float": "horizontal" == o.settings.mode ? "left" : "none", 100 listStyle: "none", 101 position: "relative" 102 }), o.children.css("width", u()), "horizontal" == o.settings.mode && o.settings.slideMargin > 0 && o.children.css("marginRight", o.settings.slideMargin), "vertical" == o.settings.mode && o.settings.slideMargin > 0 && o.children.css("marginBottom", o.settings.slideMargin), "fade" == o.settings.mode && (o.children.css({ 103 position: "absolute", 104 zIndex: 0, 105 display: "none" 106 }), o.children.eq(o.settings.startSlide).css({ 107 zIndex: o.settings.slideZIndex, 108 display: "block" 109 })), o.controls.el = t('<div class="bx-controls" />'), o.settings.captions && P(), o.active.last = o.settings.startSlide == x() - 1, o.settings.video && r.fitVids(); 110 var e = o.children.eq(o.settings.startSlide); 111 "all" == o.settings.preloadImages && (e = o.children), o.settings.ticker ? o.settings.pager = !1 : (o.settings.pager && T(), o.settings.controls && C(), o.settings.auto && o.settings.autoControls && E(), (o.settings.controls || o.settings.autoControls || o.settings.pager) && o.viewport.after(o.controls.el)), g(e, h) 112 }, g = function (e, i) { 113 var s = e.find("img, iframe").length; 114 if (0 == s)return i(), void 0; 115 var n = 0; 116 e.find("img, iframe").each(function () { 117 t(this).one("load", function () { 118 ++n == s && i() 119 }).each(function () { 120 this.complete && t(this).load() 121 }) 122 }) 123 }, h = function () { 124 if (o.settings.infiniteLoop && "fade" != o.settings.mode && !o.settings.ticker) { 125 var e = "vertical" == o.settings.mode ? o.settings.minSlides : o.settings.maxSlides, i = o.children.slice(0, e).clone().addClass("bx-clone"), s = o.children.slice(-e).clone().addClass("bx-clone"); 126 r.append(i).prepend(s) 127 } 128 o.loader.remove(), S(), "vertical" == o.settings.mode && (o.settings.adaptiveHeight = !0), o.viewport.height(v()), r.redrawSlider(), o.settings.onSliderLoad(o.active.index), o.initialized = !0, o.settings.responsive && t(window).bind("resize", Z), o.settings.auto && o.settings.autoStart && H(), o.settings.ticker && L(), o.settings.pager && q(o.settings.startSlide), o.settings.controls && W(), o.settings.touchEnabled && !o.settings.ticker && O() 129 }, v = function () { 130 var e = 0, s = t(); 131 if ("vertical" == o.settings.mode || o.settings.adaptiveHeight)if (o.carousel) { 132 var n = 1 == o.settings.moveSlides ? o.active.index : o.active.index * m(); 133 for (s = o.children.eq(n), i = 1; i <= o.settings.maxSlides - 1; i++)s = n + i >= o.children.length ? s.add(o.children.eq(i - 1)) : s.add(o.children.eq(n + i)) 134 } else s = o.children.eq(o.active.index); else s = o.children; 135 return "vertical" == o.settings.mode ? (s.each(function () { 136 e += t(this).outerHeight() 137 }), o.settings.slideMargin > 0 && (e += o.settings.slideMargin * (o.settings.minSlides - 1))) : e = Math.max.apply(Math, s.map(function () { 138 return t(this).outerHeight(!1) 139 }).get()), e 140 }, p = function () { 141 var t = "100%"; 142 return o.settings.slideWidth > 0 && (t = "horizontal" == o.settings.mode ? o.settings.maxSlides * o.settings.slideWidth + (o.settings.maxSlides - 1) * o.settings.slideMargin : o.settings.slideWidth), t 143 }, u = function () { 144 var t = o.settings.slideWidth, e = o.viewport.width(); 145 return 0 == o.settings.slideWidth || o.settings.slideWidth > e && !o.carousel || "vertical" == o.settings.mode ? t = e : o.settings.maxSlides > 1 && "horizontal" == o.settings.mode && (e > o.maxThreshold || e < o.minThreshold && (t = (e - o.settings.slideMargin * (o.settings.minSlides - 1)) / o.settings.minSlides)), t 146 }, f = function () { 147 var t = 1; 148 if ("horizontal" == o.settings.mode && o.settings.slideWidth > 0)if (o.viewport.width() < o.minThreshold)t = o.settings.minSlides; else if (o.viewport.width() > o.maxThreshold)t = o.settings.maxSlides; else { 149 var e = o.children.first().width(); 150 t = Math.floor(o.viewport.width() / e) 151 } else"vertical" == o.settings.mode && (t = o.settings.minSlides); 152 return t 153 }, x = function () { 154 var t = 0; 155 if (o.settings.moveSlides > 0)if (o.settings.infiniteLoop)t = o.children.length / m(); else for (var e = 0, i = 0; e < o.children.length;)++t, e = i + f(), i += o.settings.moveSlides <= f() ? o.settings.moveSlides : f();
155 else t = Math.ceil(o.children.length / f()); 156 return t 157 }, m = function () { 158 return o.settings.moveSlides > 0 && o.settings.moveSlides <= f() ? o.settings.moveSlides : f() 159 }, S = function () { 160 if (o.children.length > o.settings.maxSlides && o.active.last && !o.settings.infiniteLoop) { 161 if ("horizontal" == o.settings.mode) { 162 var t = o.children.last(), e = t.position(); 163 b(-(e.left - (o.viewport.width() - t.width())), "reset", 0) 164 } else if ("vertical" == o.settings.mode) { 165 var i = o.children.length - o.settings.minSlides, e = o.children.eq(i).position(); 166 b(-e.top, "reset", 0) 167 } 168 } else { 169 var e = o.children.eq(o.active.index * m()).position(); 170 o.active.index == x() - 1 && (o.active.last = !0), void 0 != e && ("horizontal" == o.settings.mode ? b(-e.left, "reset", 0) : "vertical" == o.settings.mode && b(-e.top, "reset", 0)) 171 } 172 }, b = function (t, e, i, s) { 173 if (o.usingCSS) { 174 var n = "vertical" == o.settings.mode ? "translate3d(0, " + t + "px, 0)" : "translate3d(" + t + "px, 0, 0)"; 175 r.css("-" + o.cssPrefix + "-transition-duration", i / 1e3 + "s"), "slide" == e ? (r.css(o.animProp, n), r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd", function () { 176 r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"), D() 177 })) : "reset" == e ? r.css(o.animProp, n) : "ticker" == e && (r.css("-" + o.cssPrefix + "-transition-timing-function", "linear"), r.css(o.animProp, n), r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd", function () { 178 r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"), b(s.resetValue, "reset", 0), N() 179 })) 180 } else { 181 var a = {}; 182 a[o.animProp] = t, "slide" == e ? r.animate(a, i, o.settings.easing, function () { 183 D() 184 }) : "reset" == e ? r.css(o.animProp, t) : "ticker" == e && r.animate(a, speed, "linear", function () { 185 b(s.resetValue, "reset", 0), N() 186 }) 187 } 188 }, w = function () { 189 for (var e = "", i = x(), s = 0; i > s; s++) { 190 var n = ""; 191 o.settings.buildPager && t.isFunction(o.settings.buildPager) ? (n = o.settings.buildPager(s), o.pagerEl.addClass("bx-custom-pager")) : (n = s + 1, o.pagerEl.addClass("bx-default-pager")), e += '<div class="bx-pager-item"><a href="" data-slide-index="' + s + '" class="bx-pager-link">' + n + "</a></div>" 192 } 193 o.pagerEl.html(e) 194 }, T = function () { 195 o.settings.pagerCustom ? o.pagerEl = t(o.settings.pagerCustom) : (o.pagerEl = t('<div class="bx-pager" />'), o.settings.pagerSelector ? t(o.settings.pagerSelector).html(o.pagerEl) : o.controls.el.addClass("bx-has-pager").append(o.pagerEl), w()), o.pagerEl.on("click", "a", I) 196 }, C = function () { 197 o.controls.next = t('<a class="bx-next" href="">' + o.settings.nextText + "</a>"), o.controls.prev = t('<a class="bx-prev" href="">' + o.settings.prevText + "</a>"), o.controls.next.bind("click", y), o.controls.prev.bind("click", z), o.settings.nextSelector && t(o.settings.nextSelector).append(o.controls.next), o.settings.prevSelector && t(o.settings.prevSelector).append(o.controls.prev), o.settings.nextSelector || o.settings.prevSelector || (o.controls.directionEl = t('<div class="bx-controls-direction" />'), o.controls.directionEl.append(o.controls.prev).append(o.controls.next), o.controls.el.addClass("bx-has-controls-direction").append(o.controls.directionEl)) 198 }, E = function () { 199 o.controls.start = t('<div class="bx-controls-auto-item"><a class="bx-start" href="">' + o.settings.startText + "</a></div>"), o.controls.stop = t('<div class="bx-controls-auto-item"><a class="bx-stop" href="">' + o.settings.stopText + "</a></div>
199"), o.controls.autoEl = t('<div class="bx-controls-auto" />'), o.controls.autoEl.on("click", ".bx-start", k), o.controls.autoEl.on("click", ".bx-stop", M), o.settings.autoControlsCombine ? o.controls.autoEl.append(o.controls.start) : o.controls.autoEl.append(o.controls.start).append(o.controls.stop), o.settings.autoControlsSelector ? t(o.settings.autoControlsSelector).html(o.controls.autoEl) : o.controls.el.addClass("bx-has-controls-auto").append(o.controls.autoEl), A(o.settings.autoStart ? "stop" : "start") 200 }, P = function () { 201 o.children.each(function () { 202 var e = t(this).find("img:first").attr("title"); 203 void 0 != e && ("" + e).length && t(this).append('<div class="bx-caption"><span>' + e + "</span></div>") 204 }) 205 }, y = function (t) { 206 o.settings.auto && r.stopAuto(), r.goToNextSlide(), t.preventDefault() 207 }, z = function (t) { 208 o.settings.auto && r.stopAuto(), r.goToPrevSlide(), t.preventDefault() 209 }, k = function (t) { 210 r.startAuto(), t.preventDefault() 211 }, M = function (t) { 212 r.stopAuto(), t.preventDefault() 213 }, I = function (e) { 214 o.settings.auto && r.stopAuto(); 215 var i = t(e.currentTarget), s = parseInt(i.attr("data-slide-index")); 216 s != o.active.index && r.goToSlide(s), e.preventDefault() 217 }, q = function (e) { 218 var i = o.children.length; 219 return "short" == o.settings.pagerType ? (o.settings.maxSlides > 1 && (i = Math.ceil(o.children.length / o.settings.maxSlides)), o.pagerEl.html(e + 1 + o.settings.pagerShortSeparator + i), void 0) : (o.pagerEl.find("a").removeClass("active"), o.pagerEl.each(function (i, s) { 220 t(s).find("a").eq(e).addClass("active") 221 }), void 0) 222 }, D = function () { 223 if (o.settings.infiniteLoop) { 224 var t = ""; 225 0 == o.active.index ? t = o.children.eq(0).position() : o.active.index == x() - 1 && o.carousel ? t = o.children.eq((x() - 1) * m()).position() : o.active.index == o.children.length - 1 && (t = o.children.eq(o.children.length - 1).position()), t && ("horizontal" == o.settings.mode ? b(-t.left, "reset", 0) : "vertical" == o.settings.mode && b(-t.top, "reset", 0)) 226 } 227 o.working = !1, o.settings.onSlideAfter(o.children.eq(o.active.index), o.oldIndex, o.active.index) 228 }, A = function (t) { 229 o.settings.autoControlsCombine ? o.controls.autoEl.html(o.controls[t]) : (o.controls.autoEl.find("a").removeClass("active"), o.controls.autoEl.find("a:not(.bx-" + t + ")").addClass("active")) 230 }, W = function () { 231 1 == x() ? (o.controls.prev.addClass("disabled"), o.controls.next.addClass("disabled")) : !o.settings.infiniteLoop && o.settings.hideControlOnEnd && (0 == o.active.index ? (o.controls.prev.addClass("disabled"), o.controls.next.removeClass("disabled")) : o.active.index == x() - 1 ? (o.controls.next.addClass("disabled"), o.controls.prev.removeClass("disabled")) : (o.controls.prev.removeClass("disabled"), o.controls.next.removeClass("disabled"))) 232 }, H = function () { 233 o.settings.autoDelay > 0 ? setTimeout(r.startAuto, o.settings.autoDelay) : r.startAuto(), o.settings.autoHover && r.hover(function () { 234 o.interval && (r.stopAuto(!0), o.autoPaused = !0) 235 }, function () { 236 o.autoPaused && (r.startAuto(!0), o.autoPaused = null) 237 }) 238 }, L = function () { 239 var e = 0; 240 if ("next" == o.settings.autoDirection)r.append(o.children.clone().addClass("bx-clone")); else { 241 r.prepend(o.children.clone().addClass("bx-clone")); 242 var i = o.children.first().position(); 243 e = "horizontal" == o.settings.mode ? -i.left : -i.top 244 } 245 b(e, "reset", 0), o.settings.pager = !1, o.settings.controls = !1, o.settings.autoControls = !1, o.settings.tickerHover && !o.usingCSS && o.viewport.hover(function () { 246 r.stop() 247 }, function () { 248 var e = 0; 249 o.children.each(function () { 250 e += "horizontal" == o.settings.mode ? t(this).outerWidth(!0) : t(this).outerHeight(!0) 251 }); 252 var i = o.settings.speed / e, s = "horizontal" == o.settings.mode ? "left" : "top", n = i * (e - Math.abs(parseInt(r.css(s))
252)); 253 N(n) 254 }), N() 255 }, N = function (t) { 256 speed = t ? t : o.settings.speed; 257 var e = {left: 0, top: 0}, i = {left: 0, top: 0}; 258 "next" == o.settings.autoDirection ? e = r.find(".bx-clone").first().position() : i = o.children.first().position(); 259 var s = "horizontal" == o.settings.mode ? -e.left : -e.top, n = "horizontal" == o.settings.mode ? -i.left : -i.top, a = {resetValue: n}; 260 b(s, "ticker", speed, a) 261 }, O = function () { 262 o.touch = {start: {x: 0, y: 0}, end: {x: 0, y: 0}}, o.viewport.bind("touchstart", X) 263 }, X = function (t) { 264 if (o.working)t.preventDefault(); else { 265 o.touch.originalPos = r.position(); 266 var e = t.originalEvent; 267 o.touch.start.x = e.changedTouches[0].pageX, o.touch.start.y = e.changedTouches[0].pageY, o.viewport.bind("touchmove", Y), o.viewport.bind("touchend", V) 268 } 269 }, Y = function (t) { 270 var e = t.originalEvent, i = Math.abs(e.changedTouches[0].pageX - o.touch.start.x), s = Math.abs(e.changedTouches[0].pageY - o.touch.start.y); 271 if (3 * i > s && o.settings.preventDefaultSwipeX ? t.preventDefault() : 3 * s > i && o.settings.preventDefaultSwipeY && t.preventDefault(), "fade" != o.settings.mode && o.settings.oneToOneTouch) { 272 var n = 0; 273 if ("horizontal" == o.settings.mode) { 274 var r = e.changedTouches[0].pageX - o.touch.start.x; 275 n = o.touch.originalPos.left + r 276 } else { 277 var r = e.changedTouches[0].pageY - o.touch.start.y; 278 n = o.touch.originalPos.top + r 279 } 280 b(n, "reset", 0) 281 } 282 }, V = function (t) { 283 o.viewport.unbind("touchmove", Y); 284 var e = t.originalEvent, i = 0; 285 if (o.touch.end.x = e.changedTouches[0].pageX, o.touch.end.y = e.changedTouches[0].pageY, "fade" == o.settings.mode) { 286 var s = Math.abs(o.touch.start.x - o.touch.end.x); 287 s >= o.settings.swipeThreshold && (o.touch.start.x > o.touch.end.x ? r.goToNextSlide() : r.goToPrevSlide(), r.stopAuto()) 288 } else { 289 var s = 0; 290 "horizontal" == o.settings.mode ? (s = o.touch.end.x - o.touch.start.x, i = o.touch.originalPos.left) : (s = o.touch.end.y - o.touch.start.y, i = o.touch.originalPos.top), !o.settings.infiniteLoop && (0 == o.active.index && s > 0 || o.active.last && 0 > s) ? b(i, "reset", 200) : Math.abs(s) >= o.settings.swipeThreshold ? (0 > s ? r.goToNextSlide() : r.goToPrevSlide(), r.stopAuto()) : b(i, "reset", 200) 291 } 292 o.viewport.unbind("touchend", V) 293 }, Z = function () { 294 var e = t(window).width(), i = t(window).height(); 295 (a != e || l != i) && (a = e, l = i, r.redrawSlider(), o.settings.onSliderResize.call(r, o.active.index)) 296 }; 297 return r.goToSlide = function (e, i) { 298 if (!o.working && o.active.index != e)if (o.working = !0, o.oldIndex = o.active.index, o.active.index = 0 > e ? x() - 1 : e >= x() ? 0 : e, o.settings.onSlideBefore(o.children.eq(o.active.index), o.oldIndex, o.active.index), "next" == i ? o.settings.onSlideNext(o.children.eq(o.active.index), o.oldIndex, o.active.index) : "prev" == i && o.settings.onSlidePrev(o.children.eq(o.active.index), o.oldIndex, o.active.index), o.active.last = o.active.index >= x() - 1, o.settings.pager && q(o.active.index), o.settings.controls && W(), "fade" == o.settings.mode)o.settings.adaptiveHeight && o.viewport.height() != v() && o.viewport.animate({height: v()}, o.settings.adaptiveHeightSpeed), o.children.filter(":visible").fadeOut(o.settings.speed).css({zIndex: 0}), o.children.eq(o.active.index).css("zIndex", o.settings.slideZIndex + 1).fadeIn(o.settings.speed, function () { 299 t(this).css("zIndex", o.settings.slideZIndex), D() 300 }); else { 301 o.settings.adaptiveHeight && o.viewport.height() != v() && o.viewport.animate({height: v()}, o.settings.adaptiveHeightSpeed); 302 var s = 0, n = {left: 0, top: 0}; 303 if (!o.settings.infiniteLoop && o.carousel && o.active.last)if ("horizontal" == o.settings.mode) { 304 var a = o.children.eq(o.children.length - 1); 305 n = a.position(), s = o.viewport.width() - a.outerWidth() 306 } else { 307 var l = o.children.length - o.settings.minSlides; 308 n = o.children.eq(l).position() 309 } else if (o.carousel && o.active.last && "prev" == i) { 310 var d = 1 == o.settings.moveSlides ? o.settings.maxSlides - m() : (x() - 1) * m() - (o.children.length - o.settings.maxSlides), a = r.children(".bx-clone").eq(d); 311 n = a.position() 312 } else if ("next" == i && 0 == o.active.index)n = r.find("> .bx-clone").eq(o.settings.maxSlides).position(), o.active.last = !1; else if (e >= 0) { 313 var c = e * m(); 314 n = o.children.eq(c).position() 315 } 316 if ("undefined" != typeof n) { 317 var g = "horizontal" == o.settings.mode ? -(n.left - s) : -n.top; 318 b(g, "slide", o.settings.speed) 319 } 320 } 321 }, r.goToNextSlide = function () { 322 if (o.settings.infiniteLoop || !o.active.last) { 323 var t = parseInt(o.active.index) + 1; 324 r.goToSlide(t, "next") 325 } 326 }, r.goToPrevSlide = function () { 327 if (o.settings.infiniteLoop || 0 != o.active.index) { 328 var t = parseInt(o.active.index) - 1; 329 r.goToSlide(t, "prev") 330 } 331 }, r.startAuto = function (t) { 332 o.interval || (o.interval = setInterval(function () { 333 "next" == o.settings.autoDirection ? r.goToNextSlide() : r.goToPrevSlide() 334 }, o.settings.pause), o.settings.autoControls && 1 != t && A("stop")) 335 }, r.stopAuto = function (t) { 336 o.interval && (clearInterval(o.interval), o.interval = null, o.settings.autoControls && 1 != t && A("start")) 337 }, r.getCurrentSlide = function () { 338 return o.active.index 339 }, r.getCurrentSlideElement = function () { 340 return o.children.eq(o.active.index) 341 }, r.getSlideCount = function () { 342 return o.children.length 343 }, r.redrawSlider = function () { 344 o.children.add(r.find(".bx-clone")).outerWidth(u()), o.viewport.css("height", v()), o.settings.ticker || S(), o.active.last && (o.active.index = x() - 1), o.active.index >= x() && (o.active.last = !0), o.settings.pager && !o.settings.pagerCustom && (w(), q(o.active.index)) 345 }, r.destroySlider = function () { 346 o.initialized && (o.initialized = !1, t(".bx-clone", this).remove(), o.children.each(function () { 347 void 0 != t(this).data("origStyle") ? t(this).attr("style", t(this).data("origStyle")) : t(this).removeAttr("style") 348 }), void 0 != t(this).data("origStyle") ? this.attr("style", t(this).data("origStyle")) : t(this).removeAttr("style"), t(this).unwrap().unwrap(), o.controls.el && o.controls.el.remove(), o.controls.next && o.controls.next.remove(), o.controls.prev && o.controls.prev.remove(), o.pagerEl && o.settings.controls && o.pagerEl.remove(), t(".bx-caption", this).remove(), o.controls.autoEl && o.controls.autoEl.remove(), clearInterval(o.interval), o.settings.responsive && t(window).unbind("resize", Z)) 349 }, r.reloadSlider = function (t) { 350 void 0 != t && (n = t), r.destroySlider(), d() 351 }, d(), this 352 } 353}(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.