i found this codepen: https://codepen.io/cassivesuvian/pen/BamOEra
Everything fine - but when I want to add the js as a textscript like this, it isn't working.
<script type="text/javascript">
let more = document.querySelectorAll('.more');
for(let i = 0; i < more.length; i++) {
more[i].addEventListener('click', function() {
more[i].parentNode.classList.toggle('active')
})
}
</script>
What I have to do? I dont find any settings in this codepen.
Thank you.