-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
81 lines (78 loc) · 3.04 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">
<title>PubNub ChatEngine Paid Chat</title>
<link rel="stylesheet" type="text/css" href="./style.css">
<link rel="stylesheet" type="text/css" href="./stripe.css">
<link rel="shortcut icon" type="image/png" href="favicon.png"/>
</head>
<body>
<div id="username-input-modal" class="modal-background">
<div class="user-input-modal">
<h3>Join Chat</h3>
<p>
Input CC and username to access paid chat for $1.
</p>
<div class="form-row">
<label for="card-element">
Credit or Debit Card
</label>
<div id="card-element">
<!-- A Stripe Element will be inserted here. -->
</div>
<!-- Used to display form errors. -->
<div id="card-errors" role="alert"></div>
</div>
<div class="form-row">
<label for="username-input-paid">
Username
</label>
<input id="username-input-paid" type="text" maxlength="16" class="modal-text-input">
</div>
<div id="join-button-paid" class="modal-button disabled">
Pay & Join Chat
</div>
<hr>
<h3>Rejoin Chat</h3>
<p>
Input your paid username to rejoin chat.
</p>
<input id="username-input" type="text" maxlength="16" class="modal-text-input">
<div id="join-button" class="modal-button disabled">
Join Chat
</div>
</div>
</div>
<div id="chat-interface" class="chat-interface">
<div class="header">
<div class="left">Online Now</div>
<div class="middle">
<h1>ChatEngine Paid Chat</h1>
</div>
<div class="right"></div>
</div>
<div id="online-list" class="online-list"></div>
<div id="chat" class="chat">
<div id="log" class="log"></div>
<div class="input-container">
<div class="textarea-container">
<textarea id="message-input" placeholder="Global Chat..." maxlength="10000"></textarea>
</div>
<div id="submit" class="submit">
<div>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/>
<path d="M0 0h24v24H0z" fill="none"/>
</svg>
</div>
</div>
</div>
</div>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/chat-engine@0.9.18/dist/chat-engine.js"></script>
<script src="https://js.stripe.com/v3/"></script>
<script src="app.js" type="text/javascript"></script>
</html>