PageSourceSearch

http://matrimoine-en-diois.fr/wp-content/themes/kathy/js/superfish.js

js matrimoine-en-diois.fr collected 2026-10-03 01:01:13 UTC 7,128 bytes, 154 lines download raw bytes

vendor: 7,128 bytes, lines 1-154
1/*
2 * jQuery Superfish Menu Plugin - v1.7.9
3 * Copyright (c) 2016 Joel Birch
4 *
5 * Dual licensed under the MIT and GPL licenses
6 */
7
8;
9! function(a, b) {
10    "use strict";
11    var c = function() {
12        var c = {
13                bcClass: "sf-breadcrumb",
14                menuClass: "sf-js-enabled",
15                anchorClass: "sf-with-ul",
16                menuArrowClass: "sf-arrows"
17            },
18            d = function() {
19                var b = /^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);
20                return b && a("html").css("cursor", "pointer").on("click", a.noop), b
21            }(),
22            e = function() {
23                var a = document.documentElement.style;
24                return "behavior" in a && "fill" in a && /iemobile/i.test(navigator.userAgent)
25            }(),
26            f = function() {
27                return !!b.PointerEvent
28            }(),
29            g = function(a, b, d) {
30                var e, f = c.menuClass;
31                b.cssArrows && (f += " " + c.menuArrowClass), e = d ? "addClass" : "removeClass", a[e](f)
32            },
33            h = function(b, d) {
34                return b.find("li." + d.pathClass).slice(0, d.pathLevels).addClass(d.hoverClass + " " + c.bcClass).filter(function() {
35                    return a(this).children(d.popUpSelector).hide().show().length
36                }).removeClass(d.pathClass)
37            },
38            i = function(a, b) {
39                var d = b ? "addClass" : "removeClass";
40                a.children("a")[d](c.anchorClass)
41            },
42            j = function(a) {
43                var b = a.css("ms-touch-action"),
44                    c = a.css("touch-action");
45                c = c || b, c = "pan-y" === c ? "auto" : "pan-y", a.css({
46                    "ms-touch-action": c,
47                    "touch-action": c
48                })
49            },
50            k = function(a) {
51                return a.closest("." + c.menuClass)
52            },
53            l = function(a) {
54                return k(a).data("sfOptions")
55            },
56            m = function() {
57                var b = a(this),
58                    c = l(b);
59                clearTimeout(c.sfTimer), b.siblings().superfish("hide").end().superfish("show")
60            },
61            n = function(b) {
62                b.retainPath = a.inArray(this[0], b.$path) > -1, this.superfish("hide"), this.parents("." + b.hoverClass).length || (b.onIdle.call(k(this)), b.$path.length && a.proxy(m, b.$path)())
63            },
64            o = function() {
65                var b = a(this),
66                    c = l(b);
67                d ? a.proxy(n, b, c)() : (clearTimeout(c.sfTimer), c.sfTimer = setTimeout(a.proxy(n, b, c), c.delay))
68            },
69            p = function(b) {
70                var c = a(this),
71                    d = l(c),
72                    e = c.siblings(b.data.popUpSelector);
73                return d.onHandleTouch.call(e) === !1 ? this : void(e.length > 0 && e.is(":hidden") && (c.one("click.superfish", !1), "MSPointerDown" === b.type || "pointerdown" === b.type ? c.trigger("focus") : a.proxy(m, c.parent("li"))()))
74            },
75            q = function(b, c) {
76                var g = "li:has(" + c.popUpSelector + ")";
77                a.fn.hoverIntent && !c.disableHI ? b.hoverIntent(m, o, g) : b.on("mouseenter.superfish", g, m).on("mouseleave.superfish", g, o);
78                var h = "MSPointerDown.superfish";
79                f && (h = "pointerdown.superfish"), d || (h += " touchend.superfish"), e && (h += " mousedown.superfish"), b.on("focusin.superfish", "li", m).on("focusout.superfish", "li", o).on(h, "a", c, p)
80            };
81        return {
82            hide: function(b) {
83                if (this.length) {
84                    var c = this,
85                        d = l(c);
86                    if (!d) return this;
87                    var e = d.retainPath === !0 ? d.$path : "",
88                        f = c.find("li." + d.hoverClass).add(this).not(e).removeClass(d.hoverClass).children(d.popUpSelector),
89                        g = d.speedOut;
90                    if (b && (f.show(), g = 0), d.retainPath = !1, d.onBeforeHide.call(f) === !1) return this;
91                    f.stop(!0, !0).animate(d.animationOut, g, function() {
92                        var b = a(this);
93                        d.onHide.call(b)
94                    })
95                }
96                return this
97            },
98            show: function() {
99                var a = l(this);
100                if (!a) return this;
101                var b = this.addClass(a.hoverClass),
102                    c = b.children(a.popUpSelector);
103                return a.onBeforeShow.call(c) === !1 ? this : (c.stop(!0, !0).animate(a.animation, a.speed, function() {
104                    a.onShow.call(c)
105                }), this)
106            },
107            destroy: function() {
108                return this.each(function() {
109                    var b, d = a(this),
110                        e = d.data("sfOptions");
111                    return e ? (b = d.find(e.popUpSelector).parent("li"), clearTimeout(e.sfTimer), g(d, e), i(b), j(d), d.off(".superfish").off(".hoverIntent"), b.children(e.popUpSelector).attr("style", function(a, b) {
112                        return b.replace(/display[^;]+;?/g, "")
113                    }), e.$path.removeClass(e.hoverClass + " " + c.bcClass).addClass(e.pathClass), d.find("." + e.hoverClass).removeClass(e.hoverClass), e.onDestroy.call(d), void d.removeData("sfOptions")) : !1
114                })
115            },
116            init: function(b) {
117                return this.each(function() {
118                    var d = a(this);
119                    if (d.data("sfOptions")) return !1;
120                    var e = a.extend({}, a.fn.superfish.defaults, b),
121                        f = d.find(e.popUpSelector).parent("li");
122                    e.$path = h(d, e), d.data("sfOptions", e), g(d, e, !0), i(f, !0), j(d), q(d, e), f.not("." + c.bcClass).superfish("hide", !0), e.onInit.call(this)
123                })
124            }
125        }
126    }();
127    a.fn.superfish = function(b, d) {
128        return c[b] ? c[b].apply(this, Array.prototype.slice.call(arguments, 1)) : "object" != typeof b && b ? a.error("Method " + b + " does not exist on jQuery.fn.superfish") : c.init.apply(this, arguments)
129    }, a.fn.superfish.defaults = {
130        popUpSelector: "ul,.sf-mega",
131        hoverClass: "sfHover",
132        pathClass: "overrideThisToUse",
133        pathLevels: 1,
134        delay: 800,
135        animation: {
136            opacity: "show"
137        },
138        animationOut: {
139            opacity: "hide"
140        },
141        speed: "normal",
142        speedOut: "fast",
143        cssArrows: !0,
144        disableHI: !1,
145        onInit: a.noop,
146        onBeforeShow: a.noop,
147        onShow: a.noop,
148        onBeforeHide: a.noop,
149        onHide: a.noop,
150        onIdle: a.noop,
151        onDestroy: a.noop,
152        onHandleTouch: a.noop
153    }
154}(jQuery, window);

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.