-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed testing to about-testing, Updated about.
- Loading branch information
Valerie
committed
Nov 6, 2024
1 parent
a74d2ce
commit 71be0d1
Showing
3 changed files
with
96 additions
and
78 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
const videos = [ | ||
'https://index.havenmc.org/website/assets/mp4/fightsong.mp4', | ||
'https://index.havenmc.org/website/assets/mp4/usurper.mp4', | ||
'https://index.havenmc.org/website/assets/mp4/lmwasabi.mp4' | ||
"https://index.havenmc.org/website/assets/mp4/fightsong.mp4", | ||
"https://index.havenmc.org/website/assets/mp4/usurper.mp4", | ||
"https://index.havenmc.org/website/assets/mp4/lmwasabi.mp4", | ||
]; | ||
|
||
function setRandomVideo() { | ||
const randomVideo = videos[Math.floor(Math.random() * videos.length)]; | ||
const videoSource = document.querySelector('#bgVideo source'); | ||
videoSource.src = randomVideo; | ||
const bgVideo = document.getElementById('bgVideo'); | ||
bgVideo.load(); | ||
const randomVideo = videos[Math.floor(Math.random() * videos.length)]; | ||
const videoSource = document.querySelector("#bgVideo source"); | ||
videoSource.src = randomVideo; | ||
const bgVideo = document.getElementById("bgVideo"); | ||
bgVideo.load(); | ||
} | ||
|
||
window.onload = setRandomVideo; |