<STYLE>
body{ Display: Grid; Box-Sizing: Border-Box; Margin: Auto; Padding-Inline: 1REM; Min-Block-Size: 100VH; Inline-Size: 100%; Max-Inline-Size: 45REM; Align-Content: Center; Justify-Content: Stretch; Font-Family: Sans-Serif }
article{ Font-Size: Larger }
+summary{ Padding-Block: 1REM; Font-Weight: Bold }
+details[open]>summary{ Border-Block-End: Thin Solid }
footer{ Border-Block-Start: Thin Solid; Padding-Block: 1REM; Text-Align: End }
footer p{ Margin-Block: 0 .5REM }
footer time:Not([datetime]),
const status = items[n]
const src = status.content
const { documentElement: article } = parser.parseFromString(src, "application/xhtml+xml")
- const { creator, created } = status
+ const { creator, created, title } = status
document.title = creator
? `Status by ${creator.name} @ ${status.created}`
: `Status @ ${created}`
? "".concat(...nextChars.slice(0, 27), "…")
: nextText }
nav.appendChild(document.createTextNode("."))
- document.body.replaceChildren(document.importNode(article, true), footer) })
+ if (title) {
+ const wrapper = document.createElement("article")
+ const details = wrapper.appendChild(document.createElement("details"))
+ details.setAttribute("open", "")
+ const summary = details.appendChild(document.createElement("summary"))
+ summary.textContent = title
+ details.append(...document.importNode(article, true).childNodes)
+ document.body.replaceChildren(wrapper, footer) }
+ else document.body.replaceChildren(document.importNode(article, true), footer) })
</SCRIPT>