// Theme Search Box jQuery(document).ready(function() { jQuery("#search-button").click(function() { jQuery(".search-box").addClass("show-box"); }); jQuery("#close-button").click(function() { jQuery(".search-box").removeClass("show-box"); }); }); //Magnific popup js jQuery(document).ready(function() { jQuery('.popup-gallery').magnificPopup({ delegate: 'a', type: 'image', tLoading: 'Loading image #%curr%...', mainClass: 'mfp-img-mobile', gallery: { enabled: true, navigateByImgClick: true, preload: [0,1] // Will preload 0 - before current, and 1 after the current image }, image: { tError: 'The image #%curr% could not be loaded.', titleSrc: function(item) { return item.el.attr('title') + 'by Marsel Van Oosten'; } } }); }) /*Scroll to top when arrow up clicked BEGIN*/ jQuery(window).scroll(function() { var height = jQuery(window).scrollTop(); if (height > 100) { jQuery('.fs-scroll').fadeIn(); } else { jQuery('.fs-scroll').fadeOut(); } }); jQuery(document).ready(function() { jQuery(".fs-scroll").click(function(event) { event.preventDefault(); jQuery("html, body").animate({ scrollTop: 0 }, "slow"); return false; }); }); //sticky navbar jQuery(window).on("scroll",function(a){ 45'),"accordion"==d&&e(this).addClass("collapse"),e(window).innerWidth()<=l&&o(),e(window).resize(function(){o()}),e("#menu-btn").click(function(){t.slideToggle().toggleClass("hide-menu")}),this.each(function(){t.on("mouseover","> li a",function(){if(!0===t.hasClass("collapse"))return!1;e(this).parent("li").siblings().children(".sub-menu").stop(!0,!0).slideUp(n).removeClass("slide").removeAttr("style").stop(),e(this).parent().addClass("menu-active").children(".sub-menu").slideDown(n).addClass("slide")}),t.on("mouseleave","li",function(){if(!0===t.hasClass("collapse"))return!1;e(this).off("click","> li a+.arrow"),e(this).removeClass("menu-active"),e(this).children("ul.sub-menu").stop(!0,!0).slideUp(n).removeClass("slide").removeAttr("style")}),t.on("click","> li a+.arrow",function(){if(t.hasClass("collapse"),e(this).off("mouseover","> li a+.arrow"),e(this).parent().hasClass("menu-active"))e(this).parent().children(".sub-menu").slideUp().removeClass("slide"),e(this).parent().removeClass("menu-active");else{if(1==a)return void e(this).parent().addClass("menu-active").children(".sub-menu").slideDown(n).addClass("slide");e(this).parent().siblings().removeClass("menu-active"),e(this).parent("li").siblings().children(".sub-menu").slideUp().removeClass("slide"),e(this).parent().addClass("menu-active").children(".sub-menu").slideDown(n).addClass("slide")}})})}}(jQuery); //Jquery lazyload js !function(t,e){"object"==typeof exports?module.exports=e(t):"function"==typeof define&&define.amd?define([],e):t.LazyLoad=e(t)}("undefined"!=typeof global?global:this.window||this.global,function(t){"use strict";"function"==typeof define&&define.amd&&(t=window);const e={src:"data-src",srcset:"data-srcset",selector:".lazyload",root:null,rootMargin:"0px",threshold:0},r=function(){let t={},e=!1,s=0,o=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(e=arguments[0],s++);let i=function(s){for(let o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e&&"[object Object]"===Object.prototype.toString.call(s[o])?t[o]=r(!0,t[o],s[o]):t[o]=s[o])};for(;s