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:10:39 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cf41d5456b73dc20b909ced1fbf2a1a70ec97ece
cf41d545
1 parent
6b3d8c57
chat.js 수정_2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
public/js/chat.js
public/js/chat.js
View file @
cf41d54
...
...
@@ -97,12 +97,12 @@ var connect = function() {
if
(
usersTyping
.
length
==
1
)
{
string
=
usersTyping
+
'
is writing
...'
;
string
=
usersTyping
+
'
님이 입력중입니다
...'
;
}
else
if
(
usersTyping
.
length
>
4
)
{
string
=
'
Several people are writing
...'
;
string
=
'
여러 사람들이 입력중입니다
...'
;
}
else
if
(
usersTyping
.
length
>
1
)
{
var
lastUser
=
usersTyping
.
pop
();
string
=
usersTyping
.
join
(
', '
)
+
'
and '
+
lastUser
+
' are writing
...'
;
string
=
usersTyping
.
join
(
', '
)
+
'
님과 '
+
lastUser
+
'님이 입력중입니다
...'
;
usersTyping
.
push
(
lastUser
);
}
else
{
string
=
'<br>'
;
...
...
@@ -119,11 +119,11 @@ 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'
;
}
...
...
Please
register
or
login
to post a comment