forked from sheldor1510/local-party
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
229 lines (225 loc) · 8.68 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Local Party</title>
<link href="https://vjs.zencdn.net/7.10.2/video-js.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/inter.min.css">
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Lexend+Deca&display=swap" rel="stylesheet">
<!-- Icons -->
<script src="https://kit.fontawesome.com/abc159cb0a.js" crossorigin="anonymous"></script>
<link rel="shortcut icon" href="icon.png">
<!-- Notyf -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/notyf@3/notyf.min.css">
<script defer src="render.js"></script>
<link rel="stylesheet" href="index.css">
</head>
<body>
<!-- Landing Page -->
<div class="landing" id="landing">
<div class="container-fluid main">
<div class="row">
<div class="col-12 logo text-center">
<img src="icon.png" width="300px" alt="Logo">
</div>
</div>
<div class="row">
<div class="col-12 text-center">
<h1 class="head">
Local Party
</h1>
</div>
<div class="col-12 text-center mt-4">
<button class="buttons" id="createRoomButton">
Create Room
</button>
</div>
<div class="col-12 mt-4 text-center">
<button class="buttons" id="joinRoomButton">
Join Room
</button>
</div>
</div>
</div>
</div>
<!-- Create Page -->
<div class="create" id="create">
<div class="container-fluid">
<div class="row mt-3">
<div class="col-1 text-center">
<i class="fas fa-arrow-left back-btn" id="backButton"></i>
</div>
</div>
<div class="row">
<div class="col-12 text-center create-col">
<h1 class="create-head">
Create Room
</h1>
</div>
<div class="col-12 text-center mt-2">
<p id="createRoomText"></p>
<div>
<div class="mt-1 mb-1">
<input
class=""
type="text"
name="username"
id="create-username"
placeholder="username"
autocomplete="off"
required
>
</div>
<div class="mt-3">
<input
class=""
type="text"
name="roomname"
id="roomname"
placeholder="room name"
autocomplete="off"
required
>
</div>
<div class="mt-4">
<input type="file" class="form-control fileInput" id="file-id" onchange="onChangeFile();">
<br>
<p id="filePathText"></p>
</div>
</div>
<div class="mt-4">
<button class="buttons" style="width: 10rem;" id="roomCreateButton">
Create
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Join Page -->
<div class="join" id="join">
<div class="container-fluid">
<div class="row mt-3">
<div class="col-1 text-center">
<i class="fas fa-arrow-left back-btn" id="backButton"></i>
</div>
</div>
<div class="row">
<div class="col-12 text-center join-col">
<h1 class="create-head">
Join Room
</h1>
</div>
<div class="col-12 text-center mt-3">
<p id="joinRoomText"></p>
<div class="mt-1 mb-1">
<input
class=""
type="text"
name="username"
id="join-username"
placeholder="username"
autocomplete="off"
required
>
</div>
<div class="mt-3">
<input
class=""
type="text"
name="roomCode"
id="roomCode"
placeholder="room code"
autocomplete="off"
required
>
</div>
<div class="mt-4">
<input type="file" class="form-control fileInput" id="join-file-id" onchange="onChangeJoinFile();">
<br>
<p id="filePathText"></p>
</div>
<div class="mt-4">
<button class="buttons" style="width: 10rem;" id="roomJoinButton">
Join
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Room Page -->
<div class="room" id="room">
<div class="container-fluid">
<div class="row">
<div class="col-9 left-side">
<div class="video video-player-conatiner">
<video
id="video-player"
class="video-js vjs-big-play-centered"
controls
preload="metadata"
data-setup='{}'
>
<source id="videoSrc" src="test.mp4" type="video/mp4" />
</video>
</div>
<!-- <img src="loading.gif" alt="loader" id="loader"/> -->
</div>
<div class="col-3 right-side">
<div class="row mt-3">
<div class="col-12 text-center">
<h6 class="room-code" id="roomNameText">Room Name</h6>
</div>
</div>
<hr class="mt-1" style="height: 0.1rem; width: 90%; background-color: white; margin: auto;">
<div class="row mt-3">
<div class="col-12">
<div class="row">
<div class="col-2 text-center" data-toggle="tooltip" data-placement="bottom" title="Leave Party">
<i class="fas fa-sign-out-alt icon" id="roomLeaveButton"></i>
</div>
<div class="col-8 text-center">
<h6 class="room-code" data-toggle="tooltip" data-placement="left" title="Room Code" id="roomCodeText">1234</h6>
</div>
<div class="col-2 text-center">
<h6 id="pplinparty" class="members" data-toggle="tooltip" data-placement="left" title="People in party: 1">
<i class="fas fa-user-friends"></i>
</h6>
</div>
</div>
<div class="row mt-2 mb-2 messages" id="messages-box">
</div>
<div class="row">
<div class="col-12">
<div class="row justify-content-center chattimg">
<form action="#" id="send-form">
<div class="col-12">
<input
autocomplete="off"
class="form-control"
type="text"
name="messageInp"
id="messageInp"
placeholder="Message"
>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://local-party.herokuapp.com/socket.io/socket.io.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/notyf@3/notyf.min.js"></script>
</body>
</html>