index.ejs
11.4 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
<!DOCTYPE html>
<html lang="ko">
<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>채팅 사이트</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="http://fonts.googleapis.com/earlyaccess/nanumgothic.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="container-fluid main">
<a target="_blank" href="http://khuhub.khu.ac.kr/2018102163/My_Project"><img style="position: absolute; top: 0; right: 0; border: 0;z-index:999" src="http://gdanawa.com/files/github.png" alt="김대욱깃허브"></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="#">채팅 사이트<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="#">채팅</a></li>
<li><a id="help" href="#">도움말</a></li>
<li><a id="user" href="#">사용자</a></li>
<li><a id="menu-admin" href="#" >Admin</a></li>
<li><a id="menu-options" href="#">옵션</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>채팅</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" >
<i id="icon-audio" class="mdi mdi-av-mic"></i>
</button>
</div>
</div>
<br>
<div class="panel panel-default">
<div class="panel-heading">채팅 창</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="사용할 이름을 넣어주세요" aria-describedby="basic-addon1" maxlength="768">
<span class="input-group-btn">
<button id="send" class="btn btn-primary btn-flat">접속</button>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<p class="text-left pull-left">EDIT by <a href="http://khuhub.khu.ac.kr/2018102163/My_Project" target="_blank">김대욱</a></p>
<p id="badges" class="text-right pull-right">
<span><label id="users" class="label">0 사용자</label></span>
<span><label id="admin" class="label label-warning" >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>옵션변경하기:</b></h4>
<div class="col-xs-3"><b>
<b>명령어</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>변수</b>
<br>[user] [message]
<br>[message]
<br>[message]
<br>[name]
<br>
<br>
<br>
</div>
<div class="col-xs-7">
<b>설명</b>
<br>귓속말 <i>[message]</i> for <i>[user]</i>
<br>입력 <i>[message]</i> 기울이기
<br>입력 <i>[message]</i> 와 함께 '¯\_(ツ)_/¯'
<br>채팅 이름 변경 <i>[name]</i>
<br>접속자 확인
<br>도움말 보기
<br>채팅창 지우기
<br>재접속
</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>명령어</b>
<br>/alert
<br>/kick
<br>/ban
<br>/role
</b></div>
<div class="col-xs-2">
<b>변수</b>
<br>[message]
<br>[user]
<br>[user] [minutes]
<br>[user] [1-3]
</div>
<div class="col-xs-7">
<b>설명</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>이모티콘<input id="emoji" type="checkbox"></label>
</div>
<div class="togglebutton">
<label>욕설 필터<input id="greentext" type="checkbox"></label>
</div>
<div class="togglebutton" id="toggle-inline">
<label>이미지보기<input id="inline" type="checkbox"></label>
</div>
<div class="togglebutton">
<label>채팅 음성지원<input id="sound" type="checkbox"></label>
</div>
<div class="togglebutton" id="toggle-desktop" >
<label>채팅 알림<input id="desktop" type="checkbox"></label>
</div>
<div class="togglebutton" id="toggle-synthesis" >
<label>음성 합성 [Experimental]<input id="synthesis" type="checkbox"></label>
</div>
<div class="togglebutton" id="toggle-recognition" >
<label>음성 인식 [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>현재 접속자:</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>