[ -n "$filter" ] && watch_link="${watch_link}f=${filter}&"
[ -n "$page" ] && watch_link="${watch_link}pn=${page}"
-echo -n "Location: ?page=view&${watch_link}\n\n"
+echo -n "Location: ?p=view&${watch_link}\n\n"
.panel > .tabhandle:checked + label.tabhandle + .tabcontent { display: inline-block; }
.panel > .tabhandle:checked + label.tabhandle + .tabcontent + .tabhandle + label{ display: inline-block; }
.panel > .tabhandle:checked + label.tabhandle + .tabcontent + .tabhandle:checked + label{ display: none; }
-
.panel .filter .tabcontainer {
position: relative;
width: 16em;
margin-top: .3em;
}
+#tagger { display: none; }
+#tagger:target { display: block; }
.footer {
position: fixed;
min-height: 2em;
bottom: 0px;
+ width: 100%;
border-style: solid none none none;
}
display: block;
}
#videoview .videoinfo {
- display: inline-block;
width: 39%;
margin-top: 2em;
}
#videoview .videoinfo h2 {
display: inline;
}
-#videoview .videoinfo a.meta:after {
+#videoview .videoinfo .meta:after {
content: "\A";
white-space: pre;
}
$(. $PAGE css)
-->
</style>
- <script type="text/javascript">
- <!--
- function show_block(id){
- document.getElementById(id).style.display = "block";
- try{document.getElementById('vid_'+id).play();}catch(foo){}
- }
- function show_inline(id){
- document.getElementById(id).style.display = "inline";
- try{document.getElementById('vid_'+id).play();}catch(foo){}
- }
- function show_iblock(id){
- document.getElementById(id).style.display = "inline-block";
- try{document.getElementById('vid_'+id).play();}catch(foo){}
- }
- function hide(id){
- try{document.getElementById('vid_'+id).pause();}catch(foo){}
- document.getElementById(id).style.display = "none";
- }
- -->
- </script>
</head>
<body>
$(. $PAGE body)
$(thumblist)
</ul>
<div class="panel footer" id="foot">
- <a class="panel tagger show" href="#foot" onclick="javascript:hide('foot');show_block('tagger');">Add Tags</a>
+ <a class="panel tagger show" href="#tagger">Add Tags</a>
<div class="pagination_nav">
<label>Page:</label>
</div>
</div>
- <div class="panel footer" id="tagger" style="display: none;">
- <a class="panel tagger hide" href="#"
- onclick="javascript:hide('tagger');$(for n in $(seq 1 4); do echo "hide('filter$n');"; done)show_block('foot')"
- >Hide</a>
+ <div class="panel footer" id="tagger">
+ <a class="panel tagger hide" href="#foot">Hide</a>
<hr>
<p class="help">Add selectetd tags to selected videos.</p>
<p class="newtag">
</video>
</div>
- <div class="videoinfo" id="viewmeta">
+ <div class="tabcontainer">
+ <input type="radio" class="tabhandle" name="viewmode" value="view" id="viewmeta" checked>
+ <div class="videoinfo tabcontent">
<h2>$info</h2>
- <a class="meta edit" href="#" onclick="javascript:hide('viewmeta');show_iblock('editmeta')">Edit</a>
+ <label class="meta edit" for="editmeta">Edit</label>
<span class="info property">$(($length / 60)):$(($length % 60)) min</span>
<span class="info property">Width: $width</span>
$(echo "$tags" |sed -r 's:\|*([^|]+)\|*:<span class="info tag">\1</span>:g')
$([ -n "$description" ] && echo "<span class=\"info description\">$(_wiki <<<"$description")</span>")
</div>
+ </div>
- <form class="videoinfo" id="editmeta" style="display: none;"
- action="?action=meta&${page_this}" method="post" accept-charset="UTF-8">
+ <div class="tabcontainer">
+ <input type="radio" class="tabhandle" name="viewmode" value="edit" id="editmeta">
+ <form class="videoinfo tabcontent" action="?action=meta&${page_this}" method="post" accept-charset="UTF-8">
<input type="hidden" name="length" value="$length">
<input type="hidden" name="width" value="$width">
<input type="hidden" name="height" value="$height">
<h2>$info</h2>
- <a class="meta cancel" href="#" onclick="javascript:hide('editmeta');show_iblock('viewmeta')">Cancel</a>
+ <label class="meta cancel" for="viewmeta">Cancel</label>
<span class="info property">$(($length / 60)):$(($length % 60)) min</span>
<span class="info property">Width: $width</span>
<!-- input type="submit" name="cancel" value="Cancel" -->
</form>
</div>
+ </div>
<form>
<ul id="thumblist">