-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
91 lines (86 loc) · 2.96 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link rel="manifest" href="manifest.json">
<link rel="shortcut icon" href="favicon.png">
<meta property="og:title" content="Gravity" />
<meta property="og:description" content="A generative art piece" />
<title>Gravity</title>
<style>
#textToHide {
/* animation-delay: 2s; */
-moz-animation: hideAnimation 500ms ease-in-out 4s;
-webkit-animation: hideAnimation 500ms ease-in-out 4s;
-o-animation: hideAnimation 500ms ease-in-out 4s;
animation: hideAnimation 500ms ease-in-out 4s;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
}
@keyframes hideAnimation {
from {
opacity: 1;
}
to {
opacity: 0;
/* width: 0;
height: 0;
overflow: hidden; */
}
}
@-webkit-keyframes hideAnimation {
from {
opacity: 1;
}
to {
opacity: 0;
/* width:0;
height:0;
visibility:hidden; */
}
}
</style>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js"></script>
</head>
<body style="margin: 0;padding:0;outline: none;border: none;text-align: left;cursor: pointer; position: fixed; left: 0; right: 0; top: 0; bottom: 0; font-family: 'Courier New', Courier, monospace;">
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<a
href="https://github.com/Anemy/gravity"
id="github-link"
target="_blank"
rel="noopener noreferrer"
style="position: absolute; top: 10px; left: 8px; font-size: 18px;"
>Github</a>
<a
href="https://artsable.com/workspace/5de80a959ef5ad001fcdd8f7"
id="artsable-link"
target="_blank"
rel="noopener noreferrer"
style="position: absolute; top: 10px; right: 8px; font-size: 18px;"
>Artsable</a>
<div
id="seed"
style="position: absolute; top: 34px; right: 8px; font-size: 16px;"
>Seed</div>
<div
id="textToHide"
class="textToHide"
style="color: white; margin: 0 auto; position: absolute; top: 10vh; right: 0%; left: 0%; overflow: visible; text-align: center; margin-top: -12px;"
>Click anywhere for something new</div>
<div
id="textToHide"
class="textToHide"
style="color: black; margin: 0 auto; position: absolute; top: 10vh; right: 0%; left: 0%; overflow: visible; text-align: center; margin-top: 12px;"
>Click anywhere for something new</div>
</div>
<script src="treasure.js"></script>
</body>
</html>