Skip to content

Commit

Permalink
rm youtube video
Browse files Browse the repository at this point in the history
  • Loading branch information
tadjik1 committed Jun 21, 2024
1 parent 9e8d3e4 commit 8800390
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 40 deletions.
40 changes: 20 additions & 20 deletions dist/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ const samples = 70;
const startColor = [41, 55, 240];
const endColor = [159, 26, 226];

let player;
function onYouTubeIframeAPIReady() {
player = new YT.Player("ytvideo", {
height: "390",
width: "640",
videoId: "3fZAoBecLpU",
playerVars: {},
});
}
// let player;
// function onYouTubeIframeAPIReady() {
// player = new YT.Player("ytvideo", {
// height: "390",
// width: "640",
// videoId: "3fZAoBecLpU",
// playerVars: {},
// });
// }

window.addEventListener("DOMContentLoaded", (event) => {
// Activate YouTube embeded iframe
Expand Down Expand Up @@ -134,17 +134,17 @@ window.addEventListener("DOMContentLoaded", (event) => {
saveTattooButton.style.display = "none";
});

document
.getElementById("collapseTwo")
.addEventListener("hide.bs.collapse", () => {
player.stopVideo();
});

document
.getElementById("faqModal")
.addEventListener("hide.bs.modal", () => {
player.stopVideo();
});
// document
// .getElementById("collapseTwo")
// .addEventListener("hide.bs.collapse", () => {
// player.stopVideo();
// });

// document
// .getElementById("faqModal")
// .addEventListener("hide.bs.modal", () => {
// player.stopVideo();
// });

createTattooButton.addEventListener("click", () => {
soundFileInput.click();
Expand Down
40 changes: 20 additions & 20 deletions src/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ const samples = 70;
const startColor = [41, 55, 240];
const endColor = [159, 26, 226];

let player;
function onYouTubeIframeAPIReady() {
player = new YT.Player("ytvideo", {
height: "390",
width: "640",
videoId: "3fZAoBecLpU",
playerVars: {},
});
}
// let player;
// function onYouTubeIframeAPIReady() {
// player = new YT.Player("ytvideo", {
// height: "390",
// width: "640",
// videoId: "3fZAoBecLpU",
// playerVars: {},
// });
// }

window.addEventListener("DOMContentLoaded", (event) => {
// Activate YouTube embeded iframe
Expand Down Expand Up @@ -129,17 +129,17 @@ window.addEventListener("DOMContentLoaded", (event) => {
saveTattooButton.style.display = "none";
});

document
.getElementById("collapseTwo")
.addEventListener("hide.bs.collapse", () => {
player.stopVideo();
});

document
.getElementById("faqModal")
.addEventListener("hide.bs.modal", () => {
player.stopVideo();
});
// document
// .getElementById("collapseTwo")
// .addEventListener("hide.bs.collapse", () => {
// player.stopVideo();
// });

// document
// .getElementById("faqModal")
// .addEventListener("hide.bs.modal", () => {
// player.stopVideo();
// });

createTattooButton.addEventListener("click", () => {
soundFileInput.click();
Expand Down

0 comments on commit 8800390

Please sign in to comment.