$(window).load(function() { $(".se-pre-con").fadeOut("slow") }), $(document).ready(function() { $(".signal_modal").on("hidden.bs.modal", function() { $(this).find("#signal-form")[0].reset() }), $(".show-on-hover").hover(function() { $(this).find(".dropdown-menu").slideDown(200) }, function() { $(this).find(".dropdown-menu").slideUp(200) }), $(".banner-slider").slick({ dots: !1, arrows: !1, autoplay: !0, autoplaySpeed: 5e3, infinite: !0, fade: !0 }), $(".banner-slider-a2").slick({ dots: !1, arrows: !1, autoplay: !0, autoplaySpeed: 5e3, infinite: !0, fade: !0 }), $(".banner-bottom").slick({ dots: !1, arrows: !1, autoplay: !0, autoplaySpeed: 6e3, infinite: !0, fade: !0 }), $(".ads-slider1").slick({ dots: !1, arrows: !1, autoplay: !0, autoplaySpeed: 6e3, infinite: !0, fade: !0 }), $(".ads-slider2").slick({ dots: !1, arrows: !1, autoplay: !0, autoplaySpeed: 5e3, infinite: !0, fade: !0 }), $("#pinBoot").pinterest_grid({ no_columns: 2, padding_x: 10, padding_y: 10, margin_bottom: 50, single_column_breakpoint: 700 }) }), function(t, n, i, o) { function e(n, i) { this.element = n, this.options = t.extend({}, c, i), this._defaults = c, this._name = l, this.init() } var a, s, d, l = "pinterest_grid", c = { padding_x: 10, padding_y: 10, no_columns: 3, margin_bottom: 50, single_column_breakpoint: 700 }; e.prototype.init = function() { var i, o = this; t(n).resize(function() { clearTimeout(i), i = setTimeout(function() { o.make_layout_change(o) }, 11) }), o.make_layout_change(o), setTimeout(function() { t(n).resize() }, 500) }, e.prototype.calculate = function(i) { var o = this, e = 0, l = t(this.element); l.width(); s = t(this.element).children(), d = i === !0 ? l.width() - o.options.padding_x : (l.width() - o.options.padding_x * o.options.no_columns) / o.options.no_columns, s.each(function() { t(this).css("width", d) }), a = o.options.no_columns, s.each(function(n) { var s, l = 0, c = 0, r = t(this), u = r.prevAll(); s = i === !1 ? n % a : 0; for (var p = 0; a > p; p++) r.removeClass("c" + p); n % a === 0 && e++, r.addClass("c" + s), r.addClass("r" + e), u.each(function(n) { t(this).hasClass("c" + s) && (c += t(this).outerHeight() + o.options.padding_y) }), l = i === !0 ? 0 : n % a * (d + o.options.padding_x), r.css({ left: l, top: c }) }), this.tallest(l), t(n).resize() }, e.prototype.tallest = function(n) { for (var i = [], o = 0, e = 0; a > e; e++) { var s = 0; n.find(".c" + e).each(function() { s += t(this).outerHeight() }), i[e] = s } o = Math.max.apply(Math, i), n.css("height", o + (this.options.padding_y + this.options.margin_bottom)) }, e.prototype.make_layout_change = function(i) { t(n).width() < i.options.single_column_breakpoint ? i.calculate(!0) : i.calculate(!1) }, t.fn[l] = function(n) { return this.each(function() { t.data(this, "plugin_" + l) || t.data(this, "plugin_" + l, new e(this, n)) }) } }(jQuery, window, document); $(document).ready(function() { // Create two variable with the names of the months and days in an array var monthNames = [ "ян.", "февр.", "март", "апр.", "май", "юни", "юли", "авг.", "септ.", "окт.", "ноем.", "дек." ]; var dayNames= ["нед.","пон.","вт.","ср.","четв.","пет.","съб."] // Create a newDate() object var newDate = new Date(); // Extract the current date from Date object newDate.setDate(newDate.getDate()); // Output the day, date, month and year $('.Date').html(dayNames[newDate.getDay()] + " " + newDate.getDate() + ' ' + monthNames[newDate.getMonth()] + ' ' + newDate.getFullYear()); setInterval( function() { // Create a newDate() object and extract the seconds of the current time on the visitor's var seconds = new Date().getSeconds(); // Add a leading zero to seconds value $(".sec").html(( seconds < 10 ? "0" : "" ) + seconds); },1000); setInterval( function() { // Create a newDate() object and extract the minutes of the current time on the visitor's var minutes = new Date().getMinutes(); // Add a leading zero to the minutes value $(".min").html(( minutes < 10 ? "0" : "" ) + minutes); },1000); setInterval( function() { // Create a newDate() object and extract the hours of the current time on the visitor's var hours = new Date().getHours(); // Add a leading zero to the hours value $(".hours").html(( hours < 10 ? "0" : "" ) + hours); }, 1000); }); $(document).ready(function () { $('div.hiddendiv').fadeIn(1000).removeClass('hidden'); }); $(document).ready(function(){ $('.ads-slider').each(function (idx, item) { var carouselId = "carousel" + idx; this.id = carouselId; $(this).slick({ slide: "#" + carouselId + " .option", appendArrows: "#" + carouselId + " .ads-slider-arrows", //винаги да има разстрояние от кавичките и класа, иначе не работи arrows: true, autoplay: true, speed: 1000, dots: false, mobileFirst: true, cssEase: 'linear' }); }); });