PageSourceSearch

https://www.klondyke.co.uk/wp-content/themes/klondyke/js/etheme.min.js

js klondyke.co.uk collected 2026-10-02 13:03:18 UTC 40,807 bytes, 754 lines download raw bytes

1! function(t) {
2    "use strict";
3    var e = {
4        init: function() {
5            this.nanoScroll(), this.fragmentsRefresh(), this.affixJSInit(), this.onePageMenu(), this.configureHeightAndWidth(), this.breadcrumbs(), this.fixedHeader(), this.mediaelementplayer(), this.windowsPhoneFix(), this.popup(), this.searchPopup(), this.imagesLightbox(), this.loadInView(), this.cleanSpaces(), this.contentProdImages(), this.wishlist(), this.mainNavigation(), this.backToTop(), this.portfolio(), this.isotope(), this.testimonials(), this.woocommerce(), this.productsViewMode(), this.checkViewMode(), this.ajaxAddToCartInit(), this.quickView(), this.searchform(), this.tabs(), this.categoriesAccordion(), this.toggles(), this.closeParentBtn(), this.contactForm(), this.commentsForm(), this.mobileMenu()
6        },
7        newJqueryMethods: function() {
8            jQuery.fn.etFullWidth = function(t) {
9                var e = jQuery(this),
10                    i = 0;
11                return jQuery("body").hasClass("header-vertical-enable") && jQuery(window).width() > 979 && (i = jQuery(".header-type-vertical").outerWidth()), e.css({
12                    left: -jQuery(".header > .container").offset().left - 15 + i,
13                    width: jQuery(window).width() - i,
14                    visibility: "visible"
15                }), jQuery(window).resize(function() {
16                    jQuery(window).width() < 980 && (i = 0), e.css({
17                        left: -jQuery(".header > .container").offset().left - 15 + i,
18                        width: jQuery(window).width() - i,
19                        visibility: "visible"
20                    })
21                }), this
22            }, jQuery.fn.etFullHeight = function(t) {
23                var e = jQuery(this);
24                return e.css({
25                    "min-height": jQuery(window).height()
26                }), jQuery(window).resize(function() {
27                    e.css({
28                        "min-height": jQuery(window).height()
29                    })
30                }), this
31            }
32        },
33        nanoScroll: function() {
34            t(".shop-filters-area .sidebar-widget").each(function() {
35                var e = t(this).find("> ul, > div, > form");
36                e.height() > 260 && (t(this).addClass("nano-scroll-apply"), e.addClass("widget-content"), t(this).nanoScroller({
37                    contentClass: "widget-content",
38                    preventPageScrolling: !0
39                }))
40            })
41        },
42        fragmentsRefresh: function() {
43            t.ajax({
44                url: etConfig.ajaxurl,
45                type: "POST",
46                data: {
47                    action: "et_refreshed_fragments"
48                },
49                success: function(e) {
50                    e && e.fragments && t.each(e.fragments, function(e, i) {
51                        t("." + e).replaceWith(i)
52                    })
53                }
54            })
55        },
56        affixJSInit: function() {
57            e.affixJS()
58        },
59        affixJS: function() {
60            t(window).width() < 992 || t(".fixed-product-block").each(function() {
61                var e = t(this),
62                    i = e.parent(),
63                    a = t(".product-images"),
64                    o = a.outerHeight();
65                i.outerHeight() > o || (t(window).resize(function() {
66                    o = a.outerHeight(), e.css("max-width", i.width()), i.height(o)
67                }), t(window).resize(), t(this).stick_in_parent())
68            })
69        },
70        onePageMenu: function() {
71            t(".menu").each(function() {
72                var e = t(this),
73                    o = t(this).find("a");
74                e.parent().hasClass("one-page-menu") && o.click(function(e) {
75                    if (t(this).attr("href").split("#")[0] == window.location.href.split("#")[0]) {
76                        e.preventDefault();
77                        var o = t(this).attr("href").split("#")[1];
78                        a(o), i(o)
79                    }
80                })
81            }), t("[data-scroll-to]").click(function() {
82                var e = t(this).attr("data-scroll-to");
83                a(e), i(e)
84            });
85            var e = window.location.hash.split("#")[1];
86
87            function i(e) {
88                var i = 0;
89                if ("top" != e) {
90                    if (t('[data-anchor="' + e + '"]').length < 1) return;
91                    i = t('[data-anchor="' + e + '"]').offset().top - 130
92                }
93                t(window).width() < 992 && t("body").removeClass("show-nav"), t("html, body").stop().animate({
94                    scrollTop: i
95                }, 1e3, function() {
96                    a(e)
97                })
98            }
99
100            function a(e) {
101                var i, a = t(".menu");
102                a.parent().hasClass("one-page-menu") && (a.find(".current-menu-item").removeClass("current-menu-item"), "top" != e ? (a.find("li").each(function() {
103                    t(this).find(">a").attr("href") && (t(this).find(">a").attr("href").split("#")[1] == e && (i = t(this).attr("id")))
104                }), t("." + i).addClass("current-menu-item")) : a.each(function() {
105                    t(this).find("li").first().addClass("current-menu-item")
106                }))
107            }
108            window.location.hash.length > 1 && setTimeout(function() {
109                i(e)
110            }, 600), t(window).scroll(function() {
111                t(window).scrollTop() < 200 && a("top")
112            }), t("[data-anchor]").waypoint(function() {
113                a(t(this).attr("data-anchor"))
114            }, {
115                offset: 150
116            })
117        },
118        configureHeightAndWidth: function() {
119            t(".full-height").etFullHeight(), t(".st-pusher").etFullHeight(), t(window).resize(function() {
120                t(".copyright-bottom").css({
121                    marginTop: -t(".copyright-bottom").height(),
122                    marginBottom: 0
123                }).prev().css({
124                    paddingBottom: t(".copyright-bottom").height() + 20
125                })
126            }), t(".cta-block.style-fullwidth").etFullWidth(), t(".element-full-width").etFullWidth()
127        },
128        breadcrumbs: function() {
129            t(window).width() > 1200 && t(function() {
130                t(".bc-type-7, .bc-type-8").find(".container").attr("data-0", "opacity:1;-webkit-transform: scale(1);-moz-transform: scale(1);transform: scale(1);").attr("data-300", "opacity:0.3;-webkit-transform: scale(0.8);-moz-transform: scale(0.8);transform: scale(0.8);");
131                skrollr.init()
132            })
133        },
134        headerHeight: function(e) {
135            if ("unset" == e) return t(".fixNav-enabled .page-wrapper").attr("style", ""), void t(".fixNav-enabled .header-wrapper").attr("style", "");
136            t(".fixNav-enabled .page-wrapper").css("padding-top", t(".header-wrapper").height()), t(".fixNav-enabled .header-wrapper").css("position", "absolute"), t(function() {
137                t(".fixNav-enabled.breadcrumbs-type-7 .page-wrapper").css("padding-top", t(".header-wrapper").height())
138            })
139        },
140        fixedHeader: function() {
141            if (t(window).width() > 1200) {
142                (function() {
143                    if (t("body").hasClass("fixNav-enabled")) {
144                        var i = document.documentElement,
145                            a = document.querySelector(".template-content"),
146                            o = !1,
147                            n = t(".header-wrapper").height() + 100;
148                        t(".header-wrapper").hasClass("header-vertical") && (n = 300), t(".home .header-wrapper").hasClass("header-type-9") && (n = t(window).height()), window.addEventListener("scroll", function(t) {
149                            o || (o = !0, setTimeout(s, 250))
150                        }, !1)
151                    }
152
153                    function s() {
154                        (window.pageYOffset || i.scrollTop) >= n ? (t(".template-content").hasClass("fixed-active") || t(".header-wrapper").hasClass("slider-overlap") && !t("body").hasClass("breadcrumbs-type-9") && !t("body").hasClass("breadcrumbs-type-default") || e.headerHeight("set"), classie.add(a, "fixed-active"), setTimeout(function() {
155                            classie.add(a, "fixed-active-animate")
156                        }, 250)) : (classie.remove(a, "fixed-active"), classie.remove(a, "fixed-active-animate"), e.headerHeight("unset")), o = !1
157                    }
158                })();
159                t(function() {
160                    (t(".home .header-wrapper").hasClass("header-vertical") || t(".home .header-wrapper").hasClass("header-type-9")) && t(".page-wrapper").css("padding-top", 0)
161                }), t(function() {
162                    t(".fixed-icon").click(function() {
163                        return t(".template-content").toggleClass("show-fixed"), !1
164                    })
165                }), t(document).click(function(e) {
166                    var i = e.target;
167                    t(i).is(".header-wrapper") || t(i).parents().is(".header-wrapper") || t(".template-content").removeClass("show-fixed")
168                })
169            }
170        },
171        mediaelementplayer: function() {
172            t("video:not(.et-section-video, .tp-caption video)").mediaelementplayer({
173                success: function(e, i) {
174                    t("#" + i.id + "-mode").html("mode: " + e.pluginType)
175                }
176            })
177        },
178        windowsPhoneFix: function() {
179            if ("-ms-user-select" in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/)) {
180                var t = document.createElement("style");
181                t.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")), document.getElementsByTagName("head")[0].appendChild(t)
182            }
183        },
184        popup: function() {
185            var e = t.cookie("etheme_popup_closed");
186            t(".etheme-popup").magnificPopup({
187                items: {
188                    src: "#etheme-popup",
189                    type: "inline"
190                },
191                removalDelay: 300,
192                callbacks: {
193                    beforeOpen: function() {
194                        this.st.mainClass = "my-mfp-slide-bottom"
195                    },
196                    beforeClose: function() {
197                        "do-not-show" == t("#showagain:checked").val() && t.cookie("etheme_popup_closed", "do-not-show", {
198                            expires: 1,
199                            path: "/"
200                        })
201                    }
202                }
203            }), "do-not-show" != e && t(".etheme-popup").length > 0 && t("body").hasClass("open-popup") && t(".etheme-popup").magnificPopup("open")
204        },
205        searchPopup: function() {
206            t(".popup-with-form").magnificPopup({
207                type: "inline",
208                closeBtnInside: !0,
209                preloader: !1,
210                midClick: !0,
211                removalDelay: 300,
212                focus: "#Modalsearch",
213                mainClass: "my-mfp-slide-bottom effect-delay2",
214                callbacks: {
215                    beforeOpen: function() {
216                        t(window).width() < 700 ? this.st.focus = !1 : this.st.focus = "#Modalsearch"
217                    },
218                    open: function() {
219                        t("#searchModal").addClass("")
220                    }
221                }
222            }), t(".search-with-form").on("mouseover", function() {
223                t(this).find("input").focus()
224            }).on("touchstart click", ".popup-with-form", function() {
225                t(".search-with-form").find("input").focus()
226            }), t(".popup-btn").magnificPopup({
227                type: "inline",
228                midClick: !0
229            })
230        },
231        imagesLightbox: function() {
232            t("a[rel^='lightboxGall']").magnificPopup({
233                type: "image",
234                gallery: {
235                    enabled: !0
236                }
237            }), t(".images-popups-gallery").each(function() {
238                t(this).magnificPopup({
239                    delegate: "a[data-rel^='gallery']",
240                    type: "image",
241                    image: {
242                        verticalFit: !1
243                    },
244                    gallery: {
245                        enabled: !0
246                    },
247                    titleSrc: "title"
248                })
249            }), t("a[rel='lightbox'], a[rel='pphoto']").magnificPopup({
250                type: "image",
251                closeBtnInside: !0,
252                preloader: !1,
253                midClick: !0,
254                removalDelay: 300,
255                callbacks: {
256                    beforeOpen: function() {
257                        this.st.mainClass = "my-mfp-slide-bottom effect-delay2"
258                    }
259                }
260            })
261        },
262        animateCounter: function(t) {
263            var e = parseInt(t.text()),
264                i = t.data("value");
265            if (!(i <= e)) {
266                var a = 200,
267                    o = parseInt((i - e) / a.toFixed());
268                o < 1 && (o = 1, a = i - e);
269                var n = parseInt((((i - e) / o - a) * o).toFixed()) + e,
270                    s = 0,
271                    r = setInterval(function() {
272                        s++, n += o, t.text(n), s == a && clearInterval(r)
273                    }, 1)
274            }
275        },
276        loadInView: function() {
277            t(".animated-counter").each(function() {
278                t(this).waypoint(function() {
279                    e.animateCounter(t(this))
280                }, {
281                    offset: "100%"
282                })
283            }), t(".progress-bars").waypoint(function() {
284                i = 0, t(this).find(".progress-bar").each(function() {
285                    i++;
286                    var e = t(this),
287                        a = t(this).data("width");
288                    setTimeout(function() {
289                        e.find("div").animate({
290                            width: a + "%"
291                        }, 400), e.find("span").css({
292                            opacity: 1
293                        })
294                    }, 300 * i, "easeOutCirc")
295                })
296            }, {
297                offset: "85%"
298            })
299        },
300        cleanSpaces: function() {
301            t(".toggle-element ~ br").remove(), t(".toggle-element ~ p").remove(), t(".block-with-ico h5").next("p").remove(), t(".tab-content .row-fluid").next("p").remove(), t(".tab-content .row-fluid").prev("p").remove()
302        },
303        contentProdImages: function() {
304            t(".hover-effect-slider").each(function() {
305                var e = t(this),
306                    i = 0,
307                    a = e.find(".product-content-image"),
308                    o = a.data("images");
309                (o = o.split(",")).length;
310                o.length > 1 && (e.prepend('<div class="sm-arrow arrow-left">left</div><div class="sm-arrow arrow-right">right</div>'), e.find(".arrow-left").click(function(t) {
311                    i > 0 ? i-- : i = o.length - 1, a.find("img").attr("src", o[i]).attr("srcset", o[i]), e.find(".current-index").text(i + 1)
312                }
312), e.find(".arrow-right").click(function(t) {
313                    i < o.length - 1 ? i++ : i = 0, a.find("img").attr("src", o[i]).attr("srcset", o[i]), e.find(".current-index").text(i + 1)
314                }))
315            })
316        },
317        wishlist: function() {
318            t(".yith-wcwl-add-button.show").each(function() {
319                var e = t(this).find("a").text();
320                t(this).find("a").attr("data-hover", e)
321            })
322        },
323        mainNavigation: function() {
324            t.fn.et_menu = function(e) {
325                var i = {
326                    init: function(e) {
327                        i.el = e, t(window).resize(function() {
328                            i.setOffsets(), i.sideMenu()
329                        }), i.setOffsets(), e.find("a").has(".nav-item-tooltip").hover(function() {
330                            var e = "",
331                                i = t(this).find(".nav-item-tooltip"),
332                                a = i.find(">div").first().attr("data-src");
333                            a.length > 10 && (e = '<img src="' + a + '" />', i.html(e))
334                        })
335                    },
336                    setOffsets: function() {
337                        t("body").hasClass("rtl") || i.el.find(".item-design-full-width > .nav-sublist-dropdown").each(function() {
338                            if (t("body").prop("clientWidth") > 976 && !t(this).hasClass("w-positioned")) {
339                                var e = t(this),
340                                    i = t("#menu-menu"),
341                                    a = i.width(),
342                                    o = i.offset().left,
343                                    n = -1 * (e.offset().left - (o + (a - e.width()) / 2)) + 0;
344                                t(this).addClass("w-positioned"), t(this).css({
345                                    left: n,
346                                    marginLeft: 0
347                                })
348                            }
349                        })
350                    },
351                    sideMenu: function() {
352                        t(window).height() < 800 ? t(".header-wrapper").addClass("header-scrolling") : t(".header-wrapper").removeClass("header-scrolling")
353                    }
354                };
355                t.extend({
356                    type: "default"
357                }, e);
358                return i.init(this), this
359            }, t(".menu-main-container .menu:not(.header-type-vertical .menu)").et_menu({
360                type: "default"
361            })
362        },
363        backToTop: function() {
364            var e, i = !1,
365                a = t(".back-top");
366            t(window).scroll(function() {
367                window.clearTimeout(e), e = window.setTimeout(function() {
368                    t(window).scrollTop() <= 0 ? (i = !1, a.addClass("bounceOut").removeClass("bounceIn")) : 0 == i && (i = !0, a.stop(!0, !0).removeClass("bounceOut").addClass("bounceIn").click(function() {
369                        a.addClass("bounceOut").removeClass("bounceIn")
370                    }))
371                }, 400)
372            }), t(".back-top").click(function(e) {
373                return t("html, body").animate({
374                    scrollTop: 0
375                }, 600), !1
376            })
377        },
378        portfolio: function() {
379            t(".portfolio").imagesLoaded(function() {
380                if (t(".portfolio-item")[0]) {
381                    var e = t(this);
382                    e.isotope({
383                        itemSelector: ".portfolio-item"
384                    }), t(window).smartresize(function() {
385                        e.isotope({
386                            itemSelector: ".portfolio-item"
387                        })
388                    }), e.parent().find(".portfolio-filters a").click(function() {
389                        var i = t(this).attr("data-filter");
390                        return e.parent().find(".portfolio-filters a").removeClass("active"), t(this).hasClass("active") || t(this).addClass("active"), e.isotope({
391                            filter: i
392                        }), !1
393                    })
394                }
395            }), setTimeout(function() {
396                t(".portfolio").addClass("with-transition"), t(".portfolio-item").addClass("with-transition"), t(window).resize()
397            }, 500)
398        },
399        isotope: function() {
400            var e = t(".blog-masonry");
401            e.isotope({
402                itemSelector: ".post-grid"
403            }), t(window).smartresize(function() {
404                e.isotope({
405                    itemSelector: ".post-grid"
406                })
407            });
408            var i = t(".isotope-container");
409            t(".et_isotope").each(function() {
410
411                var e = t(this);
412                e.isotope({
413                    itemSelector: ".et_isotope-item"
414                }), t(window).smartresize(function() {
415                    e.isotope({
416                        itemSelector: ".et_isotope-item"
417                    })
418                }), setTimeout(function() {
419                    e.addClass("with-transition"), e.find(".et_isotope-item").addClass("with-transition")
420                }, 500)
421            }), i.each(function() {
422                var e = t(this),
423                    i = e.find(".et_isotope");
424                e.find(".et_categories_filter a").data("isotope", i).click(function(e) {
425                    e.preventDefault();
426                    var i = t(this).data("isotope");
427                    t(this).parent().parent().find(".active").removeClass("active"), t(this).addClass("active"), i.isotope({
428                        filter: t(this).attr("data-filter")
429                    })
430                })
431            })
432        },
433        testimonials: function() {
434            t(".testimonials-slider").each(function() {
435                var e = 1 == t(this).data("navigation"),
436                    i = t(this).data("interval");
437                t(this).owlCarousel({
438                    items: 1,
439                    lazyLoad: !0,
440                    autoPlay: i,
441                    navigation: e,
442                    navigationText: !1,
443                    rewindNav: !0,
444                    itemsCustom: [
445                        [0, 1],
446                        [479, 1],
447                        [619, 1],
448                        [768, 1],
449                        [1200, 1],
450                        [1600, 1]
451                    ]
452                })
453            })
454        },
455        woocommerce: function() {
456            t(".woocommerce-review-link").click(function() {
457                t("#tab_reviews").click()
458            }), t("form.variations_form").on("found_variation", function(e, i) {
459                t(this);
460                var a = t(this).closest(".product"),
461                    o = a.find(".woocommerce-main-image img:eq(0)"),
462                    n = a.find(".woocommerce-main-image"),
463                    s = a.find(".product-lightbox-btn").first(),
464                    r = (o.attr("data-o_src"), o.attr("data-o_title"), n.attr("data-o_href"), i.image_src),
465                    c = i.image_link;
466                i.image_title;
467                n.attr("href", r), t(".main-images").hasClass("zoom-enabled") ? (t(window).width() > 768 && r.length > 5 && c.length > 5 && n.swinxyzoom("load", r, c), n.attr("href", c)) : n.attr("href", c), c.length > 5 && s.attr("href", c);
468                var d = t(".main-images").data("owlCarousel");
469                void 0 !== d && d.goTo(0)
470            }).on("reset_image", function(e) {
471                var i = t(this).closest(".product"),
472                    a = i.find(".woocommerce-main-image img:eq(0)"),
473                    o = i.find(".woocommerce-main-image"),
474                    n = i.find(".product-lightbox-btn").first(),
475                    s = a.attr("data-o_src"),
476                    r = o.attr("data-o_href");
477                o.attr("href", r), t(".main-images").hasClass("zoom-enabled") ? (t(window).width() > 768 && void 0 !== a.attr("data-o_src") && s.length > 5 && r.length > 5 && o.swinxyzoom("load", s, r), o.attr("href", r)) : o.attr("href", r), n.attr("href", r);
478                var c = t(".main-images").data("owlCarousel");
479                void 0 !== c && c.goTo(0)
480            }), t(".variations_form .variations select").change(), t(".product-lightbox-btn").magnificPopup({
481                type: "image"
482            })
483        },
484        productsViewMode: function() {
485            var e = "switcher-active",
486                i = "products-grid",
487                a = "products-list";
488            t(".switchToList").click(function() {
489                t.cookie("products_page") && "grid" != t.cookie("products_page") || (console.log("List Toggled"), t(".switchToList").addClass(e), t(".switchToGrid").removeClass(e), t(".main-products-loop").fadeOut(300, function() {
490                    t(this).removeClass(i).addClass(a).fadeIn(300), t(".product .price").css("left", "35%"), t(".product .price").css("bottom", "30px"), t.cookie("products_page", "list", {
491                        expires: 3,
492                        path: "/"
493                    })
494                }))
495            }), t(".switchToGrid").click(function() {
496                t.cookie("products_page") && "list" != t.cookie("products_page") || (console.log("Grid Toggled"), t(".switchToGrid").addClass(e), t(".switchToList").removeClass(e), t(".main-products-loop").fadeOut(300, function() {
497                    t(this).removeClass(a).addClass(i).fadeIn(300), t(".product .price").css("left", "50%"), t(".product .price").css("bottom", "55px"), t.cookie("products_page", "grid", {
498                        expires: 3,
499                        path: "/"
500                    })
501                }))
502            })
503        },
504        checkViewMode: function() {
505            "grid" == t.cookie("products_page") ? (t(".main-products-loop .products-loop").removeClass("products-list").addClass("products-grid"), t(".switchToGrid").addClass("switcher-active")) : "list" == t.cookie("products_page") ? (t(".main-products-loop .products-loop").removeClass("products-grid").addClass("products-list"), t(".switchToList").addClass("switcher-active")) : "list_grid" == etConfig.view_mode_default || "list" == etConfig.view_mode_default ? t(".switchToList").addClass("switcher-active") : t(".switchToGrid").addClass("switcher-active")
506        },
507        isIE: function() {
508            return -1 !== navigator.userAgent.indexOf("MSIE") || navigator.appVersion.indexOf("Trident/") > 0
509        },
510        addToCart: function(i, a, o) {
511            var n = t(".etheme-simple-product").eModal();
512            o && n.eModal("showModal"), e.isIE() && a.addClass("adding-to-cart"), t.post(etConfig.ajaxurl, i, function(i) {
513                if (o) {
514                    var s;
515                    s = t(".images img, .product-images img").length > 0 ? t(".images img, .product-images img").first().attr("src") : t(".product-thumbnails img").first().attr("src");
516                    var r = t(".product_title").first().text(),
517                        c = etConfig.successfullyAdded;
518                    1 == i.error && (c = etConfig.warningAdded), n.eModal("endLoading").eModal("setTitle", r).eModal("addImage", s).eModal("addText", c).eModal("addBtn", {
519                        title: etConfig.contBtn,
520                        href: "javascript:void(0);",
521                        cssClass: "btn filled",
522                        hideOnClick: !0
523                    }).eModal("addBtn", {
524                        title: etConfig.checkBtn,
525                        href: etConfig.checkoutUrl,
526                        cssClass: "btn filled active"
527                    })
528                }
529                if (!i) return !1;
530                var d = window.location.toString();
531                if (d = d.replace("add-to-cart", "added-to-cart"), i.error && i.product_url) return window.location = i.product_url, !1;
532                if ("yes" == woocommerce_params.cart_redirect_after_add) return window.location = woocommerce_params.cart_url, !1;
533                a.parent().find("#floatingCirclesG").remove();
534                var l = i.fragments,
535                    p = i.cart_hash;
536                return e.isIE() && a.removeClass("adding-to-cart"), setTimeout(function() {
537                    a.parent().parent().removeClass("loading"), a.removeClass("added")
538                }, 3e3), t("#cartModal").replaceWith(l.cart_modal), t(".widget_shopping_cart").replaceWith(t(l.top_cart).find(".widget_shopping_cart")), t(".shopping-container").replaceWith(l.top_cart), t("body").trigger("cart_widget_refreshed"), t(".widget_shopping_cart, .updating").stop(!0).css("opacity", "1").unblock(), t(".shop_table.cart").load(d + " .shop_table.cart:eq(0) > *", function() {
539                    t(".shop_table.cart").stop(!0).css("opacity", "1").unblock(), t("body").trigger("cart_page_refreshed")
540                }), t(".cart_totals").load(d + " .cart_totals:eq(0) > *", function() {
541                    t(".cart_totals").stop(!0).css("opacity", "1").unblock()
542                }), t("body").trigger("added_to_cart", [l, p]), !0
543            })
544        },
545        ajaxAddToCartInit: function() {
546            t(".etheme-simple-product, .ajax-cart-enable .variations_form .single_add_to_cart_button").on("click", function(i) {
547                i.preventDefault();
548                var a = t(this);
549                if (a.is(".single_add_to_cart_button, .etheme-simple-product, .product_type_downloadable, .product_type_virtual")) {
550                    t("#top-cart").addClass("updating");
551                    var o = t("form.cart"),
552                        n = (o.attr("action"), {});
553                    o.find("select").each(function() {
554                        var e = t(this).attr("name"),
555                            i = t(this).val();
556                        n[e] = i
557                    });
558                    var s = {
559                        action: "et_woocommerce_add_to_cart",
560                        product_id: o.find('[name="add-to-cart"]').val(),
561                        quantity: o.find(".qty").val(),
562                        variation_id: o.find('[name="variation_id"]').val(),
563                        variation: n
564                    };
565                    return e.addToCart(s, a, !0), !1
566                }
567                return !0
568            }), e.isIE() || [].slice.call(document.querySelectorAll(".progress-button")).forEac
568h(function(t) {
569                new ProgressButton(t, {
570                    callback: function(t) {
571                        var e = 0,
572                            i = setInterval(function() {
573                                e = Math.min(e + .01 * Math.random(), 1), t._setProgress(e), 1 === e && (t._stop(1), clearInterval(i))
574                            }, 5)
575                    }
576                })
577            }), t(".etheme_add_to_cart_button").on("click", function() {
578                var i = t(this);
579                if (i.is(".product_type_simple, .product_type_downloadable, .product_type_virtual")) {
580                    if (!i.attr("data-product_id")) return !0;
581                    var a = {
582                        action: "et_woocommerce_add_to_cart",
583                        product_id: i.attr("data-product_id"),
584                        quantity: i.attr("data-quantity")
585                    };
586                    return e.addToCart(a, i, !1), !1
587                }
588                return !0
589            })
590        },
591        quickView: function() {
592            t(document.body).on("click", ".show-quicklyssss, .show-quickly-btnssss", function() {
593                var e = t(this),
594                    i = t(this).parent().parent().parent(),
595                    a = e.data("prodid");
596                t.ajax({
597                    url: etConfig.ajaxurl,
598                    method: "POST",
599                    data: {
600                        action: "et_product_quick_view",
601                        prodid: a
602                    },
603                    dataType: "html",
604                    beforeSend: function() {
605                        i.addClass("loading"), i.append('<div id="floatingCirclesG"><div class="f_circleG" id="frotateG_01"></div><div class="f_circleG" id="frotateG_02"></div><div class="f_circleG" id="frotateG_03"></div><div class="f_circleG" id="frotateG_04"></div><div class="f_circleG" id="frotateG_05"></div><div class="f_circleG" id="frotateG_06"></div><div class="f_circleG" id="frotateG_07"></div><div class="f_circleG" id="frotateG_08"></div></div>')
606                    },
607                    complete: function() {
608                        i.find("#floatingCirclesG").remove(), i.removeClass("loading")
609                    },
610                    success: function(e) {
611                        t.magnificPopup.open({
612                            items: {
613                                src: '<div class="quick-view-popup mfp-with-anim"><div class="doubled-border">' + e + "</div></div>"
614                            },
615                            type: "inline",
616                            removalDelay: 300,
617                            callbacks: {
618                                beforeOpen: function() {
619                                    this.st.mainClass = "my-mfp-slide-bottom"
620                                }
621                            }
622                        }, 0), t(function() {
623                            t(".variations_form").wc_variation_form(), t(".variations_form .variations select").change()
624                        }), t(".images").addClass("shown")
625                    },
626                    error: function() {
627                        t.magnificPopup.open({
628                            items: {
629                                src: '<div class="quick-view-popup mfp-with-anim"><div class="doubled-border">Error with AJAX request</div></div>'
630                            },
631                            type: "inline",
632                            removalDelay: 500,
633                            callbacks: {
634                                beforeOpen: function() {
635                                    this.st.mainClass = "mfp-zoom-in-to-left-out"
636                                }
637                            }
638                        }, 0)
639                    }
640                })
641            })
642        },
643        searchform: function() {
644            var e = t(".search.hide-input").find("#searchform"),
645                i = e.find(".button"),
646                a = e.find('input[type="text"]');
647            i.click(function(e) {
648                e.preventDefault(), a.fadeIn(200).focus(), t("body").addClass("search-input-shown"), t(document).click(function(e) {
649                    var i = e.target;
650                    t(i).is(".search.hide-input") || t(i).parents().is(".search.hide-input") || (a.fadeOut(200), t("body").removeClass("search-input-shown"))
651                })
652            })
653        },
654        tabs: function() {
655            var e, i = t(".tabs");
656            t(".tabs > p > a").unwrap("p"), t(".left-bar, .right-bar").each(function() {
657                var i = t(this);
658                (e = i.find("> a.tab-title").clone().removeClass("tab-title").addClass("tab-title-left")).first().addClass("opened");
659                var a = t('<div class="left-titles"></div>').prependTo(i);
660                a.html(e), i.find(".tab-content").css({
661                    minHeight: a.height()
662                })
663            }), i.each(function() {
664                var e = t(this);
665                e.find(".tab-title").first().addClass("opened").next().show(), e.find(".tab-title, .tab-title-left").click(function(i) {
666                    i.preventDefault();
667                    var a = t(this).attr("id");
668                    t(this).hasClass("opened") ? (e.hasClass("accordion") || t(window).width() < 767 && !e.hasClass("products-tabs")) && (t(this).removeClass("opened"), t("#content_" + a).slideUp(250)) : (e.find(".tab-title, .tab-title-left").each(function() {
669                        var i = t(this).attr("id");
670                        t(this).removeClass("opened"), e.hasClass("accordion") || t(window).width() < 767 && !e.hasClass("products-tabs") ? t("#content_" + i).slideUp(250) : t("#content_" + i).hide()
671                    }), e.hasClass("accordion") || t(window).width() < 767 && !e.hasClass("products-tabs") ? setTimeout(function() {
672                        t("#content_" + a).addClass("tab-content").slideDown(250)
673                    }, 1) : t("#content_" + a).show(), t(this).addClass("opened"))
674                })
675            })
676        },
677        categoriesAccordion: function() {
678            t.fn.etAccordionMenu = function(e) {
679                var i = t(this);
680                t(".product-categories");
681                i.addClass("with-accordion");
682                return i.find("li").has(".children, .nav-sublist-dropdown").has("li").addClass("parent-level0").prepend('<div class="open-this">+</div>'), i.find(".current-cat.parent-level0, .current-cat, .current-cat-parent").length > 0 ? i.find(".current-cat.parent-level0, .current-cat-parent").find(".open-this").html("&ndash;").parent().addClass("opened").find("ul.children").show() : i.find(">li").first().find(".open-this").html("&ndash;").parent().addClass("opened").find("ul.children").show(), i.find(".open-this").click(function() {
683                    t(this).parent().hasClass("opened") ? t(this).html("+").parent().removeClass("opened").find("> ul, >
683 div.nav-sublist-dropdown").slideUp(200) : t(this).html("&ndash;").parent().addClass("opened").find("> ul, > div.nav-sublist-dropdown").slideDown(200)
684                }), this
685            }, etConfig.catsAccordion && t(".product-categories").etAccordionMenu()
686        },
687        toggles: function() {
688            var e = t(".toggle-block").find(".toggle-element");
689            e.click(function(e) {
690                e.preventDefault(), t(this).hasClass("opened") ? t(this).removeClass("opened").find(".open-this").html("+").parent().parent().find(".toggle-content").slideUp(200) : (t(this).parent().hasClass("noMultiple") && t(this).parent().find(".toggle-element").removeClass("opened").find(".open-this").html("+").parent().parent().find(".toggle-content").slideUp(200), t(this).addClass("opened").find(".open-this").html("&ndash;").parent().parent().find(".toggle-content").slideDown(200))
691            })
692        },
693        closeParentBtn: function() {
694            t(".close-parent").click(function(e) {
695                t(this).parent().slideUp(100)
696            })
697        },
698        contactForm: function() {
699            var i = t("#contact-form"),
700                a = t(".spinner");
701            t(".required-field").focus(function() {
702                t(this).removeClass("validation-failed")
703            }), i.on("click", "#submit", function(o) {
704                o.preventDefault(), t("#contactsMsgs").html(""), a.show(), i.find(".required-field").each(function() {
705                    "" == t(this).val() && t(this).addClass("validation-failed")
706                });
707                i.attr("action");
708                var n = i.serialize();
709                n += "&action=et_send_msg_action", t.ajax({
710                    url: etConfig.ajaxurl,
711                    method: "GET",
712                    data: n,
713                    error: function(e) {
714                        t("#contactsMsgs").html('<p class="error">Error while ajax request<span class="close-parent"></span></p>'), a.hide()
715                    },
716                    success: function(o) {
717                        "success" == o.status ? (t("#contactsMsgs").html('<p class="success">' + o.msg + '<span class="close-parent"></span></p>'), i.find("input[type=text], textarea").val("")) : t("#contactsMsgs").html('<p class="error">' + o.msg + '<span class="close-parent"></span></p>'), a.hide(), e.closeParentBtn()
718                    }
719                })
720            })
721        },
722        commentsForm: function() {
723            var e = t("#commentform");
724            e.on("click", "#submit", function(i) {
725                t("#commentsMsgs").html(""), e.find(".required-field").each(function() {
726                    "" == t(this).val() && (t(this).addClass("validation-failed"), i.preventDefault())
727                })
728            })
729        },
730        mobileMenu: function() {
731         /*   t(".navbar-toggle").toggle(function() {
732                t(".mobile-menu-wrapper").slideDown(200)
733            }, function() {
734                t(".mobile-menu-wrapper").slideUp(200)
735            });*/
736            var e = t(".mobile-menu-wrapper .menu");
737            e.find("li:has(ul)", this).each(function() {
738                t(this).prepend('<span class="open-child">(open)</span>')
739            }), e.on("click", ".open-child", function() {
740                t(this).parent().hasClass("over") ? t(this).parent().removeClass("over").find(">ul").slideUp(200) : (t(this).parent().parent().find(">li.over").removeClass("over").find(">ul").slideUp(200), t(this).parent().addClass("over").find(">ul").slideDown(200))
741            }), t(function() {
742               /* t(".navbar-toggle").click(function() {
743                    return t(this).toggleClass("show-nav"), !1
744                })*/
745            })
746        }
747    };
748    e.newJqueryMethods(), t(document).ready(function() {
749        e.init(), t.get("/shop/static/minibasket.html", function(e) {
750            var i = t(".shopping-container");
751            i.length > 0 && (i.empty(), i.append(e))
752        })
753    })
754}(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.