<script>
window.addEventListener('DOMContentLoaded', () => {
const seeAllBtn = document.querySelector('div[id*="expander"');
const summ = document.querySelector('.ev-summary');
const confmacro = document.querySelectorAll('.conf-macro');
confmacro.forEach(element => {
console.log(element.childNodes)
console.log(element.childrenchildNodes.length);
if(element.children.length < 1){
confmacro.closest('.cef-section').style.display = 'none';
}
});
seeAllBtn.addEventListener('click', () => {
if(summ.classList.contains('ev-sum-hidden')){
summ.classList.remove('ev-sum-hidden');
}
else{
summ.classList.add('ev-sum-hidden');
}
})
});
</script> |