40 lines
956 B
HTML
Raw Normal View History

2025-03-28 18:37:58 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Latest Image</title>
<style>
* {
margin: 0;
padding: 0;
2025-03-29 08:44:50 +00:00
box-sizing: border-box;
2025-03-28 18:37:58 +00:00
}
body {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background: black;
}
img {
2025-03-29 08:44:50 +00:00
width: 100vw;
height: 100vh;
2025-03-28 18:37:58 +00:00
object-fit: contain;
}
</style>
<script>
setInterval(() => {
location.reload();
2025-03-29 12:24:46 +00:00
}, {{ reload_interval }}); // Refresh every 5 seconds
2025-03-28 18:37:58 +00:00
</script>
</head>
<body>
{% if image %}
<img src="{{ url_for('images', filename=image) }}" alt="Latest Image">
{% else %}
<p style="color: white;">No images found</p>
{% endif %}
</body>
</html>