Skip to content

Commit

Permalink
fix: element width property does not, but css style need px
Browse files Browse the repository at this point in the history
  • Loading branch information
hugolpz committed Aug 21, 2024
1 parent a1ab401 commit 06a0a82
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions SignItVideosIframe.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE html>
<html lang="en" id="signitVideo-body">
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Load Video from URL Parameter</title>
</head>
<body id="signitVideo-body">
<body>
<p id="no-video-url" style="display:none;">Video URL missing, try with suffix :
<a href="./SignItVideosIframe.html?width=380&twospeed=true&video=https://upload.wikimedia.org/wikipedia/commons/6/63/Lapin_Nm_1_2_1_-_Elix.webm">
?width=380&twospeed=true&video=https://upload.wikimedia.org/wikipedia/commons/6/63/Lapin_Nm_1_2_1_-_Elix.webm
Expand Down Expand Up @@ -39,9 +39,7 @@

// Pass size parameter
var width = getUrlParameter('width') || 380;
document.querySelector('html').style.width = width;
document.querySelector('body').style.width = width;
document.querySelector('video').style.width = width;
document.querySelector('video').style.width = width+'px';

// Pass speed parameter
var speedNormal = getUrlParameter('speedNormal') || 1,
Expand Down

0 comments on commit 06a0a82

Please sign in to comment.