summaryrefslogtreecommitdiff
path: root/www/scripts/videoprojects.js
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2026-05-17 13:01:57 +0800
committeraltaf-creator <dev@altafcreator.com>2026-05-17 13:01:57 +0800
commit9e7fe6d8dad56c237adb1905e130c1d723131812 (patch)
treedd067e14b3ec5af719d748427bb322320c248879 /www/scripts/videoprojects.js
parentd04598ba59d7267ee4db3745ff90eaa1a990072a (diff)
big structural change, altafcreator.com no longer served statically, projects now use md, blog is being reworked, videos removed temp
Diffstat (limited to 'www/scripts/videoprojects.js')
-rw-r--r--www/scripts/videoprojects.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/www/scripts/videoprojects.js b/www/scripts/videoprojects.js
new file mode 100644
index 0000000..1879474
--- /dev/null
+++ b/www/scripts/videoprojects.js
@@ -0,0 +1,15 @@
+const playerContainer = document.getElementById("full-video-player");
+const playerVideo = document.getElementById("full-video-player-video");
+const playerCaption = document.getElementById("full-video-player-caption");
+
+function closeFullPlayer() {
+ playerContainer.style.display = "none";
+ playerVideo.pause();
+ playerVideo.currentTime = 0;
+}
+
+function loadVideo(url, caption) {
+ playerContainer.style.display = "flex";
+ playerVideo.src = url;
+ playerCaption.innerHTML = caption;
+}