-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (42 loc) · 1.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Meeting Moods</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Fira+Code&display=swap" rel="stylesheet">
<style>
* {
font-family: 'Fira Code', monospace;
}
.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
color: #6d6875;
text-align: center;
}
body, html {
height: 100%;
display: grid;
}
button { /* thing to center */
margin: auto;
}
</style>
</head>
<body>
<p>Distributed consensus hand signals</p>
<button onclick="createRoom()">Create Room</button>
<div class="footer">
<p>[[.]]</p>
</div>
<script>
function createRoom() {
const room = Math.floor(Math.random() * 90000 + 10000).toString();
location.pathname = room
}
</script>
</body>
</html>