김대욱

chat.js 수정_4

......@@ -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);
......