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-25 22:35:03 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
85688d32a92a099c5f183057c99e6ee90d512e92
85688d32
1 parent
03dc7c04
Update flask
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
27 deletions
flask/templates/register.html
flask/templates/register.html
View file @
85688d3
<!doctype html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
...
...
@@ -106,37 +107,26 @@ var loadFile = function(event) {
and is wrapped around the whole page content, except for the footer in this example -->
<div
class=
"w3-content"
style=
"max-width:1400px"
>
<!-- Header -->
<header
class=
"w3-container w3-center w3-padding-32"
>
<h1><b>
얼굴 등록
</b></h1>
<p>
Made by
<span
class=
"w3-tag"
>
정해갑
</span></p>
</header>
<header
class=
"w3-container w3-center w3-padding-32"
>
<h1><b>
얼굴 등록
</b></h1>
<p>
Made by
<span
class=
"w3-tag"
>
정해갑
</span></p>
</header>
<div
class=
"w3-row"
,
style=
'text-align:center'
>
<h2><b>
얼굴 파일을 등록해주세요 (jpeg only)
</b></h2>
<div>
학번:
<input
type=
"text"
name=
"student_id"
><br>
이름:
<input
type=
"text"
name=
"student_name"
><br><br>
<input
type=
"file"
id=
"fileloader"
name=
"file"
onchange=
"loadFile(event)"
autocomplete=
"off"
accept=
"image/jpeg"
required
disabled
>
<div>
<img
id=
"imagefile"
style=
"display:none;"
>
<canvas
id=
"preview"
></canvas>
<div
class=
"w3-row"
,
style=
'text-align:center'
>
<h2><b>
얼굴 파일을 등록해주세요 (jpeg only)
</b></h2>
<div>
학번:
<input
type=
"text"
name=
"student_id"
><br>
이름:
<input
type=
"text"
name=
"student_name"
><br><br>
<input
type=
"file"
id=
"fileloader"
name=
"file"
onchange=
"loadFile(event)"
autocomplete=
"off"
accept=
"image/jpeg"
required
disabled
>
<div>
<img
id=
"imagefile"
style=
"display:none;"
>
<canvas
id=
"preview"
></canvas>
</div>
<input
id=
"sender"
type=
"button"
onclick=
"submit"
value=
"등록"
disabled
>
</div>
</div>
<input
id=
"sender"
type=
"button"
onclick=
"submit"
value=
"등록"
disabled
>
</div>
</div>
<script>
var
loadFile
=
function
(
event
)
{
var
reader
=
new
FileReader
();
reader
.
readAsDataURL
(
event
.
target
.
files
[
0
]);
output
.
onload
=
function
()
{
var
output
=
document
.
getElementById
(
'imagefile'
);
output
.
src
=
URL
.
createObjectURL
(
event
.
target
.
files
[
0
]);
detect_face
()
}
};
</script>
</body>
</html>
...
...
Please
register
or
login
to post a comment