MadeWithPaper
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;
}
Ball
Made with Paper