summaryrefslogtreecommitdiff
path: root/www/scripts/videoprojects.js
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2026-05-21 20:45:15 +0800
committeraltaf-creator <dev@altafcreator.com>2026-05-21 20:45:15 +0800
commit8fea6e4be4a61cd2bfcb310166fbe6b2541b9ff4 (patch)
tree3e144c0033200ef792b6e4284ac2789d77b18ccb /www/scripts/videoprojects.js
parent39c92cd0c75193465ddc7b96e9d8bbe23dff795c (diff)
video and blog
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}/`
}