/******/ (() => { // webpackBootstrap
var __webpack_exports__ = {};
/*!*******************************!*\
!*** ./resources/js/theme.js ***!
\*******************************/
(function ($) {
"use strict"; // Preloader js
$(window).on("load", function () {
$(".preloader").fadeOut(700);
}); // Sticky Menu
$(window).scroll(function () {
var height = $(".top-header").innerHeight();
if ($("header").offset().top > 10) {
$(".top-header").addClass("hide");
$(".navigation").addClass("nav-bg");
$(".navigation").css("margin-top", "-" + height + "px");
} else {
$(".top-header").removeClass("hide");
$(".navigation").removeClass("nav-bg");
$(".navigation").css("margin-top", "-" + 0 + "px");
}
}); // navbarDropdown
if ($(window).width() < 992) {
$(".navigation .dropdown-toggle").on("click", function () {
$(this).siblings(".dropdown-menu").animate({
height: "toggle"
}, 300);
});
} // Background-images
$("[data-background]").each(function () {
$(this).css({
"background-image": "url(" + $(this).data("background") + ")"
});
}); //Hero Slider
// $('.hero-slider').slick({
// autoplay: true,
// autoplaySpeed: 7500,
// pauseOnFocus: false,
// pauseOnHover: false,
// infinite: true,
// arrows: true,
// fade: true,
// prevArrow: '',
// nextArrow: '',
// dots: true
// });
// $('.hero-slider').slickAnimation();
// venobox popup
// $(document).ready(function () {
// $('.venobox').venobox();
// });
// filter
// $(document).ready(function () {
// var containerEl = document.querySelector('.filtr-container');
// var filterizd;
// if (containerEl) {
// filterizd = $('.filtr-container').filterizr({});
// }
// //Active changer
// $('.filter-controls li').on('click', function () {
// $('.filter-controls li').removeClass('active');
// $(this).addClass('active');
// });
// });
// Count Up
// function counter() {
// var oTop;
// if ($('.count').length !== 0) {
// oTop = $('.count').offset().top - window.innerHeight;
// }
// if ($(window).scrollTop() > oTop) {
// $('.count').each(function () {
// var $this = $(this),
// countTo = $this.attr('data-count');
// $({
// countNum: $this.text()
// }).animate({
// countNum: countTo
// }, {
// duration: 1000,
// easing: 'swing',
// step: function () {
// $this.text(Math.floor(this.countNum));
// },
// complete: function () {
// $this.text(this.countNum);
// }
// });
// });
// }
// }
// $(window).on('scroll', function () {
// counter();
// });
})(jQuery);
/******/ })()
;