Files
2025-08-23 17:40:58 +02:00

43 lines
1017 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/x-icon" href="/static/images/pvv_logo.png">
<title>IMAGES</title>
<style>
body {
margin: 0;
background: black;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
img {
max-width: 100%;
max-height: 100%;
}
</style>
</head>
<body>
<img id="images" src="/static/images/pvv_logo.png" alt="images">
<script>
fetch("/files")
.then(res => res.json())
.then(files => {
const images = files.ImageNames
console.log(images)
let index = 0;
setInterval(() => {
index = (index + 1) % images.length;
document.getElementById("images").src = images[index];
}, 1000);
});
</script>
</body>
</html>