X-Git-Url: http://git.plutz.net/?p=serve0;a=blobdiff_plain;f=view.sh;h=887876d9beefe810f0213645b01b2502c3a5fa0a;hp=8854c4801e558939bb64447086c68d09952b32c6;hb=02812995d1df8b60f702be2ec8cf807782a7ab35;hpb=fd407665aaedc1bea44ac34ec1440fa2e9cf8795 diff --git a/view.sh b/view.sh index 8854c48..887876d 100644 --- a/view.sh +++ b/view.sh @@ -11,7 +11,7 @@ printf 'Content-Type: text/html;charset=utf-8\r\n\r\n' { printf ' [!DOCTYPE HTML] -[html [head [title Listing] +[html [head [title View] [meta name="viewport" content="width=device-width"] [link rel=stylesheet href="/style.css" ] ] [body #view @@ -27,16 +27,16 @@ 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 + [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