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 21:57:23 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
aa5f126044613acb73dd46b59f891a2a901e4bdf
aa5f1260
1 parent
8e0a8cda
Update index.html UI
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
flask/templates/index.html
flask/templates/index.html
View file @
aa5f126
...
...
@@ -65,12 +65,12 @@ function init()
var
messageboxHeight
=
$
(
'#messagebox'
).
height
();
video
.
width
=
video
.
videoWidth
;
video
.
height
=
video
.
videoHeight
;
if
(
video
.
width
>
screenWidth
||
video
.
height
+
headerHeight
+
messageboxHeight
>
screenHeight
){
var
ratio
=
Math
.
min
(
screenWidth
/
video
.
width
*
1.0
,
screenHeight
/
((
video
.
height
+
headerHeight
+
messageboxHeight
)
*
1.0
));
container
.
style
.
width
=
Math
.
round
(
video
.
videoW
idth
*
ratio
)
+
'px'
;
container
.
style
.
height
=
Math
.
round
(
video
.
videoH
eight
*
ratio
)
+
'px'
;
canvasOutput
.
width
=
Math
.
round
(
video
.
videoW
idth
*
ratio
);
canvasOutput
.
height
=
Math
.
round
(
video
.
videoH
eight
*
ratio
);
if
(
video
.
width
>
screenWidth
||
video
.
height
+
headerHeight
>
screenHeight
){
var
ratio
=
Math
.
min
(
screenWidth
/
video
.
width
*
1.0
,
screenHeight
/
((
video
.
height
+
headerHeight
)
*
1.0
));
container
.
style
.
width
=
Math
.
round
(
video
.
w
idth
*
ratio
)
+
'px'
;
container
.
style
.
height
=
Math
.
round
(
video
.
h
eight
*
ratio
)
+
'px'
;
canvasOutput
.
width
=
Math
.
round
(
video
.
w
idth
*
ratio
);
canvasOutput
.
height
=
Math
.
round
(
video
.
h
eight
*
ratio
);
}
load_cascade
();
});
...
...
Please
register
or
login
to post a comment