From 2c6fa567de93506ec1c25b510f509295ffc1a86b Mon Sep 17 00:00:00 2001 From: Lopez Hugo Date: Sat, 27 Jul 2024 23:54:39 +0200 Subject: [PATCH] Update SignItVideosIframe.html Prettify --- SignItVideosIframe.html | 121 ++++++++++++++++++++-------------------- 1 file changed, 60 insertions(+), 61 deletions(-) diff --git a/SignItVideosIframe.html b/SignItVideosIframe.html index fc57289..6fcc324 100644 --- a/SignItVideosIframe.html +++ b/SignItVideosIframe.html @@ -1,73 +1,72 @@ - + + Load Video from URL Parameter - - - - - - + if (twospeed === 'true') { + document.getElementById('signitVideoElement').addEventListener('ended', function(event) { + // Normal speed just played + if (!this.classList.contains('slow')) { + this.classList.add('slow'); + this.playbackRate = speedSlow; + this.play(); + } + // Slow speed just played + else { + this.classList.remove('slow'); + this.playbackRate = speedNormal; + this.pause(); + } + }) + } + }); + +