Skip to content

Portland

function toggleCommentArea(el, selector) { const wrapper = document.getElementById(selector); const buttonText = wrapper.classList.contains('nv-comments-hidden') ? "Hide comments" : "Show comments"; wrapper.classList.toggle('nv-comments-hidden'); el.textContent = buttonText; }

Leave a Reply

Your email address will not be published. Required fields are marked *