intal commit

This commit is contained in:
2025-08-14 22:39:08 +02:00
parent 9b555c2637
commit 84bc80d921
14 changed files with 182 additions and 0 deletions

41
static/index.html Normal file
View File

@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<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="img1.jpg" alt="images">
<script>
fetch("/files")
.then(res => res.json())
.then(files => {
console.log(files);
const images = files
let index = 0;
setInterval(() => {
index = (index + 1) % images.length;
document.getElementById("images").src = images[index];
}, 10000);
});
</script>
</body>
</html>