<form class="panel" id="advfilter"
action="?action=filter" method="post" accept-charset="UTF-8">
- <a class="panel advanced hide" href="#">Hide</a>
+ <a class="panel toggle" href="#">Hide</a>
<p class="help">Up to <strong>10</strong> filter boxes will appear as you start selecting tags. You can select <strong>multiple</strong> tags in each box by holding down the <strong>Ctrl</strong>-key. Click the "<strong>Filter!</strong>" button when you are ready.</p>
$(filterbox {0..9})
border-width: 1px;
border-style: none none solid none;
}
-.panel.footer {
+
+#advfilter {
+ position: absolute;
+ top: 0;
+}
+#preferences,
+#tagger,
+#foot {
position: fixed;
- min-height: 2em;
bottom: 0px;
+ min-height: 2em;
border-style: solid none none none;
}
-.panel .help { display: block;}
-a.panel { font-weight: bold; }
-a.clearsearch, a.show, .pagination_nav {
- display: inline;
- border: none;
+#advfilter,
+#tagger,
+#preferences {
+ z-index: 1;
+ overflow: hidden;
+ min-height: 0; max-height: 0;
+ padding-top: 0; padding-bottom: 0;
+ transition: all .3s linear;
}
-.pagination_nav {
- position: absolute;
- right: 1em;
- padding-top: .125em;
+#advfilter:target,
+#tagger:target,
+#preferences:target {
+ max-height: 100%;
+ overflow-y: scroll;
}
-.footer a.panel {
+.panel .help { display: block;}
+a.panel { font-weight: bold; }
+
+#preferences a.panel,
+#tagger a.panel {
border-style: solid none none none;
border-width: 1px;
margin-top: .5em;
}
-#advfilter { display: none; }
-#advfilter:target {
- display: block;
+#search a.toggle,
+#foot a.toggle,
+a.clearsearch,
+.pagination_nav {
+ display: inline;
+ border: none;
+}
+.pagination_nav {
position: absolute;
- top: 0;
+ right: 1em;
+ padding-top: .125em;
}
#advfilter .quicklinks,
margin: .75em .5em;
}
-#tagger,
-#preferences {
- display: none;
-}
-#tagger:target,
-#preferences:target {
- display: block;
- z-index: 1;
- max-height: 100%;
- overflow-y: scroll;
-}
#tagger .newtag select,
#tagger .newtag .label{
display: block;
# along with Serve0 If not, see <http://www.gnu.org/licenses/>.
cat <<EOF
- <form class="panel" id="search" style="display: block;"
- action="?" method="get" accept-charset="UTF-8">
+ <form class="panel" id="search" action="?" method="get" accept-charset="UTF-8">
<input type="text" name="s" value="$search" placeholder="Search">
<label for="o1" class="order">Order by:</label>
<input type="submit" name="submit" value="Find">
<a class="panel clearsearch" href="?">Clear All</a>
- <a class="panel advanced show" href="#advfilter">Advanced</a>
+ <a class="panel toggle" href="#advfilter">Advanced</a>
<div class="pagination_nav">
<label>Page:</label>
$(. $_EXEC/templates/tagger.html.sh)
</form>
- <div class="panel footer" id="foot">
- <a class="panel tagger show" href="#tagger">Add Tags</a>
- <a class="panel tagger show" href="#preferences">Preferences</a>
+ <div class="panel" id="foot">
+ <a class="panel toggle" href="#tagger">Add Tags</a>
+ <a class="panel toggle" href="#preferences">Preferences</a>
<div class="pagination_nav">
<label>Page:</label>
# along with Serve0 If not, see <http://www.gnu.org/licenses/>.
cat <<EOF
- <form class="panel footer" id="preferences"
+ <form class="panel" id="preferences"
action="?action=preferences" method="post" accept-charset="UTF-8">
<fieldset>
<legend>Watch videos:</legend>
<input type="submit" value="Set Cookie!">
- <a class="panel hide" href="#foot">Hide</a>
+ <a class="panel toggle" href="#foot">Hide</a>
</form>
EOF
}
cat <<EOF
- <div class="panel footer" id="tagger">
+ <div class="panel" id="tagger">
<p class="help">Add selectetd tags to selected videos.</p>
$(category_box $(list_categories))
<p class="newtag additional">
</p>
<input type="submit" value="Add Tags!">
- <a class="panel hide" href="#foot">Hide</a>
+ <a class="panel toggle" href="#foot">Hide</a>
</div>
EOF