LoveWins
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;
}
Happy 16
Love, always.