-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (43 loc) · 1.13 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
<!DOCTYPE html>
<html>
<head>
<title>AtomicForm interactive web interface</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
html, body, .fill {
margin: 0;
width: 100%;
height: 100%;
}
iframe {
border: none;
display: block;
}
</style>
</head>
<body>
<iframe id="frame" class="fill"></iframe>
<script>
const itemURLs = [
"https://generator.artblocks.io/117004599",
//Gen 2
"https://generator.artblocks.io/18000000",
"https://generator.artblocks.io/18000001",
"https://generator.artblocks.io/18000002",
//Endless Nameless
"https://generator.artblocks.io/120000000",
"https://generator.artblocks.io/120000001",
];
const frame = document.getElementById("frame");
frame.src = itemURLs[0];
frame.onload = () => (frame.contentDocument || frame.contentWindow.document).getElementsByTagName("head")[0].click();
let itemIndex = 0;
setInterval(() => {
itemIndex++;
if(itemIndex >= itemURLs.length) itemIndex = 0;
frame.src = itemURLs[itemIndex];
}, 60 * 1000);
</script>
</body>
</html>