Skip to content

Commit

Permalink
Update SignItVideosIframe.html
Browse files Browse the repository at this point in the history
Add width parameters, could prove useful
  • Loading branch information
hugolpz authored Jul 27, 2024
1 parent 70b92af commit 075033d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions SignItVideosIframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,18 @@
document.getElementById('no-video-url').style.display = 'block';
}

var speedNormal = getUrlParameter('speedNormal') || 1;
// Pass size parameter
var width = getUrlParameter('width') || 250;
document.getElementById('signitVideoElement').width = width;

// Pass speed parameter
var speedNormal = getUrlParameter('speedNormal') || 1,
speedSlow = getUrlParameter('speedSlow') || 0.5;
var twospeed = getUrlParameter('twospeed') || true;

console.log({videoUrl}, {speedNormal}, {speedSlow}, {twospeed});
console.log({videoUrl}, {speedNormal}, {speedSlow}, {twospeed}, {width});

if ( twospeed === 'true' ) {
if ( twospeed === 'true' ) {
document.getElementById('signitVideoElement').addEventListener('ended', function(event) {
// Normal speed just played
if (!this.classList.contains('slow')) {
Expand All @@ -60,6 +65,7 @@
}
})
}


});
</script>
Expand Down

0 comments on commit 075033d

Please sign in to comment.