forked from Lukas-Bloom/N-igma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
153 lines (150 loc) · 3.84 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body
style="
background-color: rgb(32, 32, 32);
display: flex;
flex-direction: column;
justify-content: space-evenly;
"
>
<!-- What is this script for? -->
<div
id="mainMenuDiv"
class="container"
style="
text-align: center;
max-height: 671px;
height: 671px;
width: 1100px;
margin: auto;
background-image: url(sprites/menu-background.png);
display: block;
margin-top: 50px;
"
>
<button
type="submit"
class="btn btn-success"
id="newGameButton"
style="
height: 65px;
width: 312px;
margin-top: 408px;
background-color: transparent;
cursor: pointer;
border: none;
outline: none;
"
>
<img
src="/sprites/newGameBtn.png"
onmouseover="this.src='/sprites/newGameBtnHov.png'"
onmouseout="this.src='/sprites/newGameBtn.png'"
alt=""
/>
</button>
<button
type="submit"
class="btn btn-success"
id="joinGameButton"
style="
font-size: 32px;
height: 65px;
width: 312px;
margin-top: 10px;
margin-left: 393px;
background-color: transparent;
cursor: pointer;
border: none;
outline: none;
display: block;
"
>
<img
src="/sprites/joinGameBtn.png"
onmouseover="this.src='/sprites/joinGameBtnHov.png'"
onmouseout="this.src='/sprites/joinGameBtn.png'"
alt=""
/>
</button>
<input
onfocus="this.value=''"
value="Gamecode"
type="text"
id="codeInput"
spellcheck="false"
style="
text-align: center;
color: rgba(0, 0, 0, 0.5);
font-weight: bold;
font-size: 18px;
width: 100px;
height: 30px;
outline: none;
border-style: solid;
border-color: rgb(54, 54, 54);
border-width: 5px;
border-radius: 8px;
margin-left: 14px;
margin-top: 14px;
background-color: orange;
"
/>
</div>
<div id="gamecodeDiv" style="display: none">
<div
id="topBanner"
style="
display: flex;
justify-content: space-evenly;
align-items: center;
"
>
<button
id="rgBtn"
style="
background-color: transparent;
border-style: none;
cursor: pointer;
"
>
<img
src="/sprites/exitBtn.png"
onmouseover="this.src='/sprites/exitBtnHov.png'"
onmouseout="this.src='/sprites/exitBtn.png'"
alt=""
/>
</button>
<div id="joinCode" style="color: white"></div>
<button
id="rlBtn"
style="
background-color: transparent;
border-style: none;
cursor: pointer;
"
>
<img
src="/sprites/restartBtn.png"
onmouseover="this.src='/sprites/restartBtnHov.png'"
onmouseout="this.src='/sprites/restartBtn.png'"
alt=""
/>
</button>
</div>
</div>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.2.0/socket.io.js"
integrity="sha512-WL6WGKMPBiM9PnHRYIn5YEtq0Z8XP4fkVb4qy7PP4vhmYQErJ/dySyXuFIMDf1eEYCXCrQrMJfkNwKc9gsjTjA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script type="module" src="main.js"></script>
</body>
</html>