PageSourceSearch

https://www.dmh.org.il/wp-content/themes/starter2.0/assets/js/jquery.mobile.custom.js?ver=2.5

js dmh.org.il collected 2026-10-02 05:16:49 UTC 14,246 bytes, 357 lines download raw bytes

vendor: 14,246 bytes, lines 1-357
1/*! jQuery Mobile v1.4.5 | Copyright 2010, 2014 jQuery Foundation, Inc. | jquery.org/license */
2
3(function(e, t, n) {
4    typeof define == "function" && define.amd ? define(["jquery"], function(r) {
5        return n(r, e, t), r.mobile
6    }) : n(e.jQuery, e, t)
7})(this, document, function(e, t, n, r) {
8    (function(e, t, n, r) {
9        function T(e) {
10            while (e && typeof e.originalEvent != "undefined") e = e.originalEvent;
11            return e
12        }
13
14        function N(t, n) {
15            var i = t.type,
16                s, o, a, l, c, h, p, d, v;
17            t = e.Event(t), t.type = n, s = t.originalEvent, o = e.event.props, i.search(/^(mouse|click)/) > -1 && (o = f);
18            if (s)
19                for (p = o.length, l; p;) l = o[--p], t[l] = s[l];
20            i.search(/mouse(down|up)|click/) > -1 && !t.which && (t.which = 1);
21            if (i.search(/^touch/) !== -1) {
22                a = T(s), i = a.touches, c = a.changedTouches, h = i && i.length ? i[0] : c && c.length ? c[0] : r;
23                if (h)
24                    for (d = 0, v = u.length; d < v; d++) l = u[d], t[l] = h[l]
25            }
26            return t
27        }
28
29        function C(t) {
30            var n = {},
31                r, s;
32            while (t) {
33                r = e.data(t, i);
34                for (s in r) r[s] && (n[s] = n.hasVirtualBinding = !0);
35                t = t.parentNode
36            }
37            return n
38        }
39
40        function k(t, n) {
41            var r;
42            while (t) {
43                r = e.data(t, i);
44                if (r && (!n || r[n])) return t;
45                t = t.parentNode
46            }
47            return null
48        }
49
50        function L() {
51            g = !1
52        }
53
54        function A() {
55            g = !0
56        }
57
58        function O() {
59            E = 0, v.length = 0, m = !1, A()
60        }
61
62        function M() {
63            L()
64        }
65
66        function _() {
67            D(), c = setTimeout(function() {
68                c = 0, O()
69            }, e.vmouse.resetTimerDuration)
70        }
71
72        function D() {
73            c && (clearTimeout(c), c = 0)
74        }
75
76        function P(t, n, r) {
77            var i;
78            if (r && r[t] || !r && k(n.target, t)) i = N(n, t), e(n.target).trigger(i);
79            return i
80        }
81
82        function H(t) {
83            var n = e.data(t.target, s),
84                r;
85            !m && (!E || E !== n) && (r = P("v" + t.type, t), r && (r.isDefaultPrevented() && t.preventDefault(), r.isPropagationStopped() && t.stopPropagation(), r.isImmediatePropagationStopped() && t.stopImmediatePropagation()))
86        }
87
88        function B(t) {
89            var n = T(t).touches,
90                r, i, o;
91            n && n.length === 1 && (r = t.target, i = C(r), i.hasVirtualBinding && (E = w++, e.data(r, s, E), D(), M(), d = !1, o = T(t).touches[0], h = o.pageX, p = o.pageY, P("vmouseover", t, i), P("vmousedown", t, i)))
92        }
93
94        function j(e) {
95            if (g) return;
96            d || P("vmousecancel", e, C(e.target)), d = !0, _()
97        }
98
99        function F(t) {
100            if (g) return;
101            var n = T(t).touches[0],
102                r = d,
103                i = e.vmouse.moveDistanceThreshold,
104                s = C(t.target);
105            d = d || Math.abs(n.pageX - h) > i || Math.abs(n.pageY - p) > i, d && !r && P("vmousecancel", t, s), P("vmousemove", t, s), _()
106        }
107
108        function I(e) {
109            if (g) return;
110            A();
111            var t = C(e.target),
112                n, r;
113            P("vmouseup", e, t), d || (n = P("vclick", e, t), n && n.isDefaultPrevented() && (r = T(e).changedTouches[0], v.push({
114                touchID: E,
115                x: r.clientX,
116                y: r.clientY
117            }), m = !0)), P("vmouseout", e, t), d = !1, _()
118        }
119
120        function q(t) {
121            var n = e.data(t, i),
122                r;
123            if (n)
124                for (r in n)
125                    if (n[r]) return !0;
126            return !1
127        }
128
129        function R() {}
130
131        function U(t) {
132            var n = t.substr(1);
133            return {
134                setup: function() {
135                    q(this) || e.data(this, i, {});
136                    var r = e.data(this, i);
137                    r[t] = !0, l[t] = (l[t] || 0) + 1, l[t] === 1 && b.bind(n, H), e(this).bind(n, R), y && (l.touchstart = (l.touchstart || 0) + 1, l.touchstart === 1 && b.bind("touchstart", B).bind("touchend", I).bind("touchmove", F).bind("scroll", j))
138                },
139                teardown: function() {
140                    --l[t], l[t] || b.unbind(n, H), y && (--l.touchstart, l.touchstart || b.unbind("touchstart", B).unbind("touchmove", F).unbind("touchend", I).unbind("scroll", j));
141                    var r = e(this),
142                        s = e.data(this, i);
143                    s && (s[t] = !1), r.unbind(n, R), q(this) || r.removeData(i)
144                }
145            }
146        }
147        var i = "virtualMouseBindings",
148            s = "virtualTouchID",
149            o = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),
150            u = "clientX clientY pageX pageY screenX screenY".split(" "),
151            a = e.event.mouseHooks ? e.event.mouseHooks.props : [],
152            f = e.event.props.concat(a),
153            l = {},
154            c = 0,
155            h = 0,
156            p = 0,
157            d = !1,
158            v = [],
159            m = !1,
160            g = !1,
161            y = "addEventListener" in n,
162            b = e(n),
163            w = 1,
164            E = 0,
165            S, x;
166        e.vmouse = {
167            moveDistanceThreshold: 10,
168            clickDistanceThreshold: 10,
169            resetTimerDuration: 1500
170        };
171        for (x = 0; x < o.length; x++) e.event.special[o[x]] = U(o[x]);
172        y && n.addEventListener("click", function(t) {
173            var n = v.length,
174                r = t.target,
175                i, o, u, a, f, l;
176            if (n) {
177                i = t.clientX, o = t.clientY, S = e.vmouse.clickDistanceThreshold, u = r;
178                while (u) {
179                    for (a = 0; a < n; a++) {
180                        f = v[a], l = 0;
181                        if (u === r && Math.abs(f.x - i) < S && Math.abs(f.y - o) < S || e.data(u, s) === f.touchID) {
182                            t.preventDefault(), t.stopPropagation();
183                            return
184                        }
185                    }
186                    u = u.parentNode
187                }
188            }
189        }, !0)
190    })(e, t, n),
191    function(e) {
192        e.mobile = {}
193    }(e),
194    function(e, t) {
195        var r = {
196            touch: "ontouchend" in n
197        };
198        e.mobile.support = e.mobile.support || {}, e.extend(e.support, r), e.extend(e.mobile.support, r)
199    }(e),
200    function(e, t, r) {
201        function l(t, n, i, s) {
202            var o = i.type;
203            i.type = n, s ? e.event.trigger(i, r, t) : e.event.dispatch.call(t, i), i.type = o
204        }
205        var i = e(n),
206            s = e.mobile.support.touch,
207            o = "touchmove scroll",
208            u = s ? "touchstart" : "mousedown",
209            a = s ? "touchend" : "mouseup",
210            f = s ? "touchmove" : "mousemove";
211        e.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "), function(t, n) {
212            e.fn[n] = function(e) {
213                return e ? this.bind(n, e) : this.trigger(n)
214            }, e.attrFn && (e.attrFn[n] = !0)
215        }), e.event.special.scrollstart = {
216            enabled: !0,
217            setup: function() {
218                function s(e, n) {
219                    r = n, l(t, r ? "scrollstart" : "scrollstop", e)
220                }
221                var t = this,
222                    n = e(t),
223                    r, i;
224                n.bind(o, function(t) {
225                    if (!e.event.special.scrollstart.enabled) return;
226                    r || s(t, !0), clearTimeout(i), i = setTimeout(function() {
227                        s(t, !1)
228                    }, 50)
229                })
230            },
231            teardown: function() {
232                e(this).unbind(o)
233            }
234        }, e.event.special.tap = {
235            tapholdThreshold: 750,
236            emitTapOnTaphold: !0,
237            setup: function() {
238                var t = this,
239                    n = e(t),
240                    r = !1;
241                n.bind("vmousedown", function(s) {
242                    function a() {
243                        clearTimeout(u)
244                    }
245
246                    function f() {
247                        a(), n.unbind("vclick", c).unbind("vmouseup", a), i.unbind("vmousecancel", f)
248                    }
249
250                    function c(e) {
251                        f(), !r && o === e.target ? l(t, "tap", e) : r && e.preventDefault()
252                    }
253                    r = !1;
254                    if (s.which && s.which !== 1) return !1;
255                    var o = s.target,
256                        u;
257                    n.bind("vmouseup", a).bind("vclick", c), i.bind("vmousecancel", f), u = setTimeout(function() {
258                        e.event.special.tap.emitTapOnTaphold || (r = !0), l(t, "taphold", e.Event("taphold", {
259                            target: o
260                        }))
261                    }, e.event.special.tap.tapholdThreshold)
262                })
263            },
264            teardown: function() {
265                e(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup"), i.unbind("vmousecancel")
266            }
267        }, e.event.special.swipe = {
268            scrollSupressionThreshold: 30,
269            durationThreshold: 1e3,
270            horizontalDistanceThreshold: 30,
271            verticalDistanceThreshold: 30,
272            getLocation: function(e) {
273                var n = t.pageXOffset,
274                    r = t.pageYOffset,
275                    i = e.clientX,
276                    s = e.clientY;
277                if (e.pageY === 0 && Math.floor(s) > Math.floor(e.pageY) || e.pageX === 0 && Math.floor(i) > Math.floor(e.pageX)) i -= n, s -= r;
278                else if (s < e.pageY - r || i < e.pageX - n) i = e.pageX - n, s = e.pageY - r;
279                return {
280                    x: i,
281                    y: s
282                }
283            },
284            start: function(t) {
285                var n = t.originalEvent.touches ? t.originalEvent.touches[0] : t,
286                    r = e.event.special.swipe.getLocation(n);
287                return {
288                    time: (new Date).getTime(),
289                    coords: [r.x, r.y],
290                    origin: e(t.target)
291                }
292            },
293            stop: function(t) {
294                var n = t.originalEvent.touches ? t.originalEvent.touches[0] : t,
295                    r = e.event.special.swipe.getLocation(n);
296                return {
297                    time: (new Date).getTime(),
298                    coords: [r.x, r.y]
299                }
300            },
301            handleSwipe: function(t, n, r, i) {
302                if (n.time - t.time < e.event.special.swipe.durationThreshold && Math.abs(t.coords[0] - n.coords[0]) > e.event.special.swipe.horizontalDistanceThreshold && Math.abs(t.coords[1] - n.coords[1]) < e.event.special.swipe.verticalDistanceThreshold) {
303                    var s = t.coords[0] > n.coords[0] ? "swipeleft" : "swiperight";
304                    return l(r, "swipe", e.Event("swipe", {
305                        target: i,
306                        swipestart: t,
307                        swipestop: n
308                    }), !0), l(r, s, e.Event(s, {
309                        target: i,
310                        swipestart: t,
311                        swipestop: n
312                    }), !0), !0
313                }
314                return !1
315            },
316            eventInProgress: !1,
317            setup: function() {
318                var t, n = this,
319                    r = e(n),
320                    s = {};
321                t = e.data(this, "mobile-events"), t || (t = {
322                    length: 0
323                }, e.data(this, "mobile-events", t)), t.length++, t.swipe = s, s.start = function(t) {
324                    if (e.event.special.swipe.eventInProgress) return;
325                    e.event.special.swipe.eventInProgress = !0;
326                    var r, o = e.event.special.swipe.start(t),
327                        u = t.target,
328                        l = !1;
329                    s.move = function(t) {
330                        if (!o || t.isDefaultPrevented()) return;
331                        r = e.event.special.swipe.stop(t), l || (l = e.event.special.swipe.handleSwipe(o, r, n, u), l && (e.event.special.swipe.eventInProgress = !1)), Math.abs(o.coords[0] - r.coords[0]) > e.event.special.swipe.scrollSupressionThreshold && t.preventDefault()
332                    }, s.stop = function() {
333                        l = !0, e.event.special.swipe.eventInProgress = !1, i.off(f, s.move), s.move = null
334                    }, i.on(f, s.move).one(a, s.stop)
335                }, r.on(u, s.start)
336            },
337            teardown: function() {
338                var t, n;
339                t = e.data(this, "mobile-events"), t && (n = t.swipe, delete t.swipe, t.length--, t.length === 0 && e.removeData(this, "mobile-events")), n && (n.start && e(this).off(u, n.start), n.move && i.off(f, n.move), n.stop && i.off(a, n.stop))
340            }
341        }, e.each({
342            scrollstop: "scrollstart",
343            taphold: "tap",
344            swipeleft: "swipe.left",
345            swiperight: "swipe.right"
346        }, function(t, n) {
347            e.event.special[t] = {
348                setup: function() {
349                    e(this).bind(n, e.noop)
350                },
351                teardown: function() {
352                    e(this).unbind(n)
353                }
354            }
355        })
356    }(e, this)
357});

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.