-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (51 loc) · 1.69 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Not_Crazy.md</title>
<link rel="stylesheet" href="/resources/style.css">
<meta name="viewport" content="width=device-width, height=device-height">
</head>
<body>
<div id="backgroundGlyph"></div>
<a href="/mobilenav.html" id="navmobile"> Menu </a>
<iframe id="navframe" src="/resources/nav.html"></iframe>
<main>
<div class="circlesPacked">
<a class="packedCircle" href="/SoxBox.html">
<video class="thumbnail" autoplay muted playsinline loop src="resources/SoxBox/soxboxPH.mp4"></video>
<div class="thumbtext">
SoxBox
</div>
</a>
<a class="packedCircle" href="/Cool-Projects.html">
<div class="thumbnailPhoto">
<img id="dynamicImagePhoto" src="" alt="Cool Projects" />
</div>
<div class="thumbtext">
Cool Projects
</div>
</a>
<script>
document.addEventListener("DOMContentLoaded", () => {
const imageFolder = "/resources/Photos/CoolProjects";
const images = [
`${imageFolder}/3DCrane.png`,
`${imageFolder}/3DExcavator.png`,
`${imageFolder}/3DFork.jpg`,
`${imageFolder}/3DSkid.png`,
];
const dynamicImage = document.getElementById("dynamicImagePhoto");
let currentIndex = 0;
function updateImage() {
dynamicImage.src = images[currentIndex];
currentIndex = (currentIndex + 1) % images.length;
}
setInterval(updateImage, 2000);
updateImage();
});
</script>
</div>
</main>
</body>
</html>