-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.php
250 lines (250 loc) · 7.73 KB
/
index.php
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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
<?php
include "etc/includes.php";
?>
<!DOCTYPE html>
<html>
<head>
<?php include "etc/head.php"; ?>
</head>
<body data-page="chat">
<div class="connecting">
<div class="lds-facebook"><div></div><div></div><div></div></div>
</div>
<div id="blackout"></div>
<div class="popover" data-name="startConversation">
<div class="head">
<div class="title">New Conversation</div>
<div class="icon action close" data-action="close"></div>
</div>
<div class="body">
<input class="tab" type="text" name="domain" placeholder="hnschat/">
<input type="text" name="message" placeholder="Message">
<div class="button" data-action="startConversation">Start Conversation</div>
<div class="response"></div>
</div>
</div>
<div class="popover" data-name="syncSession">
<div class="head">
<div class="title">Sync Session</div>
<div class="icon action close" data-action="close"></div>
</div>
<div class="body">
<div class="subtitle">Use this QR code or link to sync your session to another browser.</div>
<div id="qrcode"></div>
<div class="group">
<input readonly="readonly" class="copyable" type="text" name="session">
<div class="icon action clipboard" data-action="clipboard"></div>
</div>
</div>
</div>
<div class="popover" data-name="donate">
<div class="head">
<div class="title">Donate</div>
<div class="icon action close" data-action="close"></div>
</div>
<div class="body">
<div class="subtitle">If you enjoy using this free service, please consider donating.</div>
<input type="text" name="usd" placeholder="$ 1.00">
<div class="button" data-action="submitDonation">BTC, LTC, or DOGE with BTCPay</div>
<div class="address">hs1qf0cxy6ukhgjlmqfhe0tpw800t2tcul4s0szwqa</div>
<div class="response"></div>
</div>
</div>
<div class="popover" data-name="pay">
<div class="head">
<div class="title">Send HNS</div>
<div class="icon action close" data-action="close"></div>
</div>
<div class="body">
<div class="loading flex shown">
<div class="lds-facebook"><div></div><div></div><div></div></div>
</div>
<div class="content">
<div class="subtitle"></div>
<input type="hidden" name="address">
<input type="text" name="hns" placeholder="0.00 HNS">
<div class="button" data-action="sendHNS">Send with Bob Extension</div>
</div>
<div class="response"></div>
</div>
</div>
<div class="popover" data-name="settings">
<div class="head">
<div class="title">Settings</div>
<div class="icon action close" data-action="close"></div>
</div>
<div class="body">
<div class="setting">
<div class="subtitle">Avatar URL</div>
<input class="remote tab" type="text" name="avatar" placeholder="">
</div>
<div class="setting">
<div class="subtitle">HNS Wallet Address</div>
<input class="remote tab" type="text" name="address" placeholder="">
</div>
<div class="setting">
<div class="subtitle">Chat Bubble Color</div>
<input class="color tab" type="text" name="bubbleBackground">
</div>
<div class="setting">
<div class="subtitle">Self Chat Bubble Color</div>
<input class="color tab" type="text" name="bubbleSelfBackground">
</div>
<div class="setting">
<div class="subtitle">Mention Chat Bubble Color</div>
<input class="color" type="text" name="bubbleMentionBackground">
</div>
<div class="setting">
<div class="subtitle">Sync Session</div>
<div class="center action link" data-action="syncSession">Show QR + Link</div>
</div>
<div class="button" data-action="saveSettings">Save</div>
<div class="response"></div>
</div>
</div>
<div class="popover contextMenu" data-name="userContext">
<div class="body">
<ul>
<li>
<span class="user subtitle"></span>
</li>
</ul>
<div class="separator"></div>
<ul>
<li class="action" data-action="startConversationWith">Message</li>
</ul>
</div>
</div>
<div class="popover contextMenu" data-name="messageContext">
<div class="body">
<ul>
<li>
<span class="message subtitle">Blah blah blah</span>
</li>
</ul>
<div class="separator"></div>
<ul>
<li class="action reply" data-action="reply">Reply</li>
<li class="action emoji" data-action="emojis">React</li>
<li class="action delete error" data-action="deleteMessage">Delete</li>
</ul>
</div>
</div>
<div id="holder">
<div class="header">
<div class="left">
<div class="icon menu"></div>
</div>
<div class="center">
<div class="logo">
<img draggable="false" src="/assets/img/handshake">
<span>Chat</span>
</div>
<div class="domains">
<select></select>
</div>
</div>
<div class="right">
<div class="icon users"></div>
</div>
</div>
<div id="chats">
<div id="conversations" class="sidebar">
<div class="title">
<div class="tabs">
<div class="tab" data-tab="channels">Channels</div>
<div class="tab" data-tab="private">Private</div>
</div>
<div class="action icon compose" data-action="startConversation"></div>
</div>
<div class="sections">
<div class="section channels">
<table></table>
</div>
<div class="section private">
<table></table>
</div>
</div>
<div class="footer">
<div class="action link" data-action="settings">Settings</div>
<a href="https://wolf-5.gitbook.io/hnschat/" target="_blank">Help</a>
<div class="action link" data-action="donate">Donate</div>
</div>
</div>
<div class="content">
<div class="messageHeader">
<table></table>
</div>
<div id="messageHolder">
<div class="popover" id="mention" data-name="mention">
<div class="head">
<div class="title">Mention</div>
<div class="icon action close" data-action="close"></div>
</div>
<div class="body">
<table class="list"></table>
</div>
</div>
<div class="popover" id="emojis" data-name="emojis">
<div class="head">
<div class="title">Emojis</div>
<div class="icon action close" data-action="close"></div>
</div>
<div class="body">
<div class="search">
<input type="text" name="searchEmojis" placeholder="Search">
</div>
<div class="grid"></div>
</div>
</div>
<div id="messages"></div>
</div>
<div class="inputContainer">
<div id="typing" class="flex">
<div class="message">Test</div>
</div>
<div id="replying" class="flex">
<div class="message"></div>
<div class="action icon remove" data-action="removeReply"></div>
</div>
<div id="attachments" class="flex"></div>
<div class="inputHolder">
<div class="input">
<div class="action icon plus" data-action="file">
<input id="file" type="file" name="file">
</div>
<div class="action icon pay" data-action="pay"></div>
<div class="action icon emoji big" data-action="emojis"></div>
<div class="inputs">
<textarea id="message" placeholder="Message"></textarea>
</div>
</div>
<div class="verify">Verify your name to chat.</div>
<div class="locked">This conversation is locked.</div>
<div class="noConversations">You have no conversations.</div>
</div>
</div>
</div>
<div id="users" class="sidebar">
<div class="title">
<div class="group normal">
<div class="action icon search" data-action="searchUsers"></div>
<div>Users</div>
</div>
<div class="group flex searching">
<input type="text" name="search">
<div class="action icon close" data-action="searchUsers"></div>
</div>
<div id="count"></div>
</div>
<div class="sections">
<div class="section users">
<table></table>
</div>
</div>
</div>
</div>
</div>
<div id="avatars"></div>
</body>
</html>