Compare commits

..

2 commits

Author SHA1 Message Date
9c9b2b000e
fix dead links in introduction 2025-06-18 23:48:05 -07:00
f068111110
fix the video showcase
Please be fixed this time
2025-06-18 23:47:53 -07:00

View file

@ -76,6 +76,7 @@ const videos = [
}
function setActiveVideo(index: number) {
console.log("setActive", index);
currentVideo?.pause();
currentVideoIndex = index;
@ -112,6 +113,7 @@ const videos = [
observer.observe(video);
video.addEventListener("ended", () => {
console.log("video ended", "duration", video.duration, "ctime", video.currentTime);
// The "ended" event might just mean its buffering.
if (video == currentVideo && video.duration !== 0 && video.currentTime === video.duration) {
offsetCarousel(1);