-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
174 lines (149 loc) · 3.8 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!DOCTYPE html>
<html lang="en">
<head>
<title>Pocket Milady</title>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"
/>
<link rel="stylesheet" href="./style.css" />
<script
async
src="https://unpkg.com/[email protected]/dist/es-module-shims.js"
></script>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/[email protected]/build/three.module.js",
"three/addons/": "https://unpkg.com/[email protected]/examples/jsm/"
}
}
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/umd/index.min.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Mono&display=swap"
rel="stylesheet"
/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tween.js/20.0.0/tween.umd.js"></script>
<script type="module" src="helpers.js"></script>
<script type="module" src="constants.js"></script>
</head>
<body
style="margin: 0px; text-align: center; height: 100vh; overflow: hidden"
>
<div
style="
display: flex;
flex-direction: column;
height: 100vh;
justify-content: space-around;
align-items: center;
background-color: lightpink;
"
>
<canvas
style="
border-radius: 5px;
background-color: rgb(162, 179, 162);
height: 95%;
width: 95%;
"
id="threeCanvas"
>
loading...
</canvas>
<div
style="
color: white;
position: absolute;
bottom: 5%;
left: 50%;
transform: translate(-50%, 0);
width: 75%;
"
>
<div style="display: flex; flex-direction: column; align-items: center">
<div id="menu"
onmouseenter="openMenu()"
onmouseleave="closeMenu()"
>
<div id="status-bar">
</div>
<div style="display: flex; max-height:160px;">
<div class="column">
<button type="button" class="nes-btn" id="console-chatMode">
Chat
</button>
<button type="button" class="nes-btn" id="console-radioMode">
Radio
</button>
<button type="button" class="nes-btn" id="console-galleryMode">
Gallery
</button>
<div
onclick="window.open(document.URL, '_blank', 'location=yes,height=680,width=680,scrollbars=yes,status=yes');"
>
<svg
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
stroke-width="2px"
viewBox="0 0 24 24"
height="1.4em"
width="2em"
>
<path stroke="none" d="M0 0h24v24H0z" />
<path d="M21 12v3a1 1 0 01-1 1H4a1 1 0 01-1-1V5a1 1 0 011-1h9M7 20h10M9 16v4M15 16v4M17 4h4v4M16 9l5-5" />
</svg>
</div>
</div>
<div class="grow">
<div id="radioMode" class="grow">
<div class="grow">
list of songs here
</div>
<div>
video here
</div>
</div>
<div id="galleryMode" class="grow">
Keep playing to unlock more photos!
</div>
<div id="chatMode" class="column">
<div id="chat">
</div>
<div class="row">
<input id="chat-input" placeholder="type here to chat, /help for commands"></input>
<button id="chat-submit" type="button">
Send
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
function openMenu() {
var menu = document.getElementById("menu");
menu.style.height = "200px";
}
function closeMenu() {
var menu = document.getElementById("menu");
menu.style.height = "20px";
}
</script>
<!-- <audio controls autoplay loop>
<source src="./assets/audio/charlieshere.mp3" type="audio/mpeg" />
Your browser does not support the audio element.
</audio> -->
<script type="module" src="index.js"></script>
</body>
</html>