Where people come together to learn, code, and play. Custom-built HTTP server, site generator, and website from scratch using no external libraries. Goal is to be as minimalistic and fun as possible. http://projectdivar.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SigPlace/ref/COMMENT.html

15 lines
506 B

<hr/>
<h2>Comments</h2><div class="commentCounter" id="commentCounter">0</div>
<div class="comments" id="comments"></div>
<script type="text/javascript">
function fetchComments() {
fetch("/COMMENTS?article=$ARTICLE.comment").then((data)=>data.text())
.then((data)=>{
data=data.split("\n");
for (var i=0;i<data.length;i++) {
document.getElementById("comments").innerHTML+=data[i]+"<br>"
}
})
}
fetchComments()
</script>