“;
setTimeout(function() {
elem.classList.remove(‘block’);
}, 5000);
elemBtn.classList.add(‘block’);
var elemForm = document.querySelector(‘#newsCommentBoxForm form’);
elemForm.reset();
var commentBoxForm = document.getElementById(‘newsCommentBoxForm’);
commentBoxForm.classList.remove(‘modal’);
var closeModal = document.getElementById(‘close_icon’);
closeModal.style.display = ‘none’; // Hide the close button after submission
}
});
}
});
