diff options
author | elioat <elioat@tilde.institute> | 2025-03-29 23:41:28 -0400 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2025-03-29 23:41:28 -0400 |
commit | c731ff7653ee7bbd0d0443139af997435eaf63e1 (patch) | |
tree | f2c0c48dd9c712e87cfecbedf8ecc7871eb43c63 | |
parent | 494d130ed23a93f83774560abf4a1ad28420644c (diff) | |
download | tour-c731ff7653ee7bbd0d0443139af997435eaf63e1.tar.gz |
*
-rw-r--r-- | js/leibovitz/index.html | 2 | ||||
-rw-r--r-- | js/leibovitz/leibovitz.js | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/js/leibovitz/index.html b/js/leibovitz/index.html index 35cbb13..b341ac8 100644 --- a/js/leibovitz/index.html +++ b/js/leibovitz/index.html @@ -39,7 +39,7 @@ height: 100%; object-fit: contain; display: none; - background-color: #000; + background-color: transparent; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); margin: 10px; diff --git a/js/leibovitz/leibovitz.js b/js/leibovitz/leibovitz.js index 797050f..4174d2b 100644 --- a/js/leibovitz/leibovitz.js +++ b/js/leibovitz/leibovitz.js @@ -114,10 +114,6 @@ function drawVideoProportional() { const offsetX = (canvas.width - drawWidth) / 2; const offsetY = (canvas.height - drawHeight) / 2; - - // Clear the entire canvas with black background - ctx.fillStyle = '#000'; - ctx.fillRect(0, 0, canvas.width, canvas.height); // Draw the video content centered ctx.drawImage(video, offsetX, offsetY, drawWidth, drawHeight); |