PageSourceSearch

https://www.vichy.pl/resources/int-fr/VichyMag/js/jQuery.carrousel…?versionAOX=2026_316_1052_347_0922221032

js vichy.pl collected 2026-09-24 23:49:58 UTC 6,053 bytes, 2 lines download raw bytes

1/*! AOX/carrouselCss v2.8.0*/
2!function(a, b, c, d) { "use strict"; var e = "carrouselCss", f = "2.8.0", g = a.noop, h = "transition" in c.createElement("div").style, i = a("html"), j = "rtl" === (i.attr("dir") || "").toLowerCase(); a.fn[e] = function(b) { return k[b] ? k[b].apply(this, Array.prototype.slice.call(arguments, 1)) : "object" != typeof b && b ? void a.error("Method " + b + " does not exist on jQuery." + e) : k.init.apply(this, arguments) }, a.fn[e].version = f, a.fn[e].defaults = { adaptiveHeight: !1, adaptiveHeightFixe: !1, transitionClass: null, currentClass: "current", prevClass: "prev-", nextClass: "next-", listClass: "", disabledClass: "disabled", readyClass: "is-ready", item: ".item", nav: ".nav", prev: ".prev", next: ".next", loop: !1, list: !1, play: !1, pauseOnOver: !0, touch: !0, rtl: j, delay: 5e3, maxNext: 3, maxPrev: 3, current: 0, onTransitionEnd: g, onTransitionStart: g, templates: { buttonList: function(a, b) { return '<button type="button">' + (b.eq(a).attr("data-label") || a) + "</button>" } } }; var k = { init: function(b) { return this.each(function() { var c, d = a.extend(!0, {}, a.fn[e].defaults, b), f = a(this), g = f.find(d.item), h = f.find(d.nav), i = h.find(d.prev), j = h.find(d.next), k = g.length > 1, u = { $carrousel: f, settings: d }; f.data(e) || (d.list && k && (c = t(g, d.templates.buttonList), c.addClass(d.listClass).find("button").on("click", function(b) { f[e]("goto", parseInt(c.find("button").index(a(b.currentTarget)))) }), i.length ? i.after(c) : h.append(c)), f.addClass(d.transitionClass).data(e, { settings: d, $item: g, $selected: a([]), $prev: i, $next: j, "class": s(d), timer: {} }), f[e]("goto", d.current), d.play && (f[e]("play"), d.pauseOnOver && g.on({ mouseenter: l, mouseleave: m }, u)), d.touch && g.on({ touchstart: p, touchmove: q, touchend: r }, u), k ? (i.on("click", u, o), j.on("click", u, n)) : i.add(j).addClass(d.disabledClass), f.aoxRepaint().addClass(d.readyClass)) }) }, play: function() { return this.each(function() { var b = a(this), c = b.data(e), d = c.timer, f = Date.now(), g = c.settings, h = g.delay; d.pause && (h -= d.pause - d.start), clearTimeout(d.id), d.id = setTimeout(function() { g.loop || g.current !== c.$item.length - 1 && !c.playReverse ? k.next.call(b) : (c.playReverse = g.current > 1, k.prev.call(b)) }, h), d.start = f, d.pause = null }) }, stop: function() { return this.each(function() { clearTimeout(a(this).data(e).timer.id) }) }, pause: function() { return this.each(function() { var b = a(this).data(e).timer; b.pause = Date.now(), clearTimeout(b.id) }) }, reinitialize: function(b) { return this.each(function() { var c = a(this); c.data(e) && c[e]("destroy"), c[e](b) }) }, destroy: function() { return this.each(function() { var b = a(this), c = b.data(e), d = c.settings, f = b.find(d.nav).children("ul"); clearTimeout(c.timer.id), c.$selected.removeClass(c["class"].all), b.removeClass(d.transitionClass).data(e, null), c.$item.off({ mouseenter: l, mouseleave: m, touchstart: p, touchmove: q, touchend: r }), c.$prev.off("click", o), c.$next.off("click", n), d.list && f.remove() }) }, settings: function(b) { return b ? this.each(function() { var c = a(this), d = a.extend({}, c.data(e).settings, b); c[e]("destroy")[e](d) }) : this.data(e).settings }, getCurrent: function() { return this.data(e).settings.current }, prev: function() { return k.fromCurrent.call(this, -1) }, next: function() { return k.fromCurrent.call(this, 1) }, fromCurrent: function(b) { return this.each(function() { var c = a(this), d = c.data(e).settings; c[e]("goto", d.current + b) }) }, "goto": function(b) { return this.each(function() { var c, d, f, g, i = a(this), j = i.data(e), k = j.settings, l = j.$item, m = j.$selected, n = l.length, o = j["class"].prev, p = j["class"].next, q = k.disabledClass, r = k.currentClass, s = k.loop, t = k.current, u = s ? b < 0 ? n + b : b % n : Math.max(Math.min(b, n - 1), 0), v = l.eq(u), w = 0; function x(a, b) { m = m.add(a.addClass(b)), w++ } if(s || (j.$prev.toggleClass(q, 0 === u), j.$next.toggleClass(q, u === n - 1)), k.list && (c = i.find(k.nav + " ul button"), c.eq(t).removeClass(r), c.eq(u).addClass(r)), m.off("transitionend").removeClass(j["class"].all), m = a([]), k.adaptiveHeight) { var y = l.eq(u).outerHeight(); l.eq(u).parent().css({ height: y }) } if(k.adaptiveHeightFixe) { var z = 0, A = 0; for(d = 0; d < Math.max(o.length, p.length) && w < n;
2 d++) A = l.eq(d).outerHeight(), A > z && (z = l.eq(d).outerHeight()); l.eq(u).parent().css({ height: z }) } for(t != u && (k.play && i[e]("play"), k.onTransitionStart(t, u), v.one("transitionend", function() { k.onTransitionEnd(u, t) }), h || v.trigger("transitionend")), x(v, r), d = 0; d < Math.max(o.length, p.length) && w < n; d++) f = u - d - 1, g = u + d + 1, f < 0 && (f = s ? n + f : null), g > n - 1 && (s ? g %= n : g = null), null !== f && o[d] && x(l.eq(f), o[d]), null !== g && p[d] && x(l.eq(g), p[d]); j.$selected = m, k.current = u }) } }; function l(a) { k.pause.call(a.data.$carrousel) } function m(a) { k.play.call(a.data.$carrousel) } function n(a) { k.fromCurrent.call(a.data.$carrousel, 1) } function o(a) { k.fromCurrent.call(a.data.$carrousel, -1) } function p(a) { a.data.touchstart = a.originalEvent.touches[0] } function q(a) { a.data.touchmove = a.originalEvent.touches[0] } function r(a) { if("undefined" != typeof a.data.touchmove) { var b = a.data, c = b.touchstart.clientX, e = b.touchmove.clientX, f = b.settings.rtl ? -1 : 1; Math.abs(b.touchstart.clientY - b.touchmove.clientY) < 50 && e && Math.abs(c - e) > 50 && k.fromCurrent.call(b.$carrousel, (c < e ? -1 : 1) * f) } a.data.touchmove = d } function s(a) { var b, c = [], d = []; for(b = 0; b < a.maxPrev; b++) c.push(a.prevClass + b); for(b = 0; b < a.maxNext; b++) d.push(a.nextClass + b); return { prev: c, next: d, all: c.concat(d, a.currentClass).join(" ") } } function t(b, c) { var d, e = a("<ul>"), f = ""; for(d = 0; d < b.length; d++) f += "<li>" + c(d, b.eq(1)) + "</li>"; return e.append(f) } }(jQuery, window, document);

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.