htdocs/board/gen/displayComments.js

1 line
283 B
JavaScript
Raw Permalink Normal View History

2024-11-15 22:16:58 +01:00
let divText = document.getElementById("comments").innerHTML; newPageHTML=""; for (let comment = 0; comment < comments.length; comment++) { newPageHTML+=`<b>${comments[comment][0]}</b>: <i>${comments[comment][1]}</i><br/>`}; document.getElementById("comments").innerHTML = newPageHTML