From e0e8d40627e476d10b4db4848c7ed117932f6d29 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Thu, 19 Dec 2024 14:49:14 -0800 Subject: [PATCH 01/13] Show inscription preview video controls on click (#4139) --- static/preview-video.js | 3 +++ templates/preview-video.html | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 static/preview-video.js diff --git a/static/preview-video.js b/static/preview-video.js new file mode 100644 index 0000000000..e4a41bc2bd --- /dev/null +++ b/static/preview-video.js @@ -0,0 +1,3 @@ +document.getElementsByTagName('video')[0].addEventListener('click', (event) => { + event.target.controls = true; +}); diff --git a/templates/preview-video.html b/templates/preview-video.html index 3ca99c47b6..820d8409d5 100644 --- a/templates/preview-video.html +++ b/templates/preview-video.html @@ -3,9 +3,10 @@ + -