PageSourceSearch

https://vseotunise.ru/wp-content/themes/ucreate/js/custom.js

js vseotunise.ru collected 2026-10-03 00:43:49 UTC 16,459 bytes, 380 lines download raw bytes

1jQuery(document).ready(function($) {
2 
3     // выпадающий поиск
4
5  var widgetOverlay =$('.searchpage-field');
6	var widgetTrigger =$('.fa-search');
7		var widgetClose =$('.fa-close');
8var widgetOverlayHeight = widgetOverlay.height() + 2;
9	widgetOverlay.css({
10		marginTop : -widgetOverlayHeight,
11		display : 'block'
12	});
13		widgetTrigger.click( function() {
14		widgetOverlay.animate({
15			marginTop : 0
16		}, 300, 'linear');
17	 
18	widgetClose.click( function() {
19			widgetOverlay.animate({
20			marginTop : -widgetOverlayHeight
21		}, 300, 'linear');
22
23 
24	});
25
26});
27
28
29    // выпадающее меню
30    
31$('.top-menu')
32.superfish({
33pathClass : 'current',
34delay : 300
35});
36
37
38    // мобильное меню
39
40 $("#mobilemenu").mmenu({
41         position: "left",
42         classes: "mm-slide",
43 counters: true,
44header : {
45           add:true,
46       update:true,
47       title: "Мобильное меню"
48    }
49});
50
51    // кнопка вверх
52    
53  $(window).scroll(function () {
54            if ( $(this).scrollTop() > 100) {
55            $('#backtop').fadeIn();
56            } else {
57                $('#backtop').fadeOut();
58            }
59        });
60        
61        
62        $('#backtop').click(function(){
63        $('html, body').animate({scrollTop:0}, 'slow');
64            return false;
65        });    
66    
67    
68
69    // загрузка при скроллинге
70
71$('.blog-thumb').addClass('no-display');
72 $(' .blog-thumb').one('inview', function() {
73 $(this).addClass('appear');
74   });
75   
76       // анимация
77   
78     $(function() {
79        new WOW().init();
80    });
81    
82    
83        // табы
84 
85  + function(a) {
86    "use strict";
87    var b = function(a, b) {
88        this.type = this.options = this.enabled = this.timeout = this.hoverState = this.$element = null, this.init("tooltip", a, b)
89    };
90    b.DEFAULTS = {
91        animation: !0,
92        placement: "top",
93        selector: !1,
94        template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
95        trigger: "hover focus",
96        title: "",
97        delay: 0,
98        html: !1,
99        container: !1
100    }, b.prototype.init = function(b, c, d) {
101        this.enabled=!0, this.type = b, this.$element = a(c), this.options = this.getOptions(d);
102        var e = this.options.trigger.split(" ");
103        for (var f = e.length; f--;) {
104            var g = e[f];
105            if (g == "click")
106                this.$element.on("click." + this.type, this.options.selector, a.proxy(this.toggle, this));
107            else if (g != "manual") {
108                var h = g == "hover" ? "mouseenter": "focus", i = g == "hover" ? "mouseleave": "blur";
109                this.$element.on(h + "." + this.type, this.options.selector, a.proxy(this.enter, this)), this.$element.on(i + "." + this.type, this.options.selector, a.proxy(this.leave, this))
110            }
111        }
112        this.options.selector ? this._options = a.extend({}, this.options, {
113            trigger: "manual",
114            selector: ""
115        }) : this.fixTitle()
116    }, b.prototype.getDefaults = function() {
117        return b.DEFAULTS
118    }, b.prototype.getOptions = function(b) {
119        return b = a.extend({}, this.getDefaults(), this.$element.data(), b), b.delay && typeof b.delay == "number" && (b.delay = {
120            show: b.delay,
121            hide: b.delay
122        }), b
123    }, b.prototype.getDelegateOptions = function() {
124        var b = {}, c = this.getDefaults();
125        return this._options && a.each(this._options, function(a, d) {
126            c[a] != d && (b[a] = d)
127        }), b
128    }, b.prototype.enter = function(b) {
129        var c = b instanceof this.constructor ? b: a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs." + this.type);
130        clearTimeout(c.timeout), c.hoverState = "in";
131        if (!c.options.delay ||!c.options.delay.show)
132            return c.show();
133        c.timeout = setTimeout(function() {
134            c.hoverState == "in" && c.show()
135        }, c.options.delay.show)
136    }, b.prototype.leave = function(b) {
137        var c = b instanceof this.constructor ? b: a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs." + this.type);
138        clearTimeout(c.timeout), c.hoverState = "out";
139        if (!c.options.delay ||!c.options.delay.hide)
140            return c.hide();
141        c.timeout = setTimeout(function() {
142            c.hoverState == "out" && c.hide()
143        }, c.options.delay.hide)
144    }, b.prototype.show = function() {
145        var b = a.Event("show.bs." + this.type);
146        if (this.hasContent() && this.enabled) {
147            this.$element.trigger(b);
148            if (b.isDefaultPrevented())
149                return;
150            var c = this.tip();
151            this.setContent(), this.options.animation && c.addClass("fade");
152            var d = typeof this.options.placement == "function" ? this.options.placement.call(this, c[0], this.$element[0]): this.options.placement, e = /\s?auto?\s?/i, f = e.test(d);
153            f && (d = d.replace(e, "") || "top"), c.detach().css({
154                top: 0,
155                left: 0,
156                display: "block"
157            }).addClass(d), this.options.container ? c.appendTo(this.options.container) : c.insertAfter(this.$element);
158            var g = this.getPosition(), h = c[0].offsetWidth, i = c[0].offsetHeight;
159            if (f) {
160                var j = this.$element.parent(), k = d, l = document.documentElement.scrollTop || document.body.scrollTop, m = this.options.container == "body" ? window.innerWidth: j.outerWidth(), n = this.options.container == "body" ? window.innerHeight: j.outerHeight(), o = this.options.container == "body" ? 0: j.offset().left;
161                d = d == "bottom" && g.top + g.height + i - l > n ? "top" : d == "top" && g.top - l - i < 0 ? "bottom" : d == "right" && g.right + h > m ? "left" : d == "left" && g.left - h < o ? "right" : d, c.removeClass(k).addClass(d)
162            }
163            var p = this.getCalculatedOffset(d, g, h, i);
164            this.applyPlacement(p, d), this.$element.trigger("shown.bs." + this.type)
165        }
166    }, b.prototype.applyPlacement = function(a, b) {
167        var c, d = this.tip(), e = d[0].offsetWidth, f = d[0].offsetHeight, g = parseInt(d.css("margin-top"), 10), h = parseInt(d.css("margin-left"), 10);
168        isNaN(g) && (g = 0), isNaN(h) && (h = 0), a.top = a.top + g, a.left = a.left + h, d.offset(a).addClass("in");
169        var i = d[0].offsetWidth, j = d[0].offsetHeight;
170        b == "top" && j != f && (c=!0, a.top = a.top + f - j);
171        if (/bottom|top/.test(b)) {
172            var k = 0;
173            a.left < 0 && (k = a.left*-2, a.left = 0, d.offset(a), i = d[0].offsetWidth, j = d[0].offsetHeight), this.replaceArrow(k - e + i, i, "left")
174        } else 
175            this.replaceArrow(j - f, j, "top");
176        c && d.offset(a)
177    }, b.prototype.replaceArrow = function(a, b, c) {
178        this.arrow().css(c, a ? 50 * (1 - a / b) + "%" : "")
179    }, b.prototype.setContent = function() {
180        var a = this.tip(), b = this.getTitle();
181        a.find(".tooltip-inner")[this.options.html ? "html": "text"](b), a.removeClass("fade in top bottom left right")
182    }, b.prototype.hide = function() {
183        function e() {
184            b.hoverState != "in" && c.detach()
185        }
186        var b = this, c = this.tip(), d = a.Event("hide.bs." + this.type);
187        this.$element.trigger(d);
188        if (d.isDefaultPrevented())
189            return;
190        return c.removeClass("in"), a.support.transition && this.$tip.hasClass("fade") ? c.one(a.support.transition.end, e).emulateTransitionEnd(150) : e(), this.$element.trigger("hidden.bs." + this.type), this
191    }, b.prototype.fixTitle = function() {
192        var a = this.$element;
193        (a.attr("title") || typeof a.attr("data-original-title") != "string") && a.attr("data-original-title", a.attr("title") || "").attr("title", "")
194    }, b.prototype.hasContent = function() {
195        return this.getTitle()
196    }, b.prototype.getPosition = function() {
197        var b = this.$element[0];
198        return a.extend({}, typeof b.getBoundingClientRect == "function" ? b.getBoundingClientRect() : {
199            width: b.offsetWidth,
200            height: b.offsetHeight
201        }, this.$element.offset())
202    }, b.prototype.getCalculatedOffset = function(a, b, c, d) {
203        return a == "bottom" ? {
204            top: b.top + b.height,
205            left: b.left + b.width / 2 - c / 2
206        } : a == "top" ? {
207            top: b.top - d,
208            left: b.left + b.width / 2 - c / 2
209        } : a == "left" ? {
210            top: b.top + b.height / 2 - d / 2,
211            left: b.left - c
212        } : {
213            top: b.top + b.height / 2 - d / 2,
214            left: b.left + b.width
215        }
216    }, b.prototype.getTitle = function() {
217        var a, b = this.$element, c = this.options;
218        return a = b.attr("data-original-title") || (typeof c.title == "function" ? c.title.call(b[0]) : c.title), a
219    }, b.prototype.tip = function() {
220        return this.$tip = this.$tip || a(this.options.template)
221    }, b.prototype.arrow = function() {
222        return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow")
223    }, b.prototype.validate = function() {
224        this.$element[0].parentNode || (this.hide(), this.$element = null, this.options = null)
225    }, b.prototype.enable = function() {
226        this.enabled=!0
227    }, b.prototype.disable = function() {
228        this.enabled=!1
229    }, b.prototype.toggleEnabled = function() {
230        this.enabled=!this.enabled
231    }, b.prototype.toggle = function(b) {
232        var c = b ? a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs." + this.type): this;
233        c.tip().hasClass("in") ? c.leave(c) : c.enter(c)
234    }, b.prototype.destroy = function() {
235        this.hide().$element.off("." + this.type).removeData("bs." + this.type)
236    };
237    var c = a.fn.tooltip;
238    a.fn.tooltip = function(c) {
239        return this.each(function() {
240            var d = a(this), e = d.data("bs.tooltip"), f = typeof c == "object" && c;
241            e || d.data("bs.tooltip", e = new b(this, f)), typeof c == "string" && e[c]()
242        })
243    }, a.fn.tooltip.Constructor = b, a.fn.tooltip.noConflict = function() {
244        return a.fn.tooltip = c, this
245    }
246}(jQuery), + function(a) {
247    "use strict";
248    var b = function(b) {
249        this.element = a(b)
250    };
251    b.prototype.show = function() {
252        var b = this.element, c = b.closest("ul:not(.dropdown-menu)"), d = b.data("target");
253        d || (d = b.attr("href"), d = d && d.replace(/.*(?=#[^\s]*$)/, ""));
254        if (b.parent("li").hasClass("active"))
255            return;
256        var e = c.find(".active:last a")[0], f = a.Event("show.bs.tab", {
257            relatedTarget: e
258        });
259        b.trigger(f);
260        if (f.isDefaultPrevented())
261            return;
262        var g = a(d);
263        this.activate(b.parent("li"), c), this.activate(g, g.parent(), function() {
264            b.trigger({
265                type: "shown.bs.tab",
266                relatedTarget: e
267            })
268        })
269    }, b.prototype.activate = function(b, c, d) {
270        function g() {
271            e.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"), b.addClass("active"), f ? (b[0].offsetWidth, b.addClass("in")) : b.removeClass("fade"), b.parent(".dropdown-menu") && b.closest("li.dropdown").addClass("active"), d && d()
272        }
273        var e = c.find("> .active"), f = d && a.support.transition && e.hasClass("fade");
274        f ? e.one(a.support.transition.end, g).emulateTransitionEnd(150) : g(), e.removeClass("in")
275    };
276    var c = a.fn.tab;
277    a.fn.tab = function(c) {
278        return this.each(function() {
279            var d = a(this), e = d.data("bs.tab");
280            e || d.data("bs.tab", e = new b(this)), typeof c == "string" && e[c]()
281        })
282    }, a.fn.tab.Constructor = b, a.fn.tab.noConflict = function() {
283        return a.fn.tab = c, this
284    }, a(document).on("click.bs.tab.data-api", '[data-toggle="tab"], [data-toggle="pill"]', function(b) {
285        b.preventDefault(), a(this).tab("show")
286    })
287}(jQuery), + function(a) {
288    "use strict";
289    var b = function(c, d) {
290        this.$element = a(c), this.options = a.extend({}, b.DEFAULTS, d), this.transitioning = null, this.options.parent && (this.$parent = a(this.options.parent)), this.options.toggle && this.toggle()
291    };
292    b.DEFAULTS = {
293        toggle: !0
294    }, b.prototype.dimension = function() {
295        var a = this.$element.hasClass("width");
296        return a ? "width" : "height"
297    }, b.prototype.show = function() {
298        if (this.transitioning || this.$element.hasClass("in"))
299            return;
300        var b = a.Event("show.bs.collapse");
301        this.$element.trigger(b);
302        if (b.isDefaultPrevented())
303            return;
304        var c = this.$parent && this.$parent.find("> .bean-panel > .in");
305        if (c && c.length) {
306            var d = c.data("bs.collapse");
307            if (d && d.transitioning)
308                return;
309            c.collapse("hide"), d || c.data("bs.collapse", null)
310        }
311        var e = this.dimension();
312        this.$element.removeClass("collapse").addClass("bean-collapsing")[e](0), this.transitioning = 1;
313        var f = function() {
314            this.$element.removeClass("bean-collapsing").addClass("in")[e]("auto"), this.transitioning = 0, this.$element.trigger("shown.bs.collapse")
315        };
316        if (!a.support.transition)
317            return f.call(this);
318        var g = a.camelCase(["scroll", e].join("-"));
319        this.$element.one(a.support.transition.end, a.proxy(f, this)).emulateTransitionEnd(350)[e](this.$element[0][g])
320    }, b.prototype.hide = function() {
321        if (this.transitioning ||!this.$element.hasClass("in"))
322            return;
323        var b = a.Event("hide.bs.collapse");
324        this.$element.trigger(b);
325        if (b.isDefaultPrevented())
326            return;
327        var c = this.dimension();
328        this.$element[c](this.$element[c]())[0].offsetHeight, this.$element.addClass("bean-collapsing").removeClass("collapse").removeClass("in"), this.transitioning = 1;
329        var d = function() {
330            this.transitioning = 0, this.$element.trigger("hidden.bs.collapse").removeClass("bean-collapsing").addClass("collapse")
331        };
332        if (!a.support.transition)
333            return d.call(this);
334        this.$element[c](0).one(a.support.transition.end, a.proxy(d, this)).emulateTransitionEnd(350)
335    }, b.prototype.toggle = function() {
336        this[this.$element.hasClass("in") ? "hide": "show"]()
337    };
338    var c = a.fn.collapse;
339    a.fn.collapse = function(c) {
340        return this.each(function() {
341            var d = a(this), e = d.data("bs.collapse"), f = a.extend({}, b.DEFAULTS, d.data(), typeof c == "object" && c);
342            e || d.data("bs.collapse", e = new b(this, f)), typeof c == "string" && e[c]()
343        })
344    }, a.fn.collapse.Constructor = b, a.fn.collapse.noConflict = function() {
345        return a.fn.collapse = c, this
346    }, a(document).on("click.bs.collapse.data-api", "[data-toggle=collapse]", function(b) {
347        var c = a(this), d, e = c.attr("data-target") || b.preventDefault() || (d = c.attr("href")) && d.replace(/.*(?=#[^\s]+$)/, ""), f = a(e), g = f.data("bs.collapse"), h = g ? "toggle": c.data(), i = c.attr("data-parent"), j = i && a(i);
348        if (!g ||!g.transitioning)
349            j && j.find('[data-toggle=collapse][data-parent="' + i + '"]').not(c).addClass("collapsed"), c[f.hasClass("in") ? "addClass": "removeClass"]("collapsed");
350        f.collapse(h)
351    })
352}(jQuery), + function(a) {
353    function b() {
354        var a = document.createElement("bootstrap"), b = {
355            WebkitTransition: "webkitTransitionEnd",
356            MozTransition: "transitionend",
357            OTransition: "oTransitionEnd otransitionend",
358            transition: "transitionend"
359        };
360        for (var c in b)
361            if (a.style[c] !== undefined)
362                return {
363                    end: b[c]
364                }
365    }
366    "use strict", a.fn.emulateTransitionEnd = function(b) {
367        var c=!1, d = this;
368        a(this).one(a.support.transition.end, function() {
369            c=!0
370        });
371        var e = function() {
372            c || a(d).trigger(a.support.transition.end)
373        };
374        return setTimeout(e, b), this
375    }, a(function() {
376        a.support.transition = b()
377    })
378}(jQuery)
379 
380	});

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.