-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
104 lines (102 loc) · 2.57 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
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>XR Koi Garden</title>
<script src="https://cdn.jsdelivr.net/npm/resonance-audio/build/resonance-audio.min.js"></script>
<script type="module" src="build/garden.js"></script>
<meta property="og:title" content="XR Koi Garden" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@lady_ada_king" />
<meta name="twitter:creator" content="@lady_ada_king" />
<meta property="og:url" content="https://ada.is/xrgarden/" />
<meta
name="description"
content="A beautiful VR garden with peaceful music. Listen with headphones for the full effect."
/>
<meta
property="og:description"
content="A beautiful VR garden with peaceful music. Listen with headphones for the full effect."
/>
<meta
property="og:image"
content="https://ada.is/xrgarden/assets/screenshot.png"
/>
<style>
html,
body {
padding: 0;
margin: 0;
overflow: hidden;
}
label,
button {
padding: 0.2em 0;
display: block;
}
#canaudio {
opacity: 0;
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
pointer-events: none;
}
label[for="canaudio"] {
position: fixed;
bottom: 1.5rem;
right: 1.5rem;
background: #0004;
padding: 1.5rem;
border-radius: 50%;
border: 2px solid transparent;
width: 3rem;
height: 3rem;
text-align: center;
font-size: 0;
color: white;
}
#canaudio:focus + label[for="canaudio"] {
border: 2px solid white;
}
label[for="canaudio"]::before {
content: "🔇\FE0E";
font-size: 3rem;
line-height: 3rem;
}
#canaudio:checked + label[for="canaudio"]::before {
content: "🔊\FE0E";
}
</style>
</head>
<body>
<canvas style="position:aboslute;"></canvas>
<audio loop preload id="bgsound">
<source
src="assets/ambient/427400__imjeax__forest-ambient-loop.ogg"
type="audio/ogg"
/>
<source
src="assets/ambient/427400__imjeax__forest-ambient-loop.mp3"
type="audio/mpeg"
/>
</audio>
<script>
window.bgsound.volume = 0.5;
</script>
<input type="checkbox" id="canaudio" />
<label for="canaudio">Toggle Audio</label>
<div
style="position: fixed; right: 0; top: 0; background: #fff8"
id="overlay"
></div>
<img
src="https://adalytics-live.glitch.me/counter.png?fallback=XRGarden&color=black"
alt=""
style="vertical-align: bottom; position:absolute; top:0;"
aria-hidden="true"
/>
</body>
</html>