PageSourceSearch

https://stirka.kh.ua/js/wowslider.js

js stirka.kh.ua collected 2026-10-05 00:37:56 UTC 9,123 bytes, 337 lines download raw bytes

1// -----------------------------------------------------------------------------------
2// http://wowslider.com/
3// JavaScript Wow Slider is a free software that helps you easily generate delicious 
4// slideshows with gorgeous transition effects, in a few clicks without writing a single line of code.
5// Generated by WOW Slider 2.7
6jQuery.fn.wowSlider = function (d) {
7    var e = jQuery;
8    var h = this;
9    var t = h.get(0);
10    d = e.extend({
11        prev: "",
12        next: "",
13        duration: 1000,
14        delay: 20 * 100,
15        width: 960,
16        height: 360,
17        controls: true,
18        autoPlay: true,
19        bullets: true,
20    }, d);
21    var a = e(".ws_images", h);
22    var l = a.find("ul");
23
24    function u(D) {
25        l.css({
26            left: -D + "00%"
27        })
28    }
29    e("<div>")
30        .css({
31        width: "100%",
32        visibility: "hidden",
33        "font-size": 0,
34        "line-height": 0
35    })
36        .append(a.find("li:first img:first")
37        .clone()
38        .css({
39        width: "100%"
40    }))
41        .prependTo(a);
42    l.css({
43        position: "absolute",
44        top: 0,
45        animation: "none",
46        "-moz-animation": "none",
47        "-webkit-animation": "none"
48    });
49    var m = a.find("li");
50    var v = m.length;
51
52    function i(D) {
53        return ((D || 0) + v) % v
54    }
55    var C = navigator.userAgent;
56    if ((e.browser.msie && parseInt(e.browser.version, 10) < 8) || (/Safari/.test(C))) {
57        var b = Math.pow(10, Math.ceil(Math.LOG10E * Math.log(v)));
58        l.css({
59            width: b + "00%"
60        });
61        m.css({
62            width: 100 / b + "%"
63        })
64    } else {
65        l.css({
66            width: v + "00%",
67            display: "table"
68        });
69        m.css({
70            display: "table-cell",
71            "float": "none",
72            width: "auto"
73        })
74    }
75    u(0);
76    var k = [];
77    m.each(function (D) {
78        var F = e(">img:first,>a:first,>div:first", this)
79            .get(0);
80        var G = e("<div></div>");
81        for (var E = 0; E < this.childNodes.length;) {
82            if (this.childNodes[E] != F) {
83                G.append(this.childNodes[E])
84            } else {
85                E++
86            }
87        }
88        if (!e(this)
89            .data("descr")) {
90            e(this)
91                .data("descr", G.html()
92                .replace(/^\s+|\s+$/g, ""))
93        }
94        e(this)
95            .css({
96            "font-size": 0
97        });
98        k[k.length] = e(">a>img", this)
99            .get(0) || e(">*", this)
100            .get(0)
101    });
102    k = e(k);
103    k.css("visibility", "visible");
104
105    function f(F, D, E) {
106        this.go = function (G) {
107            E.find("ul")
108                .stop(true)
109                .animate({
110                left: (G ? -G + "00%" : (/Safari/.test(navigator.userAgent) ? "0%" : 0))
111            }, F.duration, "easeInOutExpo");
112            return G
113        }
114    }
115    var o = new f(d, k, a);
116    var c = 0;
117
118    function r(F, E, D) {
119        if (isNaN(F)) {
120            F = c + 1
121        }
122        F = i(F);
123        if (c == F) {
124            return
125        }
126        s(F, E, D)
127    }
128    function s(F, E, D) {
129        var F = o.go(F, c, E, D);
130        if (F < 0) {
131            return
132        }
133        q(F);
134        j(m[F]);
135        c = F;
136        z()
137    }
138    var B = h.find(".ws_bullets");
139
140    function q(D) {
141        if (B.length) {
142            n(D)
143        }
144    }
145    var p;
146
147    function z(D) {
148        w();
149        if (d.autoPlay) {
150            p = setTimeout(function () {
151                r()
152            }, d.delay + (D ? 0 : d.duration))
153        }
154    }
155    function w() {
156        if (p) {
157            clearTimeout(p)
158        }
159        p = null
160    }
161    function y(G, F, E, D) {
162        w();
163        G.preventDefault();
164        r(F, E, D);
165        z()
166    }
167    if (d.controls) {
168        var x = e('<a href="#" class="ws_next">' + d.next + "</a>");
169        var g = e('<a href="#" class="ws_prev">' + d.prev + "</a>");
170        h.append(x);
171        h.append(g);
172        x.bind("click", function (D) {
173            y(D, c + 1)
174        });
175        g.bind("click", function (D) {
176            y(D, c - 1)
177        })
178    }
179    function A() {
180        h.find(".ws_bullets a")
181            .click(function (L) {
182            y(L, e(this)
183                .index())
184        });
185        if (B.length) {
186            var F = B.find(">div");
187            var K = e("a", B);
188            var I = K.find("IMG");
189            if (I.length) {
190                var H = e('<div class="ws_bulframe"/>')
191                    .appendTo(F);
192                var E = e("<div/>")
193                    .css({
194                    width: I.length + 1 + "00%"
195                })
196                    .appendTo(e("<div/>")
197                    .appendTo(H));
198                I.appendTo(E);
199                e("<span/>")
200                    .appendTo(H);
201                var G = -1;
202
203                function J(N) {
204                    if (N < 0) {
205                        N = 0
206                    }
207                    e(K.get(G))
208                        .removeClass("ws_overbull");
209                    e(K.get(N))
210                        .addClass("ws_overbull");
211                    H.show();
212                    var O = {
213                        left: K.get(N)
214                            .offsetLeft - H.width() / 2,
215                        "margin-top": K.get(N)
216                            .offsetTop - K.get(0)
217                            .offsetTop + "px",
218                        "margin-bottom": -K.get(N)
219                            .offsetTop + K.get(K.length - 1)
220                            .offsetTop + "px"
221                    };
222                    var M = I.get(N);
223                    var L = {
224                        left: -M.offsetLeft + (e(M)
225                            .outerWidth(true) - e(M)
226                            .outerWidth()) / 2
227                    };
228                    if (G < 0) {
229                        H.css(O);
230                        E.css(L)
231                    } else {
232                        if (!document.all) {
233                            O.opacity = 1
234                        }
235                        H.stop()
236                            .animate(O, "fast");
237                        E.stop()
238                            .animate(L, "fast")
239                    }
240                    G = N
241                }
242                K.hover(function () {
243                    J(e(this)
244                        .index())
245                });
246                var D;
247                F.hover(function () {
248                    if (D) {
249                        clearTimeout(D);
250                        D = 0
251                    }
252                    J(G)
253                }, function () {
254                    K.removeClass("ws_overbull");
255                    if (document.all) {
256                        if (!D) {
257                            D = setTimeout(function () {
258                                H.hide();
259                                D = 0
260                            }, 400)
261                        }
262                    } else {
263                        H.stop()
264                            .animate({
265                            opacity: 0
266                        }, {
267                            duration: "fast",
268                            complete: function () {
269                                H.hide()
270                            }
271                        })
272                    }
273                });
274                F.click(function (L) {
275                    y(L, e(L.target)
276                        .index())
277                })
278            }
279        }
280    }
281    function n(D) {
282        e("A", B)
283            .each(function (E) {
284            if (E == D) {
285                e(this)
286                    .addClass("ws_selbull")
287            } else {
288                e(this)
289                    .removeClass("ws_selbull")
290            }
291        })
292    }
293    h.append("<div class='ws-title' style='display:none'></div>");
294
295    function j(E) {
296        var G = e("img", E)
297            .attr("title");
298        var F = e(E)
299            .data("descr");
300        var D = e(".ws-title", h);
301        D.stop(1, 1)
302            .stop(1, 1)
303            .fadeOut(1000 / 3, function () {
304            if (G || F) {
305                D.html((G ? "<span>" + G + "</span>" : "") + (F ? "<div>" + F + "</div>" : ""));
306                D.fadeIn(400, function () {
307                    if (e.browser.msie) {
308                        e(this)
309                            .get(0)
310                            .style.removeAttribute("filter")
311                    }
312                })
313            }
314        })
315    }
316    if (B.length) {
317        A()
318    }
319    q(c);
320    j(m[c]);
321    z(1);
322    return this
323};
324jQuery.extend(jQuery.easing, {
325    easeInOutExpo: function (e, f, a, h, g) {
326        if (f == 0) {
327            return a
328        }
329        if (f == g) {
330            return a + h
331        }
332        if ((f /= g / 2) < 1) {
333            return h / 2 * Math.pow(2, 10 * (f - 1)) + a
334        }
335        return h / 2 * (-Math.pow(2, - 10 * --f) + 2) + a
336    }
337});

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.