blob: fafcb7e8eeca4eecd8c88edd3db407fd2961d34f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/- boke, tp=trill-post, tlonc=tlon-channels, cnt=contact
/+ plib=trill-utils, ui=trill-ui, sr=sortug, lib=boke, const=constants, kaji
/= post-text /web/components/post-text
/= date-div /web/components/date
/= user /web/components/user
/= chat-manx /web/chat/chat
|_ [s=state:boke =bowl:gall]
++ css ^~ %- trip
'''
ddEventListener('kaji-scry', async () => highlight());
'''
+$ section $?(%blog %comments %chat %threads %replies)
++ cursor
|= [d=(unit time) up=?] ^- marl
?~ d ~
=/ cursor-string (scow:parsing:sr %uw `@uw`u.d)
=/ name ?: up "before" "after"
=/ label ?: up "Newer Posts" "Older Posts"
=/ indicator ?: up "#spinner-up" "#spinner-down"
=/ button=manx
;button
=kaji "iscroll"
=name name
=value cursor-string
=path "/search/f"
=cont "#search-results"
=indicator indicator
; {label}
==
=/ upc
;div
;+ button
;img#spinner-up.spinner@"spinner.svg"(style "display: none;");
==
=/ downc
;div
;img#spinner-down.spinner@"spinner.svg"(style "display: none;");
;+ button
==
;+ ?: up upc downc
++ main ^- manx
;div#feed.fsy
;style: {css}
;h1.tc:"Feed"
==
--
|