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:
parent
6f40ce4485
commit
892bfff54e
2 changed files with 13 additions and 7 deletions
|
@ -65,18 +65,21 @@
|
||||||
<%=dirname%>
|
<%=dirname%>
|
||||||
</h1>
|
</h1>
|
||||||
</center>
|
</center>
|
||||||
<h3>
|
<h2>
|
||||||
<a href="<%= url + prevDir%>" > Up one level </a>
|
<a href="<%= url + prevDir%>" > Up one level </a>
|
||||||
</h3>
|
</h2>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table class="maintable">
|
<table class="maintable">
|
||||||
<% for (var i = 0; i < folders.length; i++) { %>
|
<% for (var i = 0; i < folders.length; i++) { %>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
<a
|
||||||
|
href="<%= url + folders[i].path %>"
|
||||||
|
style="font-size: 0px"
|
||||||
|
>
|
||||||
<button
|
<button
|
||||||
class="butt"
|
class="butt"
|
||||||
onclick='itemClick("<%= "http://stuff.frylabs.net" + folders[i].path %>")'
|
|
||||||
style='<%= i % 2 === 0 ? "background-color: #2f2f37" : "" %>'
|
style='<%= i % 2 === 0 ? "background-color: #2f2f37" : "" %>'
|
||||||
onmouseenter='mouseEnter(this, <%= i %>)'
|
onmouseenter='mouseEnter(this, <%= i %>)'
|
||||||
onmouseleave='mouseLeave(this, <%= i %>)'
|
onmouseleave='mouseLeave(this, <%= i %>)'
|
||||||
|
@ -95,6 +98,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</button>
|
</button>
|
||||||
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
@ -102,9 +106,6 @@
|
||||||
</body>
|
</body>
|
||||||
<script>
|
<script>
|
||||||
console.log('hi')
|
console.log('hi')
|
||||||
function itemClick (e) {
|
|
||||||
location.href = e
|
|
||||||
}
|
|
||||||
function mouseEnter (e, i) {
|
function mouseEnter (e, i) {
|
||||||
e.style.backgroundColor = "#555"
|
e.style.backgroundColor = "#555"
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
color: #999999;
|
color: #999999;
|
||||||
}
|
}
|
||||||
video {
|
video {
|
||||||
object-fit: fill;
|
|
||||||
width: 100%
|
width: 100%
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -26,4 +25,10 @@
|
||||||
<source src="<%= url %><%= path %>?stream=true" type="video/mp4">
|
<source src="<%= url %><%= path %>?stream=true" type="video/mp4">
|
||||||
</video>
|
</video>
|
||||||
</body>
|
</body>
|
||||||
|
<script>
|
||||||
|
var v = document.getElementsByTagName('video')[0]
|
||||||
|
v.style.maxHeight = window.innerHeight - 100
|
||||||
|
v.maxWidth = window.innerWidth
|
||||||
|
console.log('a')
|
||||||
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue