index.ejs
11.9 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
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
251
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="OpenSource node.js chat application">
<meta name="author" content="Igor Antun">
<link rel="icon" type="image/png" href="img/favicon.png" />
<title>Node.JS Chat</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/chat.css" rel="stylesheet">
<link href="css/ripples.css" rel="stylesheet">
<link href="css/material-wfont.min.css" rel="stylesheet">
<link href="css/jquery-ui.css" rel="stylesheet">
<link href="css/emojione.min.css" rel="stylesheet" type="text/css"/>
<link href="https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
</head>
<body>
<div class="container-fluid main">
<a target="_blank" href="https://github.com/IgorAntun/node-chat"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
<div class="row">
<div class="col-xs-12 col-lg-10 col-lg-offset-1"><br>
<div class="well page active">
<nav class="navbar shadow-z-2">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#collapser">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Node.JS Chat <span id="version" style="font-size:7pt"></span></a>
</div>
<div class="collapse navbar-collapse" id="collapser">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Chat</a></li>
<li><a id="help" href="#">Help</a></li>
<li><a id="user" href="#">Users</a></li>
<li><a id="menu-admin" href="#" style="display:none">Admin</a></li>
<li><a id="menu-options" href="#">Options</a></li>
</ul>
</div>
</div>
</nav>
<div class="row">
<div class="col-xs-12 col-md-12 ">
<div class="well">
<div class="row">
<div class="col-xs-6">
<h2>Messenger</h2>
</div>
<div class="col-xs-6">
<button id="options" class="btn btn-fab btn-fab-mini btn-primary pull-right">
<i id="icon-settings" class="mdi mdi-action-settings"></i>
</button>
<button id="audio" class="btn btn-fab btn-fab-mini btn-primary pull-right" style="display:none">
<i id="icon-audio" class="mdi mdi-av-mic"></i>
</button>
</div>
</div>
<br>
<div class="panel panel-default">
<div class="panel-heading">Messages</div>
<div id="panel" class="panel-body"></div>
</div>
<p id="typing"><br></p>
<hr>
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<div class="input-group">
<span class="input-group-addon"><span id="icon" class="mdi mdi-social-person"></span></span>
<input id="message" type="text" class="form-control" placeholder="Choose an username" aria-describedby="basic-addon1" maxlength="768">
<span class="input-group-btn">
<button id="send" class="btn btn-primary btn-flat">Connect</button>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<p class="text-left pull-left">Created by <a href="https://github.com/IgorAntun" target="_blank">Igor Antun</a></p>
<p id="badges" class="text-right pull-right">
<span><label id="users" class="label">0 USERS</label></span>
<span><label id="admin" class="label label-warning" style="display:none">ADMIN</label></span>
<span><label class="label label-info">BETA</label></span>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="help-dialog" class="modal fade" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-body">
<div class="row">
<h4><b>Current available commands:</b></h4>
<div class="col-xs-3"><b>
<b>COMMAND</b>
<br>/pm
<br>/me or /em
<br>/shrug
<br>/name
<br>/users
<br>/help
<br>/clear
<br>/reconnect
</b></div>
<div class="col-xs-2">
<b>VARIABLES</b>
<br>[user] [message]
<br>[message]
<br>[message]
<br>[name]
<br>
<br>
<br>
</div>
<div class="col-xs-7">
<b>DESCRIPTION</b>
<br>Sends a private <i>[message]</i> for <i>[user]</i>
<br>Sends <i>[message]</i> in italics
<br>Sends <i>[message]</i> followed by '¯\_(ツ)_/¯'
<br>Changes your name to <i>[name]</i>
<br>Shows users on the server
<br>Shows this help dialog
<br>Clears your chat history
<br>Reconnects to the server
</div>
</div>
</div>
</div>
</div>
</div>
<div id="admin-help-dialog" class="modal fade" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-body">
<div class="row">
<h4><b>Current available administrator commands:</b></h4>
<div class="col-xs-3"><b>
<b>COMMAND</b>
<br>/alert
<br>/kick
<br>/ban
<br>/role
</b></div>
<div class="col-xs-2">
<b>VARIABLES</b>
<br>[message]
<br>[user]
<br>[user] [minutes]
<br>[user] [1-3]
</div>
<div class="col-xs-7">
<b>DESCRIPTION</b>
<br>Sends global <i>[message]</i>
<br>Kicks <i>[user]</i> from the server
<br>Bans <i>[user]</i> from the server for <i>[minutes]</i>
<br>Changes <i>[user]</i> administrator permissions
</div>
</div>
</div>
</div>
</div>
</div>
<div id="options-dialog" class="modal fade" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-body">
<h4><b>Chat options:</b></h4>
<div class="togglebutton">
<label>Emojis<input id="emoji" type="checkbox"></label>
</div>
<div class="togglebutton">
<label>Greentext<input id="greentext" type="checkbox"></label>
</div>
<div class="togglebutton" id="toggle-inline">
<label>Inline Images<input id="inline" type="checkbox"></label>
</div>
<div class="togglebutton">
<label>Mention Sound<input id="sound" type="checkbox"></label>
</div>
<div class="togglebutton" id="toggle-desktop" style="display:none">
<label>Desktop Notifications<input id="desktop" type="checkbox"></label>
</div>
<div class="togglebutton" id="toggle-synthesis" style="display:none">
<label>Speech Synthesis [Experimental]<input id="synthesis" type="checkbox"></label>
</div>
<div class="togglebutton" id="toggle-recognition" style="display:none">
<label>Speech Recognition [Experimental]<input id="recognition" type="checkbox"></label>
</div>
</div>
</div>
</div>
</div>
<div id="users-dialog" class="modal fade" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-body">
<h4><b>Current users:</b></h4>
<div id="users-content"></div>
</div>
</div>
</div>
</div>
<script>
var VERSION="<%= version%>";
</script>
<script src="js/complete.ly.1.0.1.min.js"></script>
<script src="js/jquery-2.1.3.min.js"></script>
<script src="js/emojione.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script src="js/jquery.easing.min.js"></script>
<script src="js/jquery.linkify.min.js"></script>
<script src="js/ripples.min.js"></script>
<script src="js/material.min.js"></script>
<script src="js/chat.js"></script>
<script>
$(document).ready(function() {
$.material.init();
});
</script>
</body>
</html>