diff --git a/index.html b/index.html index 214e185..b112850 100644 --- a/index.html +++ b/index.html @@ -117,13 +117,7 @@
-Loading...
-Loading...
+Could not load.
'; }); +} - function render(items) { - if (items.length === 0) { - listEl.innerHTML = 'Nothing here yet.
'; - return; +function render(listEl, items) { + if (items.length === 0) { + listEl.innerHTML = 'Nothing here yet.
'; + return; + } + + // NOTE: item.done adds .bl-done class — hook for completed-item styling (CSS still TODO) + listEl.innerHTML = items.map(item => + '