Skip to main content

Easy Return

Simple & Secure Tax Filing ITR Filed by Tax Expert
Simple & Secure Tax Filing Expert-Assisted Support
(function () { const header = document.getElementById( "easyreturn-premium-header" ); if ( !header || header.dataset.erpInitialized === "true" ) { return; } header.dataset.erpInitialized = "true"; /* ===================================================== MOBILE MENU ====================================================== */ const menuToggle = header.querySelector( ".erp-menu-toggle" ); if (menuToggle) { menuToggle.addEventListener( "click", function () { const open = header.classList.toggle( "erp-menu-open" ); menuToggle.setAttribute( "aria-expanded", String(open) ); menuToggle.setAttribute( "aria-label", open ? "Close menu" : "Open menu" ); } ); } /* ===================================================== MOBILE ACCORDIONS ====================================================== */ const mobileDropdowns = header.querySelectorAll( ".erp-mobile-dropdown-btn" ); mobileDropdowns.forEach( function (button) { button.addEventListener( "click", function () { const submenu = button.nextElementSibling; if (!submenu) { return; } const open = submenu.classList.toggle( "is-open" ); button.setAttribute( "aria-expanded", String(open) ); } ); } ); /* ===================================================== CLOSE MOBILE MENU AFTER LINK CLICK ====================================================== */ const mobileLinks = header.querySelectorAll( ".erp-mobile-panel a" ); mobileLinks.forEach( function (link) { link.addEventListener( "click", function () { header.classList.remove( "erp-menu-open" ); if (menuToggle) { menuToggle.setAttribute( "aria-expanded", "false" ); menuToggle.setAttribute( "aria-label", "Open menu" ); } } ); } ); /* ===================================================== ACTIVE PAGE NAV + DROPDOWN PARENT ====================================================== */ const currentPath = window.location.pathname .replace(/\/+$/, ""); const links = header.querySelectorAll( "a[href]" ); links.forEach( function (link) { try { const linkUrl = new URL( link.href, window.location.origin ); if ( linkUrl.hostname !== window.location.hostname ) { return; } const linkPath = linkUrl.pathname .replace(/\/+$/, ""); if ( linkPath && currentPath === linkPath ) { link.setAttribute( "aria-current", "page" ); if ( link.classList.contains( "erp-nav-link" ) ) { link.classList.add( "is-active" ); } const navItem = link.closest( ".erp-nav-item" ); if (navItem) { const trigger = navItem.querySelector( ".erp-dropdown-trigger" ); if (trigger) { trigger.classList.add( "is-active" ); } } } } catch (error) { /* Ignore invalid URL */ } } ); })();