function getRecentComments() {
let container = document.querySelector("#recent-comments-container");
- console.log(container);
let request = new XMLHttpRequest();
request.open('GET', 'http://unremediatedgender.space/isso/latest?limit=5', true);
request.onload = function() {
if (this.status >= 200 && this.status < 400) {
let comments = JSON.parse(this.response);
- console.log(comments);
for (let comment of comments.reverse()) {
let p = document.createElement('p');
let a = document.createElement('a');