Cotton code
5 lines · 237 B · TypeScriptRaw
// The blog's own comments, from its own address.fetch('/api/comments.json').then(function (r) { return r.json(); }).then(function (j) {  document.getElementById('comments').textContent = j.comments.length + ' comments';  mine();});