8 printf 'Content-Type: text/html;charset=utf-8\r\n\r\n'
13 [title . $(HTML "${ITEM##*/}")]
14 [meta name="viewport" content="width=device-width"]
15 [link rel=stylesheet href="/cgilite/common.css" ]
16 [link rel=stylesheet href="/style.css" ]
18 [script type="text/javascript" src="/stereoview.js"\n]
20 [a #t_bookmarks href="#bookmarks" ★]
22 [a #t_prefs href="#prefs" ⚙]
29 [video #mainvideo controls="controls" preload="auto" [source src="?a=download" type="video/mp4"]]
30 [a "?a=download" Download]
31 [a "javascript:stereoview(180, document.getElementById("mainvideo"));" View 180° Stereoscopic]
32 [a "javascript:stereoview(360, document.getElementById("mainvideo"));" View 360° Stereoscopic]
33 [h1 . $(HTML "${ITEM##*/}" |sed -E 's;[^0-9a-zA-Z&#];&[wbr];g')]
34 [span .time $((META_LENGTH / 60)):$(printf %02i $((META_LENGTH % 60)))min] [span .dim ${META_WIDTH}x${META_HEIGHT}]
36 printf %s\\n "$META_TAGS" |tr , \\n |while read tag; do
37 [ "$tag" ] && printf ' [span .tag . %s]\n' "$(HTML "${tag#-}")"
40 if [ "${META_GROUP}" ]; then
41 printf '[div .itemlist'
42 list_meta "$_DATA/${ITEM%/*}/.index/meta" \
43 | grep -F "${CR} ${META_GROUP}" \
46 file="$(printf %s\\n "$_DATA/${META_NAME}".*)"
47 [ "/${file#${_DATA}/}" = "$ITEM" ] && continue
48 name="$(HTML "/${file#${_DATA}/}")"
50 printf '[div .list .file
51 [a href="%s" [img src="%s?a=thumbnail"]][label . %s]
52 [span .time %i:%02imin] [span .dim %ix%i] %s
54 "$name" "$name" "${name##/}" \
55 "$((META_LENGTH / 60))" "$((META_LENGTH % 60))" \
56 "$META_WIDTH" "$META_HEIGHT" \
57 "$(printf %s\\n "${META_TAGS}" \
58 | sed -r 's;^;,;; s;,+;,;g; s;,$;;;
59 :X s;,-?([^,]+)(,|$); [span .tag\n \1]\2;; tX;'
67 [form method=POST action="/?a=multitag"
68 [hidden "select" "%s"]' "$(HTML "${ITEM}")"
69 [ -d "$_DATA/${ITEM%/*}/.index/" ] && w_tagging
74 '; } | "$_EXEC/cgilite/html-sh.sed"