-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (39 loc) · 1 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
<html>
<head>
<title>back and forth</title>
<style>
h1 {
display: none;
font-family: monospace;
}
h1.show {
display: block;
}
</style>
</head>
<body>
<h1 id="1" class="show">))<>((</h1>
<h1 id="2">))> ((</h1>
<h1 id="3">))<>((</h1>
<h1 id="4">)) <((</h1>
<!--
<h1 id="1">\o/</h1>
<h1 id="2">lol</h1>
<h1 id="3">\o/</h1>
<h1 id="4">lol</h1>
-->
<script>
var index = 1;
setInterval(function() {
var element = document.getElementById(index);
element.classList.remove("show");
index = index + 1;
if (index > 4) {
index = 1;
}
var element = document.getElementById(index);
element.classList.add("show");
}, 1000);
</script>
</body>
</html>