3 . "$_EXEC/indexmeta.sh"
6 read length width height tags comment short <<-EOF
7 $(meta_info "$_DATA/$ITEM")
10 printf 'Content-Type: text/html;charset=utf-8\r\n\r\n'
14 [html [head [title \n'
17 [meta name="viewport" content="width=device-width"]
18 [link rel=stylesheet href="/cgilite/common.css" ]
19 [link rel=stylesheet href="/style.css" ]
21 [script type="text/javascript" src="/stereoview.js"\n]
23 [a #t_bookmarks href="#bookmarks" ★]'
26 [a #t_prefs href="#prefs" ⚙]
32 [video #mainvideo controls="controls" preload="auto" [source src="?a=download" type="video/mp4"]]
33 [a "?a=download" Download]
34 [a "javascript:stereoview(180, document.getElementById("mainvideo"));" View 180° Stereoscopic]
35 [a "javascript:stereoview(360, document.getElementById("mainvideo"));" View 360° Stereoscopic]
37 [span .time %i:%02imin] [span .dim %ix%i] %s
38 ' "$(HTML "${ITEM##*/}" |sed -r "$w_ascii"' s;[^0-9a-zA-Z&#];&[wbr];g')" \
39 "$((length / 60))" "$((length % 60))" "$width" "$height" \
40 "$(UNSTRING "${tags#tags=}" |sed -r '
41 s;^;,;; s;,+;,;g; s;,$;;; :X s;,-?([^,]+)(,|$); [span .tag\n \1]\2;; tX;'
45 [form method=POST action="/?a=multitag"
46 [hidden "select" "%s"]' "$(HTML "${ITEM}")"
47 [ -d "$_DATA/${ITEM%/*}/.index/" ] && w_tagging
52 '; } | "$_EXEC/cgilite/html-sh.sed"