Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-2-capstone-design2
/
2014104149
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Graduate
2020-11-28 22:08:47 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
78152ebdc7de80a9df1c749d6d7b7e6f7476cb79
78152ebd
1 parent
6428825b
Update index.html UI
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
flask/templates/index.html
flask/templates/index.html
View file @
78152eb
...
...
@@ -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
);
}
}
});
...
...
Please
register
or
login
to post a comment