Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
justin200914 committed Aug 16, 2023
1 parent 64edd48 commit fd0da34
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,29 +335,29 @@ function isMobile() {
function load() {
if(isMobile()) {

document.getElementById("inputVideo").style.width = '720px'
document.getElementById("inputVideo").style.height = '960px'
// document.getElementById("inputVideo").style.width = '720px'
// document.getElementById("inputVideo").style.height = '960px'

document.getElementById("capture").style.width = '720px'
document.getElementById("capture").style.height = '960px'
// document.getElementById("capture").style.width = '720px'
// document.getElementById("capture").style.height = '960px'

document.getElementById("face_cover").style.width = '720px'
document.getElementById("face_cover").style.height = '960px'
// document.getElementById("face_cover").style.width = '720px'
// document.getElementById("face_cover").style.height = '960px'

document.getElementById("capture1").style.width = '720px'
document.getElementById("capture1").style.height = '960px'
// document.getElementById("capture1").style.width = '720px'
// document.getElementById("capture1").style.height = '960px'

document.getElementById("best_capture").style.width = '720px'
document.getElementById("best_capture").style.height = '960px'
// document.getElementById("best_capture").style.width = '720px'
// document.getElementById("best_capture").style.height = '960px'

document.getElementById("div_video").style.width = '720px'
document.getElementById("div_video").style.height = '960px'
// document.getElementById("div_video").style.width = '720px'
// document.getElementById("div_video").style.height = '960px'

document.getElementById("face_cover").src = "face_cover_p.png";
// document.getElementById("face_cover").src = "face_cover_p.png";

CAM_WIDTH = 480;
CAM_HEIGHT = 640;
} else {
// CAM_WIDTH = 480;
// CAM_HEIGHT = 640;
// } else {
document.getElementById("inputVideo").style.width = '640px'
document.getElementById("inputVideo").style.height = '480px'

Expand All @@ -378,6 +378,6 @@ function load() {

CAM_WIDTH = 640;
CAM_HEIGHT = 480;
}
// }
}
window.onload = load;

0 comments on commit fd0da34

Please sign in to comment.