const parser = new DOMParser
document.title = location.hostname
document.documentElement.querySelector("body>h1").textContent = location.hostname
const parser = new DOMParser
document.title = location.hostname
document.documentElement.querySelector("body>h1").textContent = location.hostname
-const renderLatest = (path, container) => fetch(`${path}.jsonld`)
-.then($ => $.json())
-.then(meta => {
- const { items } = meta
+const renderLatest = (meta, container) => {
+ const { feed, items } = meta
const status = items.pop()
const src = status.content
const { documentElement: article } = parser.parseFromString(src, "application/xhtml+xml")
const status = items.pop()
const src = status.content
const { documentElement: article } = parser.parseFromString(src, "application/xhtml+xml")
summary.textContent = title
details.append(...document.importNode(article, true).childNodes)
container.replaceChildren(wrapper, footer) }
summary.textContent = title
details.append(...document.importNode(article, true).childNodes)
container.replaceChildren(wrapper, footer) }
section.appendChild(document.createElement("h3")).textContent = topic.subject
const div = section.appendChild(document.createElement("div"))
div.className = "STATUS"
section.appendChild(document.createElement("h3")).textContent = topic.subject
const div = section.appendChild(document.createElement("div"))
div.className = "STATUS"