!function(a){void 0===mejs.plugins&&(mejs.plugins={},mejs.plugins.silverlight=[],mejs.plugins.silverlight.push({types:[]})),mejs.HtmlMediaElementShim=mejs.HtmlMediaElementShim||{getTypeFromFile:mejs.Utils.getTypeFromFile},void 0===mejs.MediaFeatures&&(mejs.MediaFeatures=mejs.Features),void 0===mejs.Utility&&(mejs.Utility=mejs.Utils);var e=MediaElementPlayer.prototype.init;MediaElementPlayer.prototype.init=function(){this.options.classPrefix="mejs-",this.$media=this.$node=a(this.node),e.call(this)};var t=MediaElementPlayer.prototype._meReady;MediaElementPlayer.prototype._meReady=function(){this.container=a(this.container),this.controls=a(this.controls),this.layers=a(this.layers),t.apply(this,arguments)},MediaElementPlayer.prototype.getElement=function(e){return void 0!==a&&e instanceof a?e[0]:e},MediaElementPlayer.prototype.buildfeatures=function(e,t,i,s){for(var r=["playpause","current","progress","duration","tracks","volume","fullscreen"],l=0,n=this.options.features.length;l'+mejsL10n.strings["mejs.download-file"]+""},n(".wp-audio-shortcode, .wp-video-shortcode").not(".mejs-container").filter(function(){return!n(this).parent().hasClass("mejs-mediaelement")}).mediaelementplayer(e)}}},n(e.wp.mediaelement.initialize)}(window,jQuery);; (function (e) { "use strict"; var n = window.TWP_JS || {}; var iScrollPos = 0; var loadType, loadButton, loader, pageNo, loading, morePost, scrollHandling; n.mobileMenu = { init: function () { this.toggleMenu(); this.menuMobile(); this.menuArrow(); }, toggleMenu: function () { e('#masthead').on('click', '.toggle-menu', function (event) { setTimeout(function () { e('a.toggle-menu').focus(); }, 1000); var ethis = e('.main-navigation .menu .menu-mobile'); if (ethis.css('display') == 'block') { ethis.slideUp('300'); e("#masthead").removeClass('menu-active'); } else { ethis.slideDown('300'); e("#masthead").addClass('menu-active'); } e('.ham').toggleClass('exit'); }); e( 'input, a, button' ).on( 'focus', function() { if ( e( '.site-header' ).hasClass( 'menu-active' ) ) { if( e(this).hasClass('skip-link-menu-start') ){ e('.menu ul li:last-child a').focus(); } if( e(this).hasClass('skip-link-menu-end') ){ e('.toggle-menu').focus(); } } } ); e('#masthead .main-navigation ').on('click', '.menu-mobile a i', function (event) { event.preventDefault(); var ethis = e(this), eparent = ethis.closest('li'), esub_menu = eparent.find('> .sub-menu'); if (esub_menu.css('display') == 'none') { esub_menu.slideDown('300'); ethis.addClass('active'); } else { esub_menu.slideUp('300'); ethis.removeClass('active'); } return false; }); // Action On Esc Button e(document).keyup(function(j) { if (j.key === "Escape") { // escape key maps to keycode `27` if( e('#masthead').hasClass('menu-active') ){ e('#masthead').removeClass('menu-active'); var ethis = e('.main-navigation .menu .menu-mobile'); if (ethis.css('display') == 'block') { ethis.slideUp('300'); e("#masthead").removeClass('menu-active'); } else { ethis.slideDown('300'); e("#masthead").addClass('menu-active'); } e('.ham').toggleClass('exit'); setTimeout(function () { e('a.toggle-menu').focus(); }, 300); } } }); }, menuMobile: function () { if (e('.main-navigation .menu > ul').length) { var ethis = e('.main-navigation .menu > ul'), eparent = ethis.closest('.main-navigation'), pointbreak = eparent.data('epointbreak'), window_width = window.innerWidth; if (typeof pointbreak == 'undefined') { pointbreak = 991; } if (pointbreak >= window_width) { ethis.addClass('menu-mobile').removeClass('menu-desktop'); e('.main-navigation .toggle-menu').css('display', 'block'); } else { ethis.addClass('menu-desktop').removeClass('menu-mobile').css('display', ''); e('.main-navigation .toggle-menu').css('display', ''); } } }, menuArrow: function () { if (e('#masthead .main-navigation div.menu > ul').length) { e('#masthead .main-navigation div.menu > ul .sub-menu').parent('li').find('> a').append(''); } } }; n.twp_preloader = function () { e(window).load(function () { setTimeout(function () { e('.preloader').addClass('loaded'); }, 1000); }); }; n.TwpReveal = function () { e('.icon-search').on('click', function (event) { e('body').toggleClass('reveal-search'); setTimeout(function(){ e('a.close-popup').focus(); }, 300); }); e('.close-popup').on('click', function (event) { e('body').removeClass('reveal-search'); setTimeout(function(){ e('.icon-search').focus(); }, 300); }); e( 'input, a, button' ).on( 'focus', function() { if ( e( 'body' ).hasClass( 'reveal-search' ) ) { if( e(this).hasClass('skip-link-search') ){ e('a.close-popup').focus(); } if( e(this).hasClass('skip-link-search-end') ){ e('.popup-search .search-field').focus(); } } } ); // Action On Esc Button e(document).keyup(function(j) { if (j.key === "Escape") { // escape key maps to keycode `27` if ( e( 'body' ).hasClass( 'reveal-search' ) ) { e('body').removeClass('reveal-search'); e('html').attr('style',''); setTimeout(function(){ e('.icon-search').focus(); }, 300); } } }); }; n.TwpHeadroom = function () { e("#nav-affix").headroom({ "tolerance": 0, "offset": 164, "classes": { "initial": "animated", "pinned": "slideDown", "unpinned": "slideUp", "top": "headroom--top", "notTop": "headroom--not-top" } }); }; n.DataBackground = function () { e('.bg-image').each(function () { var src = e(this).children('img').attr('src'); if( src ){ e(this).css('background-image', 'url(' + src + ')').children('img').hide(); } }); }; n.InnerBanner = function () { var pageSection = e(".data-bg"); pageSection.each(function (indx) { if (e(this).attr("data-background")) { e(this).css("background-image", "url(" + e(this).data("background") + ")"); } }); }; n.TwpSlider = function () { e(".twp-slider").each(function () { e(this).owlCarousel({ loop: (e('.twp-slider').children().length) == 1 ? false : true, autoplay: 5000, nav: true, navText: ["", ""], items: 1, dots: false }); }); e(".gallery-columns-1").each(function () { e(this).owlCarousel({ loop: (e('.gallery-columns-1').children().length) == 1 ? false : true, margin: 3, autoplay: 5000, nav: true, navText: ["", ""], items: 1 }); }); e("ul.wp-block-gallery.columns-1").each(function () { e(this).owlCarousel({ loop: (e('ul.wp-block-gallery.columns-1').children().length) == 1 ? false : true, margin: 3, autoplay: 5000, nav: true, navText: ["", ""], items: 1 }); }); e(".wp-block-gallery.columns-1 .blocks-gallery-grid").each(function () { e(this).owlCarousel({ loop: (e('.wp-block-gallery.columns-1 .blocks-gallery-grid').children().length) == 1 ? false : true, margin: 3, autoplay: 5000, nav: true, navText: ["", ""], items: 1 }); }); }; n.MagnificPopup = function () { e('.gallery, .blocks-gallery-item').each(function () { e(this).magnificPopup({ delegate: 'a', type: 'image', gallery: { enabled: true }, zoom: { enabled: true, duration: 300, opener: function (element) { return element.find('img'); } } }); }); }; n.show_hide_scroll_top = function () { if (e(window).scrollTop() > e(window).height() / 2) { e(".scroll-up").fadeIn(300); } else { e(".scroll-up").fadeOut(300); } }; n.scroll_up = function () { e(".scroll-up").on("click", function () { e("html, body").animate({ scrollTop: 0 }, 700); return false; }); }; n.twp_matchheight = function () { e('.widget-area').theiaStickySidebar({ additionalMarginTop: 30 }); }; n.setLoadPostDefaults = function () { if (e('.load-more-posts').length > 0) { loadButton = e('.load-more-posts'); loader = e('.load-more-posts .ajax-loader'); loadType = loadButton.attr('data-load-type'); pageNo = 2; loading = false; morePost = true; scrollHandling = { allow: true, reallow: function () { scrollHandling.allow = true; }, delay: 400 }; } }; n.fetchPostsOnScroll = function () { if (e('.load-more-posts').length > 0 && 'scroll' === loadType) { var iCurScrollPos = e(window).scrollTop(); if (iCurScrollPos > iScrollPos) { if (!loading && scrollHandling.allow && morePost) { scrollHandling.allow = false; setTimeout(scrollHandling.reallow, scrollHandling.delay); var offset = e(loadButton).offset().top - e(window).scrollTop(); if (2000 > offset) { loading = true; n.ShowPostsAjax(loadType); } } } iScrollPos = iCurScrollPos; } }; n.fetchPostsOnClick = function () { if (e('.load-more-posts').length > 0 && 'click' === loadType) { e('.load-more-posts a').on('click', function (event) { event.preventDefault(); n.ShowPostsAjax(loadType); }); } }; n.ShowPostsAjax = function (loadType) { e.ajax({ type: 'GET', url: jumlaVal.ajaxurl, data: { action: 'jumla_load_more', nonce: jumlaVal.nonce, page: pageNo, post_type: jumlaVal.post_type, search: jumlaVal.search, cat: jumlaVal.cat, taxonomy: jumlaVal.taxonomy, author: jumlaVal.author, year: jumlaVal.year, month: jumlaVal.month, day: jumlaVal.day }, dataType: 'json', beforeSend: function () { loader.addClass('ajax-loader-enabled'); }, success: function (response) { loader.removeClass('ajax-loader-enabled'); if (response.success) { e('.jumla-posts-lists').append(response.data.content); pageNo++; loading = false; if (!response.data.more_post) { morePost = false; loadButton.fadeOut(); } } else { loadButton.fadeOut(); } } }); }; e(document).ready(function () { n.mobileMenu.init(); n.TwpSlider(); n.TwpReveal(); n.TwpHeadroom(); n.twp_preloader(); n.DataBackground(); n.InnerBanner(); n.MagnificPopup(); n.scroll_up(); n.twp_matchheight(); n.setLoadPostDefaults(); n.fetchPostsOnClick(); }); e(window).scroll(function () { n.show_hide_scroll_top(); n.fetchPostsOnScroll(); }); e(window).resize(function () { n.mobileMenu.menuMobile(); }); })(jQuery);; /* Do not modify this file directly. It is compiled from other files. */ !function(){var e,t,i,o=document.cookie.replace(/(?:(?:^|.*;\s*)eucookielaw\s*\=\s*([^;]*).*$)|^.*$/,"$1"),n=document.getElementById("eu-cookie-law"),s=document.querySelector(".widget_eu_cookie_law_widget"),a=s&&s.hasAttribute("data-customize-widget-id");if(null!==s&&null!==n){if(e=function(){return Math.abs(document.body.getBoundingClientRect().y)},n.classList.contains("top")&&s.classList.add("top"),n.classList.contains("ads-active")){var c=document.cookie.replace(/(?:(?:^|.*;\s*)personalized-ads-consent\s*\=\s*([^;]*).*$)|^.*$/,"$1");""===o||""===c||a||n.parentNode.removeChild(n)}else""===o||a||n.parentNode.removeChild(n);document.body.appendChild(s),n.querySelector("form").addEventListener("submit",r),n.classList.contains("hide-on-scroll")?(t=e(),i=function(){Math.abs(e()-t)>50&&r()},window.addEventListener("scroll",i)):n.classList.contains("hide-on-time")&&setTimeout(r,1e3*n.getAttribute("data-hide-timeout"));var d=!1}function r(e){if(!d){d=!0,e&&e.preventDefault&&e.preventDefault(),n.classList.contains("hide-on-scroll")&&window.removeEventListener("scroll",i);var t=new Date;t.setTime(t.getTime()+24*n.getAttribute("data-consent-expiration")*60*60*1e3),document.cookie="eucookielaw="+t.getTime()+";path=/;expires="+t.toGMTString(),n.classList.contains("ads-active")&&n.classList.contains("hide-on-button")&&(document.cookie="personalized-ads-consent="+t.getTime()+";path=/;expires="+t.toGMTString()),n.classList.add("hide"),setTimeout(function(){n.parentNode.removeChild(n);var e=document.querySelector(".widget.widget_eu_cookie_law_widget");e.parentNode.removeChild(e)},400)}}}();;