From fd0da3403008748787c64fb364362848fc4fe890 Mon Sep 17 00:00:00 2001 From: justin200914 <125717930+justin200914@users.noreply.github.com> Date: Wed, 16 Aug 2023 10:57:19 +0800 Subject: [PATCH] Update main.js --- main.js | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/main.js b/main.js index e3b3da7..436c179 100644 --- a/main.js +++ b/main.js @@ -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' @@ -378,6 +378,6 @@ function load() { CAM_WIDTH = 640; CAM_HEIGHT = 480; - } + // } } window.onload = load;