MadeWithPaper

document.addEventListener( 'DOMContentLoaded', function() { var trigger = document.getElementById( 'toggle-comment-area' ); trigger.addEventListener( 'click', function() { var wrapper = document.getElementById( 'comment-area-wrapper' ); if ( wrapper.classList.contains( 'nv-comments-hidden' ) ) { wrapper.classList.remove( 'nv-comments-hidden' ); trigger.innerHTML = "Hide comments"; } else { wrapper.classList.add( 'nv-comments-hidden' ); trigger.innerHTML = "Show comments"; } } ); } );

Leave a Reply

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

Ball

  • Art

Made with Paper