Table of Contents
Loading...
'; } tocHTML = stack[0].html + ''; tocContainer.innerHTML = tocHTML; // Finalize JSON-LD structure jsonLD["@graph"].push(...tocEntries); // Insert the JSON-LD into the head of the document const script = document.createElement('script'); script.type = 'application/ld+json'; script.textContent = JSON.stringify(jsonLD, null, 2); document.head.appendChild(script); // Add event listeners for accordion functionality tocContainer.addEventListener('click', function(e) { if (e.target.classList.contains('expander')) { const header = e.target.closest('.accordion-header'); const content = header.nextElementSibling; if (content && content.classList.contains('accordion-content')) { content.style.display = content.style.display === 'none' ? 'block' : 'none'; e.target.textContent = content.style.display === 'none' ? '+' : '-'; } } });});
Looking for fresh content?
Get articles and insights from our weekly newsletter.
By entering your email, you agree to receive Elementor emails, including marketing emails,
and agree to our Terms & Conditions and Privacy Policy.