-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
54 lines (51 loc) · 1.89 KB
/
Copy pathindex.html
File metadata and controls
54 lines (51 loc) · 1.89 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Web Chat — Private 1:1</title>
<link rel="stylesheet" href="./css/style.css" />
<!-- QuickBlox JavaScript SDK from CDN. Version pinned so the
tutorial does not break when a new SDK release ships. -->
<script src="https://unpkg.com/quickblox@2.23.0/quickblox.min.js"></script>
</head>
<body>
<!-- Login screen -->
<section id="login-screen" class="screen">
<div class="card">
<h1>Web Chat</h1>
<p class="muted">Private 1:1 chat</p>
<form id="login-form">
<label>
<span>Login</span>
<input id="login-input" type="text" autocomplete="username" required />
</label>
<label>
<span>Password</span>
<input id="password-input" type="password" autocomplete="current-password" required />
</label>
<button type="submit">Sign in</button>
</form>
<p id="login-error" class="error"></p>
</div>
</section>
<!-- Chat screen -->
<section id="chat-screen" class="screen" hidden>
<header class="topbar">
<span class="topbar__title">Web Chat</span>
<span class="topbar__user">
<span id="current-user"></span>
<button id="logout-btn" class="btn-link">Logout</button>
</span>
</header>
<div id="message-list" class="message-list"></div>
<form id="message-form" class="message-form">
<input id="message-input" type="text" placeholder="Type a message…" autocomplete="off" />
<button type="submit">Send</button>
</form>
</section>
<!-- config.js holds your credentials; it must load before app.js -->
<script src="./js/config.js"></script>
<script src="./js/app.js"></script>
</body>
</html>