]> git.plutz.net Git - serve0/blob - templates/view.html.sh
html/css cleanup
[serve0] / templates / view.html.sh
1 #!/bin/zsh
2
3 cat <<viewEND
4   <div class="panel" id="videoview">
5     <a href="#" onclick="javascript:hide('videoview');" class="panel">Dismiss</a>
6     <div class="video">
7       <a href="$video">Full</a> <!-- a href="$reenc">Mobile</a -->
8       <!--iframe src="$video" width="100%" height="400px"-->
9       <video controls>
10         <!-- source src="$reenc" type='video/webm; codecs="vp8.0, mp3"' -->
11         <source src="$video" type='video/mp4; codecs="avc1.4D401E, mp3"'>"
12       </video><!--/iframe-->
13     </div>
14   
15     <div class="videoinfo" id="viewmeta">
16       <h2>$info</h2>
17       <a class="meta edit" href="#" onclick="javascript:hide('viewmeta');show_iblock('editmeta')">Edit</a>
18
19       <span class="info property">$(($length / 60)):$(($length % 60)) min</span>
20       <span class="info property">Width: $width</span>
21       <span class="info property">Height: $height</span><br>
22
23       <span class="label tags">Tags:</span>
24       $(echo "$tags" |sed -r 's:\|*([^|]+)\|*:<span class="info tag">\1</span>:g')
25       $([ -n "$description" ] && echo "<span class=\"info description\">$(_wiki <<<"$description")</span>")
26     </div>
27   
28     <form class="videoinfo" id="editmeta" style="display: none;"
29           action="?action=meta&${page_this}" method="post" accept-charset="UTF-8">
30       <input type="hidden" name="length" value="$length">
31       <input type="hidden" name="width" value="$width">
32       <input type="hidden" name="height" value="$height">
33
34       <h2>$info</h2>
35       <a class="meta cancel" href="#" onclick="javascript:hide('editmeta');show_iblock('viewmeta')">Cancel</a>
36
37       <span class="info property">$(($length / 60)):$(($length % 60)) min</span>
38       <span class="info property">Width: $width</span>
39       <span class="info property">Height: $height</span>
40   
41       <span class="label tags">Tags:</span>
42       <select class="edit tags" name="tag" size="16" multiple>
43         $(echo "$taglist" |while read line; do
44           echo "<option $(egrep -q "(^|.*\|)$line(\|.*|$)" "$meta" && echo -n selected)>$line</option>"
45         done)
46       </select>
47
48       <span class="label moretags">Additional Tags (one per line):</span>
49       <textarea class="edit moretags" name="tags" rows="4"></textarea>
50
51       <span class="label description">Description:</span>
52       <textarea class="edit description" name="description" rows="4">$description</textarea>
53       <input type="submit" value="Submit">
54       <input type="submit" name="trash" value="Delete Video">
55       <!-- input type="submit" name="cancel" value="Cancel" -->
56     </form>
57   </div>
58 viewEND
59
60 # vi:set filetype=html:
61