From 8fea6e4be4a61cd2bfcb310166fbe6b2541b9ff4 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Thu, 21 May 2026 20:45:15 +0800 Subject: video and blog --- www/scripts/videoprojects.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'www/scripts/videoprojects.js') 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}/` } -- cgit v1.2.3