metanorma/metanorma-ogc

View on GitHub
lib/isodoc/ogc/html/scripts.html

Summary

Maintainability
Test Coverage
<script>
const activeBtns = document.querySelectorAll('.collapsible.active')

// check if there are any active buttons, and open the content for each of them as default
if (activeBtns.length) {
    activeBtns.forEach(btn => {
        const content = btn.nextElementSibling
        content.style.maxHeight = content.scrollHeight + 'px'
    })
}
</script>