/* * SAPIENCE SOVEREIGN-FAQ-V1: INTERACTION SCRIPT * --------------------------------------------------------- * Handles the opening and closing of the FAQ accordions. * Uses event delegation for maximum performance across 285 pages. */ document.addEventListener('DOMContentLoaded', function() { const faqContainer = document.querySelector('body'); faqContainer.addEventListener('click', function(e) { // Check if the clicked element is part of a FAQ Question bar const questionBar = e.target.closest('.faq-question'); if (questionBar) { const parentItem = questionBar.parentElement; // Toggle the 'active' class on the clicked item parentItem.classList.toggle('active'); // OPTIONAL: Close other open FAQs when one is clicked // Uncomment the lines below if you want only one open at a time /* const allItems = document.querySelectorAll('.faq-item'); allItems.forEach(item => { if (item !== parentItem) { item.classList.remove('active'); } }); */ } }); });

Drew Browne Senior Advisor Sapience Financial & Unusual Risks Insured

Drew Browne - Senior Advisor @SapienceFinancial

Community

Our Local & National Charity Partners

Contact Us

Serving Australia Wide, from
George St Sydney, NSW, Australia.
Gadigal Land ] & [ Darug Country ]

Phone: 1300 137 403
Say Hello! sapience.com.au

 

Get Advice-on-Demand from a
National Specialist Advice Firm
by email | phone | video | face to face |

Everyone is Welcome Here!
@SapienceFinancial
#AdviceEquality  
You're Welcome Here - Pride Flag

Sorry, this website uses features that your browser doesn’t support. Upgrade to a newer version of Firefox, Chrome, Safari, or Edge and you’ll be all set.