Theme
Design your own
On this page (3)

§The template

The Comments blocks composed into one discussion - the source is the page. A comment's time is its permalink, a route of defuss-dom-router (#/comments/d-3) that highlights it and names its author above the thread, and the sort order is a query parameter (#/?sort=oldest). The actions work: Like counts, Reply opens the reply form under that comment and adds the reply to its thread line, a new comment joins the top, and Report and the guidelines are native dialogs. The language switch translates the frame with defuss-i18n - the times come from Intl.RelativeTimeFormat, what the script writes from one JSON block in both languages, the comments stay as written.

§A discussion

A time is a permalink route (#/comments/d-2), the sort a query (#/?sort=oldest); the switch translates the frame. Comment Header, Comment Form and a thread of Comment Items with nested replies and a reply form - the Comments blocks composed. Click a timestamp to highlight that comment; Like, Reply, Report and Post comment work.

§The blocks

Comments, ideas or improvements? Edit this page's source on GitHub