{"size": 726, "ext": "js", "max_stars_repo_path": "assets/scripts/tabs.js", "max_stars_repo_name": "arjangeertsema/living-documentation", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "assets/scripts/tabs.js", "max_issues_repo_name": "arjangeertsema/living-documentation", "max_issues_repo_issues_event_min_datetime": "2021-10-21T09:57:29.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-29T00:38:46.000Z", "max_forks_repo_path": "assets/scripts/tabs.js", "max_forks_repo_name": "arjangeertsema/living-documentation", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 36, "max_forks_count": null, "avg_line_length": 40.3333333333, "max_line_length": 89, "alphanum_fraction": 0.5619834711}
(() => {
    document.querySelectorAll('.tabs-container').forEach((container) => {
        const anchors = container.querySelectorAll(':scope .tabs-list-container a');
        const panels = container.querySelectorAll(':scope .tabs-panels-container > div');

        anchors.forEach((anchor, index) => {
            anchor.onclick = (event) => {
                event.preventDefault();

                anchors.forEach(sibling => sibling.removeAttribute('aria-expanded'));
                anchor.setAttribute('aria-expanded', 'true');
            
                panels.forEach(sibling => sibling.setAttribute('hidden', 'true'));
                panels[index].removeAttribute('hidden');
            };
        })
    })
})();