summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeah (ctucx) <leah@ctu.cx>2021-03-06 13:06:08 +0100
committerLeah (ctucx) <leah@ctu.cx>2021-03-06 13:06:08 +0100
commitccc2c9adb3dead93b109aff535b1e6762f07b9c1 (patch)
treee4437be9d9c0e66539630f12b89c97400f08eca8
parentc96ceb864636c6c7dc388dfcc0f3f3e66f27ce44 (diff)
downloadwebmusic-nginx-ccc2c9adb3dead93b109aff535b1e6762f07b9c1.tar.gz
webmusic-nginx-ccc2c9adb3dead93b109aff535b1e6762f07b9c1.tar.bz2
webmusic-nginx-ccc2c9adb3dead93b109aff535b1e6762f07b9c1.zip
add id to back button, use list elements
-rw-r--r--webmusic.css4
-rw-r--r--webmusic.xslt9
2 files changed, 10 insertions, 3 deletions
diff --git a/webmusic.css b/webmusic.css
index 4647f2b..b8813e5 100644
--- a/webmusic.css
+++ b/webmusic.css
@@ -73,3 +73,7 @@ h2, h2 a {
#state {
cursor: pointer;
}
+
+li {
+ list-style: none;
+}
diff --git a/webmusic.xslt b/webmusic.xslt
index 6107043..c407119 100644
--- a/webmusic.xslt
+++ b/webmusic.xslt
@@ -74,6 +74,7 @@
<xsl:template match="directory">
+ <li>
<a class="action">[--] </a>
<xsl:element name="a">
<xsl:attribute name="href">
@@ -83,10 +84,11 @@
</xsl:attribute>
<xsl:value-of select="." />
</xsl:element>
- <br/>
+ </li>
</xsl:template>
<xsl:template match="file">
+ <li>
<script>queue.push('<xsl:call-template name="url-encode"><xsl:with-param name="str" select="concat($path, current())" /></xsl:call-template>')</script>
<xsl:element name="a">
<xsl:attribute name="class">
@@ -105,8 +107,9 @@
<xsl:attribute name="onclick">playSong('<xsl:call-template name="url-encode"><xsl:with-param name="str" select="concat($path, current())" /></xsl:call-template>')</xsl:attribute>
<xsl:value-of select="." />
</a>
- <br/>
+ </li>
</xsl:template>
+
<xsl:template match="/">
<xsl:text disable-output-escaping="yes">&lt;!DOCTYPE html&gt;</xsl:text>
<html lang="en">
@@ -143,7 +146,7 @@
<div id="container">
<h2><xsl:value-of select="$path"/><xsl:text> </xsl:text><span id="state"></span><xsl:text> </xsl:text><span id="flags"></span></h2>
<a class="action-muted">[..]</a>
- <a href=".." class="entry-muted cfont"> Go back</a>
+ <a href=".." id="back" class="entry-muted cfont"> Go back</a>
<br/>
<a class="action-muted">[--]</a>
<xsl:element name="a">