X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=view.sh;h=4ee5fb590ec6d731a3f256b03064f4dc77bd9a59;hb=608e267413cf7f8399cacbbfc4269d3c3820a3aa;hp=baaad115a27ae8c0dba0ccbf4e74eee5d326cc18;hpb=2515c4e19a1daf3c166c446ba97979f4bfebed26;p=serve0 diff --git a/view.sh b/view.sh index baaad11..4ee5fb5 100644 --- a/view.sh +++ b/view.sh @@ -11,7 +11,9 @@ printf 'Content-Type: text/html;charset=utf-8\r\n\r\n' { printf ' [!DOCTYPE HTML] -[html [head [title Listing] +[html [head [title \n' + HTML "${ITEM##*/}" + printf '] [meta name="viewport" content="width=device-width"] [link rel=stylesheet href="/style.css" ] ] [body #view @@ -27,20 +29,21 @@ printf 'Content-Type: text/html;charset=utf-8\r\n\r\n' w_advsearch w_prefs printf ' - [h1\n %s] + [video #mainvideo controls="controls" [source src="?a=download" type="video/mp4"]] [a "?a=download" Download] [a "javascript:stereoview(180, document.getElementById("mainvideo"));" View 180° Stereoscopic] [a "javascript:stereoview(360, document.getElementById("mainvideo"));" View 360° Stereoscopic] - [video #mainvideo controls="controls" [source src="?a=download" type="video/mp4"]] - [span .time %i:%imin] [span .dim %ix%i] %s - ' "$(HTML "${ITEM##*/}")" \ + [h1\n %s] + [span .time %i:%02imin] [span .dim %ix%i] %s + ' "$(HTML "${ITEM##*/}" |sed -r "$w_ascii"' s;[^0-9a-zA-Z&#];&[wbr];g')" \ "$((length / 60))" "$((length % 60))" "$width" "$height" \ "$(printf '%s\n' "${tags#tags=}" |sed -r "$UNSTRING"' - s;^;,;; s;,+;,;g; s;,$;;; :X s;,([^,]+)(,|$); [span .tag\n \1]\2;; tX;' + s;^;,;; s;,+;,;g; s;,$;;; :X s;,-?([^,]+)(,|$); [span .tag\n \1]\2;; tX;' )" printf ' [div #editing - [form method=POST action="?a=multitag"' + [form method=POST action="/?a=multitag" + [hidden "select" "%s"]' "$(HTML "${ITEM}")" [ -d "$_DATA/${ITEM%/*}/.index/" ] && w_tagging printf ' ]