Removed console.logs and renamed youtube-play-button -> vimeo-play-button
This commit is contained in:
parent
7ac5a22c9b
commit
43b63c8da1
3 changed files with 2 additions and 5 deletions
3
resources/js/main.js
vendored
3
resources/js/main.js
vendored
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
position: relative;
|
||||
}
|
||||
|
||||
.youtube-play-button {
|
||||
.vimeo-play-button {
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
font-size: 3rem;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue