mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Minor usability improvements, video styling
This commit is contained in:
@@ -65,18 +65,21 @@
|
||||
<%=dirname%>
|
||||
</h1>
|
||||
</center>
|
||||
<h3>
|
||||
<h2>
|
||||
<a href="<%= url + prevDir%>" > Up one level </a>
|
||||
</h3>
|
||||
</h2>
|
||||
</p>
|
||||
|
||||
<table class="maintable">
|
||||
<% for (var i = 0; i < folders.length; i++) { %>
|
||||
<tr>
|
||||
<td>
|
||||
<a
|
||||
href="<%= url + folders[i].path %>"
|
||||
style="font-size: 0px"
|
||||
>
|
||||
<button
|
||||
class="butt"
|
||||
onclick='itemClick("<%= "http://stuff.frylabs.net" + folders[i].path %>")'
|
||||
style='<%= i % 2 === 0 ? "background-color: #2f2f37" : "" %>'
|
||||
onmouseenter='mouseEnter(this, <%= i %>)'
|
||||
onmouseleave='mouseLeave(this, <%= i %>)'
|
||||
@@ -95,6 +98,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</button>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<% } %>
|
||||
@@ -102,9 +106,6 @@
|
||||
</body>
|
||||
<script>
|
||||
console.log('hi')
|
||||
function itemClick (e) {
|
||||
location.href = e
|
||||
}
|
||||
function mouseEnter (e, i) {
|
||||
e.style.backgroundColor = "#555"
|
||||
}
|
||||
|
Reference in New Issue
Block a user