adding labels

master
zach-m 2023-04-10 18:26:47 -06:00
parent c2b8ab67f2
commit 6a4ad5ec36
2 changed files with 26 additions and 0 deletions

View File

@ -42,4 +42,5 @@ function showSecrets() {
var element = document.getElementById("konami")
console.log(element)
element.style = "display:block"
element.lastElementChild.src = "https://www.youtube.com/embed/V4oJ62xrFZo?autoplay=1"
}

View File

@ -0,0 +1,25 @@
function onYouTubeIframeAPIReady() {
var player;
player = new YT.Player('konami', {
videoId: '_cB8CE_Q3Yk', // 👈 video id.
width: 560,
height: 316,
playerVars: {
'autoplay': 1,
'controls': 1,
'showinfo': 0,
'modestbranding': 0,
'loop': 1,
'fs': 0,
'cc_load_policty': 0,
'iv_load_policy': 3
},
events: {
'onReady': function (e) {
e.target.setVolume(33); // For max value, set value to 100.
}
}
});
}