summaryrefslogtreecommitdiff
path: root/www/scripts/videoprojects.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/scripts/videoprojects.js')
-rw-r--r--www/scripts/videoprojects.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/www/scripts/videoprojects.js b/www/scripts/videoprojects.js
index 1879474..019403f 100644
--- a/www/scripts/videoprojects.js
+++ b/www/scripts/videoprojects.js
@@ -1,6 +1,7 @@
const playerContainer = document.getElementById("full-video-player");
const playerVideo = document.getElementById("full-video-player-video");
const playerCaption = document.getElementById("full-video-player-caption");
+const playerButton = document.getElementById("full-video-player-button")
function closeFullPlayer() {
playerContainer.style.display = "none";
@@ -8,8 +9,9 @@ function closeFullPlayer() {
playerVideo.currentTime = 0;
}
-function loadVideo(url, caption) {
+function loadVideo(url, caption, videoPath) {
playerContainer.style.display = "flex";
playerVideo.src = url;
playerCaption.innerHTML = caption;
+ playerButton.href = `/video/${videoPath}/`
}