The Day’s Digital Archive
142 years of history at your fingertips. Search for FREE here.
{ event.preventDefault(); // Prevent any default action const baseUrl = ‘https://theday.com/live-content/report-comment-form/’; const queryParams = new URLSearchParams({ comment: commentBody, commenter: commenterName }).toString(); window.location.href = `${baseUrl}?${queryParams}`; }); reportSpan.addEventListener(‘click’, (event) => { event.preventDefault(); // Prevent any default action const baseUrl = ‘https://theday.com/live-content/report-comment-form/’; const queryParams = new URLSearchParams({ comment: commentBody, commenter: commenterName }).toString(); window.location.href = `${baseUrl}?${queryParams}`; }); } } // Function to process existing and dynamically added comments function processComment(comment) { const flagElement = comment.querySelector(‘.inlineFlagContainer .fas.fa-flag-alt’); if (flagElement) { updateFlagBehavior(flagElement, comment);…