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:01:01 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2bc34a7cabafb91eb1f701f6098016cc764db946
2bc34a7c
1 parent
ae5296fa
Update index.html UI
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
flask/templates/index.html
flask/templates/index.html
View file @
2bc34a7
...
...
@@ -66,8 +66,8 @@ function init()
var
ratio
=
1.0
;
video
.
width
=
video
.
videoWidth
;
video
.
height
=
video
.
videoHeight
;
if
(
video
.
width
>
screenWidth
||
video
.
height
+
headerHeight
>
screenHeight
){
ratio
=
Math
.
min
(
screenWidth
/
video
.
width
*
1.0
,
screenHeight
/
((
video
.
height
+
headerHeight
)
*
1.0
));
if
(
video
.
width
>
screenWidth
||
video
.
height
+
headerHeight
+
messageboxHeight
/
2
>
screenHeight
){
ratio
=
Math
.
min
(
screenWidth
/
video
.
width
*
1.0
,
screenHeight
/
((
video
.
height
+
headerHeight
+
messageboxHeight
/
2
)
*
1.0
));
}
container
.
style
.
width
=
Math
.
round
(
video
.
width
*
ratio
)
+
'px'
;
container
.
style
.
height
=
Math
.
round
(
video
.
height
*
ratio
)
+
'px'
;
...
...
Please
register
or
login
to post a comment