Internistische Gemeinschaftspraxis
Direktkontakt unserer Ärzte
NICHT für Terminanfragen
document.addEventListener('DOMContentLoaded', function() { setTimeout(function() { const targetNode = document.querySelector('.elementor-widget-container'); // Korrekter Selektor if (!targetNode) { console.error("Elternelement der Toggles nicht gefunden!"); return; } const config = { childList: true, subtree: true }; const callback = function(mutationsList, observer) { for (const mutation of mutationsList) { if (mutation.type === 'childList') { const tabTitles = targetNode.querySelectorAll('.elementor-tab-title'); const tabContents = targetNode.querySelectorAll('.elementor-tab-content'); if (tabTitles.length > 0 && tabContents.length > 0) { tabTitles.forEach((title, index) => { let newId = `tab-title-${index + 1}`; title.id = newId; let controls = title.getAttribute('aria-controls'); if (controls) { let oldContent = document.getElementById(controls); if (oldContent) { oldContent.id = `tab-content-${index + 1}`; title.setAttribute('aria-controls', `tab-content-${index + 1}`); } } }); console.log("Tab IDs wurden angepasst."); observer.disconnect(); } } } }; const observer = new MutationObserver(callback); observer.observe(targetNode, config); }, 100); });
Zum Inhalt wechseln