(function() { var isIe = /(trident|msie)/i.test(navigator.userAgent); if (isIe && document.getElementById && window.addEventListener) { window.addEventListener('hashchange', function() { var id = location.hash.substring(1), element; if (!(/^[A-z0-9_-]+$/.test(id))) { return; } element = document.getElementById(id); if (element) { if (!(/^(?:a|select|input|button|textarea)$/i.test(element.tagName))) { element.tabIndex = -1; } element.focus(); } }, false); } })(); document.addEventListener('keydown', function(e) { e = e || window.event; if (e.keyCode == 27) { /* Creating custom event */ const event = new Event('onEscKeypressed'); document.dispatchEvent(event); } }); document.addEventListener('onEscKeypressed', function() { jQuery('body').hasClass('bizart-menu-open') && document.getElementById('menu-icon').click(); }); jQuery(document).ready(function() { jQuery('.scroll-to-top').click(function() { jQuery('body,html').animate({ scrollTop: 0 }, 500); }); var $next = jQuery( '.nav-links .nav-next' ), $prev = jQuery( '.nav-links .nav-previous'); if( $next.length == 0 || $prev.length == 0 ){ jQuery( '.post-navigation' ).addClass( 'single-navigator' ); } if (jQuery().fstPopupSearch) { jQuery('.bizart-toggle-search').fstPopupSearch({ labelText : FANSEE.search_label, action : FANSEE.home_url }); } if (jQuery().slick) { jQuery('.bizart-testimonial').slick(); jQuery('.bizart-partners-wrapper').slick(); var slickArrLeft = `