You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.9 KiB
HTML
57 lines
1.9 KiB
HTML
1 year ago
|
<html>
|
||
|
<head>
|
||
|
<style>
|
||
|
body{
|
||
|
clear: both;
|
||
|
margin: 0;
|
||
|
}
|
||
|
img,video,.divaudio,audio{
|
||
|
display:inline-block;
|
||
|
width: calc( 100% / 7 );
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
object-fit: cover;
|
||
|
height: calc( 100% / 6) ;
|
||
|
}
|
||
|
a{position:relative z-index:2;}
|
||
|
video,audio{position:relative; z-index:1;}
|
||
|
audio{height:auto;position:absolute;}
|
||
|
img:hover{
|
||
|
filter: invert(1);
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
{% for file in range (0,42) -%}
|
||
|
{%- set filez = '%02d' % file -%}
|
||
|
{%- set filename = lastfiles[file] -%}
|
||
|
<a href="{{ url_for('zoomedimage', imgpath=filez|replace('static/img/', '')) }}">
|
||
|
{%- if 'png' in filename or 'jpg' in filename or 'jpeg' in filename or 'gif' in filename -%}
|
||
|
<img src="{{ filename }}">
|
||
|
{%- endif -%}
|
||
|
{%- if 'mp3' in filename or 'm4a' in filename or 'ogg' in filename -%}
|
||
|
<div class="divaudio">
|
||
|
<audio controls>
|
||
|
<source src="{{ filename }}">
|
||
|
</audio>
|
||
|
</div>
|
||
|
{%- endif -%}
|
||
|
{%- if 'mp4' in filename or 'mkv' in filename or 'ogv' in filename -%}
|
||
|
<video autoplay loop muted>
|
||
|
<source src="{{ filename }}">
|
||
|
</video>
|
||
|
{%- endif -%}
|
||
|
</a>
|
||
|
{%- endfor %}
|
||
|
<!--
|
||
|
<form action="{{ url_for('upload_file') }}" method="POST" enctype="multipart/form-data">
|
||
|
<label for="tile">Choose an image to upload:</label>
|
||
|
<input type="file"
|
||
|
id="tile" name="tile" required>
|
||
|
<label for="overwrite"> and a position for it to go (number from 00 to 41):</label>
|
||
|
<input type="text" name="overwrite" required>
|
||
|
<input type="submit" value="Upload">
|
||
|
</form> -->
|
||
|
</body>
|
||
|
</html>
|