From 9e7fe6d8dad56c237adb1905e130c1d723131812 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 17 May 2026 13:01:57 +0800 Subject: big structural change, altafcreator.com no longer served statically, projects now use md, blog is being reworked, videos removed temp --- www/scripts/videoprojects.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 www/scripts/videoprojects.js (limited to 'www/scripts/videoprojects.js') 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; +} -- cgit v1.2.3