/home/grlogisticsandse/www/wp-content/themes/geoport/assets/js/geoport-main.js
(function ($) {
"use strict";
$(window).on('load', function () {
wowanimation();
});
// meanmenu
$('#mobile-menu').meanmenu({
meanMenuContainer: '.mobile-menu',
meanScreenWidth: "991",
meanMenuOpen:"<span></span><span></span><span></span>",
});
// sticky
$(window).on('scroll', function () {
var scroll = $(window).scrollTop();
if (scroll < 245) {
$("#header-sticky").removeClass("sticky-header");
$(".stricky-height-fix").removeClass("menufix-height");
} else {
$("#header-sticky").addClass("sticky-header");
$(".stricky-height-fix").addClass("menufix-height");
}
});
// sticky menu jump fix
$(window).on('scroll', function () {
var scroll = $(window).scrollTop();
if (scroll < 245) {
$(".stricky-height-fix").removeClass("menufix-height");
} else {
$(".stricky-height-fix").addClass("menufix-height");
}
});
// data - background
$("[data-background]").each(function () {
$(this).css("background-image", "url(" + $(this).attr("data-background") + ")")
})
// blog
$('.blog-thumb-active').slick({
dots: false,
infinite: true,
arrows: true,
speed: 1500,
slidesToShow: 1,
slidesToScroll: 1,
fade: true,
prevArrow: '<button type="button" class="slick-prev"><i class="fas fa-arrow-left"></i></button>',
nextArrow: '<button type="button" class="slick-next"><i class="fas fa-arrow-right"></i></button>',
});
/* magnificPopup img view */
$('.popup-image').magnificPopup({
type: 'image',
gallery: {
enabled: true
}
});
/* magnificPopup video view */
$('.popup-video').magnificPopup({
type: 'iframe'
});
// WOW active
function wowanimation() {
var wow = new WOW({
boxClass: 'wow',
animateClass: 'animated',
offset: 0,
mobile: false,
live: true
});
wow.init();
}
})(jQuery);