X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=view.sh;h=9bd507cbab93ae2d5f4a479ffe9b0e6994fa3e6e;hb=d596aba5c45a148ca789ccda79464b8f5d4478b4;hp=c08be24fa1a662a98bcb2bd88b3e4e01f03e0185;hpb=d59b95791a1b6c94e2e83d9edc90314e572fcd5f;p=serve0 diff --git a/view.sh b/view.sh index c08be24..9bd507c 100644 --- a/view.sh +++ b/view.sh @@ -11,8 +11,11 @@ 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="/cgilite/common.css" ] [link rel=stylesheet href="/style.css" ] ] [body #view [script type="text/javascript" src="/stereoview.js"\n] @@ -20,23 +23,22 @@ printf 'Content-Type: text/html;charset=utf-8\r\n\r\n' [a #t_bookmarks href="#bookmarks" ★]' w_search printf ' - [a #t_avsearch href="#advsearch" Advanced] [a #t_prefs href="#prefs" ⚙] ]' w_bookmarks w_advsearch w_prefs printf ' - [h1\n %s] + [video #mainvideo controls="controls" preload="auto" [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"]] + [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;' + "$(UNSTRING "${tags#tags=}" |sed -r ' + s;^;,;; s;,+;,;g; s;,$;;; :X s;,-?([^,]+)(,|$); [span .tag\n \1]\2;; tX;' )" printf ' [div #editing