-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
68 lines (54 loc) · 2.01 KB
/
Copy pathindex.html
File metadata and controls
68 lines (54 loc) · 2.01 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<link rel="stylesheet" href="./chat.css">
<script type="module" src="./js/chat.js"></script>
<title>Simple chat client</title>
</head>
<body>
<section class="container">
<div class="alert alert-danger d-none">
There was an error.
</div>
</section>
<!-- Fake login -->
<div class="card login shadow">
<div class="card-body">
<h3>Login to continue:</h3>
<form autocomplete="off">
<label for="login">Username:</label>
<input type="text" class="form-control user" minlength="3" required placeholder="ex: pedro2000"
autocomplete="off" name="login">
<label for="login">Password:</label>
<input type="password" class="form-control pswd" minlength="2" required name="pswd"
autocomplete="off">
<button class="btn btn-primary" type="submit">Login</button>
</form>
</div>
</div>
<section class="container chat hide">
<h1>Mohole chat with PHP + JS</h1>
<button class="btn btn-danger btn-sm mb-3" id="logout">Logout</button>
<div class="card shadow-sm">
<div class="card-body">
<!-- Where to show the messages -->
<ul class="messages list-unstyled"></ul>
<!-- Where the user type and send a message -->
<form autocomplete="off">
<strong>
<label for="message" class="username"></label>
</strong>
<div class="input-group">
<input type="text" class="form-control" placeholder="Message here..." name="message">
<button class="btn btn-primary" type="submit">Send</button>
</div>
</form>
</div>
</div>
</section>
</body>
</html>