Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김대욱
/
My_Project
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김대욱
2020-06-24 13:50:46 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
107f6994dfffe3b5d22fb666331c7a6aa0794d00
107f6994
1 parent
f52444cf
chat.js 수정_4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
public/js/chat.js
public/js/chat.js
View file @
107f699
...
...
@@ -63,10 +63,10 @@ var connect = function() {
clients
=
[];
if
(
connected
)
{
updateBar
(
'mdi-action-autorenew spin'
,
'
Connection lost, reconnecting
...'
,
true
);
updateBar
(
'mdi-action-autorenew spin'
,
'
접속이 종료 됐습니다, 재접속중입니다
...'
,
true
);
timer
=
setTimeout
(
function
()
{
console
.
warn
(
'
Connection lost, reconnecting
...'
);
console
.
warn
(
'
접속이 종료 됐습니다, 재접속중입니다
...'
);
connect
();
},
1500
);
}
...
...
@@ -119,17 +119,17 @@ var connect = function() {
if
(
data
.
reason
==
'length'
)
{
message
=
'Your username must have at least 3 characters and no more than 16 characters'
;
}
/*
if
(
data
.
reason
==
'format'
)
{
message
=
'Your username must only contain alphanumeric characters (numbers, letters and underscores)'
;
}
*/
if
(
data
.
reason
==
'taken'
)
{
message
=
'
This username is already taken
'
;
message
=
'
이 사용자명은 이미 사용중입니다.
'
;
}
if
(
data
.
reason
==
'banned'
)
{
message
=
'
You have been banned from the server for '
+
data
.
time
/
60
/
1000
+
' minutes. You have to wait until you get unbanned to be able to connect again
'
;
message
=
'
서버로부터 밴됐습니다. 재접속 가능 시간까지 '
+
data
.
time
/
60
/
1000
+
'분 남았습니다.
'
;
}
showChat
(
'light'
,
null
,
message
);
...
...
Please
register
or
login
to post a comment