intal commit
BIN
static/Keffiyeh.png
Normal file
|
After Width: | Height: | Size: 939 KiB |
BIN
static/berserk_poster.png
Normal file
|
After Width: | Height: | Size: 1.7 MiB |
BIN
static/detailed_flower.png
Normal file
|
After Width: | Height: | Size: 829 KiB |
BIN
static/img1.jpg
Normal file
|
After Width: | Height: | Size: 491 KiB |
41
static/index.html
Normal 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>
|
||||
BIN
static/kiki_tee.png
Normal file
|
After Width: | Height: | Size: 275 KiB |
BIN
static/long_stairs.png
Normal file
|
After Width: | Height: | Size: 2.0 MiB |
BIN
static/totoro_stamp.png
Normal file
|
After Width: | Height: | Size: 317 KiB |
BIN
static/twin_tower.png
Normal file
|
After Width: | Height: | Size: 1.2 MiB |