(function($) { $("#hamburger-menu").click(function(event) { event.stopPropagation(); $(".header-navigation").addClass("open"); }); $(".close-menu").click(function(event) { event.stopPropagation(); $(".header-navigation").removeClass("open"); }); $("#hamburger-menu").keypress(function(e) { var key = e.which; if (key == 13) // the enter key code { $(".header-navigation").addClass("open"); } }); $(".close-menu").keypress(function(e) { var key = e.which; if (key == 13) // the enter key code { $(".header-navigation").removeClass("open"); } }); AOS.init({ once: true, duration: 700, }); function handleHover() { var el = $(); var children = $(); var w = 0; var h = 0; var ratio = 0.05; var absoluteOffsetX = 0, absoluteOffsetY = 0, relativeOffsetX = 0, relativeOffsetY = 0; $('.tilt__item').on('mouseenter', function(e) { el = $(this); children = el.children(); w = el.outerWidth(); h = el.outerHeight(); }).on('mousemove', function(e) { absoluteOffsetX = e.offsetX - w / 2; absoluteOffsetY = e.offsetY - h / 2; relativeOffsetX = absoluteOffsetX * 100 / w * 2 * ratio; relativeOffsetY = absoluteOffsetY * 100 / h * 2 * ratio; children.css({ 'transform': 'rotateY(' + relativeOffsetX + 'deg) rotateX(' + relativeOffsetY * -1 + 'deg)', 'transition': '.10s' }); }).on('mouseleave', function() { children.css({ 'transform': 'none', 'transition': '1.8s ease' }); }); }; handleHover(); })(jQuery); if (jQuery(window).width() < 991){ const artimusic_focusableElements = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'; const artimusic_modal = document.querySelector('nav#site-navigation'); const artimusic_firstFocusableElement = artimusic_modal.querySelectorAll(artimusic_focusableElements)[0]; const artimusic_focusableContent = artimusic_modal.querySelectorAll(artimusic_focusableElements); const artimusic_lastFocusableElement = artimusic_focusableContent[artimusic_focusableContent.length - 1]; document.addEventListener('keydown', function(e) { let isTabPressed = e.key === 'Tab' || e.keyCode === 9; if (!isTabPressed) { return; } if (e.shiftKey) { // if shift key pressed for shift + tab combination if (document.activeElement === artimusic_firstFocusableElement) { artimusic_lastFocusableElement.focus(); // add focus for the last focusable element e.preventDefault(); } } else { // if tab key is pressed if (document.activeElement === artimusic_lastFocusableElement) { // if focused has reached to last focusable element then focus first focusable element after pressing tab artimusic_firstFocusableElement.focus(); // add focus for the first focusable element e.preventDefault(); } } }); artimusic_firstFocusableElement.focus();} jQuery(function(){ loopcounter('myCountdown'); });