-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
97 lines (94 loc) · 2.86 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>Copy Chat</title>
<link rel="stylesheet" href="styles.css" />
<!-- <link rel="stylesheet" href="background.css" /> -->
<link
href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css"
rel="stylesheet"
/>
</head>
<body>
<header>
<nav class="navbar">
<div class="logo">
<img src="images/chat2.png" alt="logo" class="app-logo" />
</div>
</nav>
</header>
<div class="overlay hidden"></div>
<div class="modal create-modal onCreate hidden">
<button class="close-modal" onclick="closeModalFunction('create-modal')">
×
</button>
<form action="chat.html" class="create-chat-form">
<div class="join create-to-absolute">
<label for="username">Username: </label>
<input
type="text"
name="username"
id="usernameInput"
placeholder="Enter your username"
class="modalInput"
value="Guest"
required
/>
</div>
<input type="hidden" name="type" value="create" />
<button onclick="Submit" class="button-29 home-btn">Create Chat</button>
</form>
</div>
<div class="modal join-modal onJoin hidden">
<button class="close-modal" onclick="closeModalFunction('join-modal')">
×
</button>
<form action="chat.html">
<div class="join">
<div>
<label for="username">Username: </label>
<input
type="text"
name="username"
id="joinUserNameInput"
placeholder="Enter your username"
class="modalInput"
value="Guest"
maxlength="20"
minlength="3"
required
/>
</div>
<div>
<label for="roomId">Room Id: </label>
<input
type="number"
name="roomId"
id="userRoomId"
placeholder="Enter roomId(6 digit number)"
class="modalInput"
max="999999"
min="100000"
required
/>
</div>
</div>
<input type="hidden" name="type" value="join" />
<button onclick="Submit" class="button-29 home-btn">Join Chat</button>
</form>
</div>
<div id="container" class="container">
<div class="buttons">
<button class="create-chat chatBtn" onclick="openModal('create-modal')">
Create Chat
</button>
<button class="join-chat chatBtn" onclick="openModal('join-modal')">
Join Chat
</button>
</div>
<div id="chatbox" class="hidden"></div>
</div>
<script src="./js/index.js"></script>
</body>
</html>