Graduate

Update index.html UI

......@@ -190,19 +190,19 @@ function main()
var newHead = "<div class='message attend'>";
var newTail = "</div>";
var newContent = '[' + data.student_id + '/' + data.student_name + ']' + "출석되었습니다.";
$('#messagebox').prepend(newHead + newContent + newTail).stop().animate({ scrollTop: $('#messages')[0].scrollHeight }, 1000);
$('#messagebox').prepend(newHead + newContent + newTail).stop().animate({ scrollTop: 0 }, 1000);
}
else if (data.status == "already"){
var newHead = "<div class='message already'>";
var newTail = "</div>";
var newContent = '[' + data.student_id + '/' + data.student_name + ']' + "이미 출석되었습니다.";
$('#messagebox').prepend(newHead + newContent + newTail).stop().animate({ scrollTop: $('#messages')[0].scrollHeight }, 1000);
$('#messagebox').prepend(newHead + newContent + newTail).stop().animate({ scrollTop: 0 }, 1000);
}
else if (data.status == "fail"){
var newHead = "<div class='message fail'>";
var newTail = "</div>";
var newContent = "인식 실패";
$('#messagebox').prepend(newHead + newContent + newTail).stop().animate({ scrollTop: $('#messages')[0].scrollHeight }, 1000);
$('#messagebox').prepend(newHead + newContent + newTail).stop().animate({ scrollTop: 0 }, 1000);
}
}
});
......