Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -174,19 +174,19 @@ function main() | ... | @@ -174,19 +174,19 @@ function main() |
174 | var newHead = "<div class='message attend'>"; | 174 | var newHead = "<div class='message attend'>"; |
175 | var newTail = "</div>"; | 175 | var newTail = "</div>"; |
176 | var newContent = '[' + data.student_id + '/' + data.student_name + ']' + "출석되었습니다."; | 176 | var newContent = '[' + data.student_id + '/' + data.student_name + ']' + "출석되었습니다."; |
177 | - $('#messagebox').prepend(newDiv + newContent + newTail).stop().animate({ scrollTop: $('#messages')[0].scrollHeight }, 300); | 177 | + $('#messagebox').prepend(newHead + newContent + newTail).stop().animate({ scrollTop: $('#messages')[0].scrollHeight }, 300); |
178 | } | 178 | } |
179 | else if (data.status == "already"){ | 179 | else if (data.status == "already"){ |
180 | var newHead = "<div class='message already'>"; | 180 | var newHead = "<div class='message already'>"; |
181 | var newTail = "</div>"; | 181 | var newTail = "</div>"; |
182 | var newContent = '[' + data.student_id + '/' + data.student_name + ']' + "이미 출석되었습니다."; | 182 | var newContent = '[' + data.student_id + '/' + data.student_name + ']' + "이미 출석되었습니다."; |
183 | - $('#messagebox').prepend(newDiv + newContent + newTail).stop().animate({ scrollTop: $('#messages')[0].scrollHeight }, 300); | 183 | + $('#messagebox').prepend(newHead + newContent + newTail).stop().animate({ scrollTop: $('#messages')[0].scrollHeight }, 300); |
184 | } | 184 | } |
185 | else if (data.status == "fail"){ | 185 | else if (data.status == "fail"){ |
186 | var newHead = "<div class='message fail'>"; | 186 | var newHead = "<div class='message fail'>"; |
187 | var newTail = "</div>"; | 187 | var newTail = "</div>"; |
188 | var newContent = "인식 실패"; | 188 | var newContent = "인식 실패"; |
189 | - $('#messagebox').prepend(newDiv + newContent + newTail).stop().animate({ scrollTop: $('#messages')[0].scrollHeight }, 300); | 189 | + $('#messagebox').prepend(newHead + newContent + newTail).stop().animate({ scrollTop: $('#messages')[0].scrollHeight }, 300); |
190 | } | 190 | } |
191 | } | 191 | } |
192 | }); | 192 | }); | ... | ... |
-
Please register or login to post a comment