Removed console.logs and renamed youtube-play-button -> vimeo-play-button

This commit is contained in:
Noah Lancien 2023-06-21 13:21:36 +02:00
parent 7ac5a22c9b
commit 43b63c8da1
3 changed files with 2 additions and 5 deletions

View file

@ -43,9 +43,7 @@ pages.keys().map(key => {
document.addEventListener('DOMContentLoaded', function () {
// * Video frames.
console.log('là');
const videoFrameList = document.querySelectorAll(".video-frame");
console.log(videoFrameList);
for (const videoLink of videoFrameList) {
if (!videoLink.dataset.type) {
throw new Error("Missing dataset type");
@ -79,7 +77,6 @@ document.addEventListener('DOMContentLoaded', function () {
newIframe.src = window.__CN_VIDEO[videoLink.dataset.type]
? String(videoLink.href)
: String(videoLink.dataset.frame);
console.log(newIframe);
}, 50);
return false;
});

View file

@ -6,7 +6,7 @@
position: relative;
}
.youtube-play-button {
.vimeo-play-button {
top: 50%;
left: 50%;
font-size: 3rem;

View file

@ -4,5 +4,5 @@
alt="Alt"
title="Title"
>
<i class="youtube-play-button absolute top-50 left-50 fa fa-regular fa-play-circle"></i>
<i class="vimeo-play-button absolute top-50 left-50 fa fa-regular fa-play-circle"></i>
</a>