-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
42 lines (42 loc) · 1.03 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
<html>
<head>
<script>
function generate_token_data() {
let x = "0123456789abcdef", hash = '0x'
for (let i = 64; i > 0; --i) {
hash += x[Math.floor(Math.random()*x.length)]
}
data = {"hash":hash, "tokenId":1000000}
return data
}
let tokenData = generate_token_data()
</script>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<style type="text/css">
body {
margin: 0;
padding: 0;
}
canvas {
padding: 0;
margin: auto;
display: block;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js"></script>
</head>
<body>
<div>
<script src="patch01.js"></script>
<script src="patch02.js"></script>
<script src="patch03.js"></script>
<script src="patchwork.js"></script>
</div>
</body>
</html>