-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
55 lines (49 loc) · 1.37 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
<!-- Yes i made this w/ChatGPT (i know your here shadow ) -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Click Something...</title>
<style>
body, html {
height: 100%;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
background-color: black;
}
#imageToShow {
opacity: 0;
transition: opacity 3s;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
</style>
</head>
<body onclick="showImage()">
<img id="imageToShow" src="" alt="Loaded Image">
<script>
var currentImageIndex = 0;
var images = [
"https://i.imgur.com/82nkaVe.jpg"
];
function showImage() {
var img = document.getElementById("imageToShow");
currentImageIndex = (currentImageIndex + 1) % images.length;
if (img.style.opacity === "0" || img.style.opacity === "") {
document.title = "??????????????";
img.src = images[currentImageIndex];
setTimeout(function() {
img.style.opacity = "1";
}, 0);
}
}
</script>
</body>
</html>