Spaces:
Running
Running
the video dont play when click watch trailler - Follow Up Deployment
Browse files- index.html +8 -5
- prompts.txt +2 -1
index.html
CHANGED
|
@@ -624,7 +624,10 @@
|
|
| 624 |
<i class="ph ph-x"></i>
|
| 625 |
</button>
|
| 626 |
<div class="aspect-w-16 aspect-h-9">
|
| 627 |
-
<
|
|
|
|
|
|
|
|
|
|
| 628 |
</div>
|
| 629 |
</div>
|
| 630 |
</div>
|
|
@@ -707,26 +710,26 @@
|
|
| 707 |
const videoModal = document.getElementById('videoModal');
|
| 708 |
const watchTrailerBtn = document.getElementById('watchTrailer');
|
| 709 |
const closeModalBtn = document.getElementById('closeModal');
|
| 710 |
-
const
|
| 711 |
|
| 712 |
watchTrailerBtn.addEventListener('click', () => {
|
| 713 |
videoModal.classList.remove('hidden');
|
| 714 |
document.body.style.overflow = 'hidden';
|
|
|
|
| 715 |
});
|
| 716 |
|
| 717 |
closeModalBtn.addEventListener('click', () => {
|
|
|
|
| 718 |
videoModal.classList.add('hidden');
|
| 719 |
document.body.style.overflow = '';
|
| 720 |
-
// Reset video when closing
|
| 721 |
-
videoFrame.src = videoFrame.src;
|
| 722 |
});
|
| 723 |
|
| 724 |
// Close modal when clicking outside
|
| 725 |
videoModal.addEventListener('click', (e) => {
|
| 726 |
if (e.target === videoModal) {
|
|
|
|
| 727 |
videoModal.classList.add('hidden');
|
| 728 |
document.body.style.overflow = '';
|
| 729 |
-
videoFrame.src = videoFrame.src;
|
| 730 |
}
|
| 731 |
});
|
| 732 |
</script>
|
|
|
|
| 624 |
<i class="ph ph-x"></i>
|
| 625 |
</button>
|
| 626 |
<div class="aspect-w-16 aspect-h-9">
|
| 627 |
+
<video id="videoPlayer" class="w-full h-96 md:h-[32rem] rounded-lg" controls>
|
| 628 |
+
<source src="https://drive.google.com/uc?export=download&id=1nVi1lALKDSSFVNFlYUrw56b4iK2EwSd7" type="video/mp4">
|
| 629 |
+
Your browser does not support the video tag.
|
| 630 |
+
</video>
|
| 631 |
</div>
|
| 632 |
</div>
|
| 633 |
</div>
|
|
|
|
| 710 |
const videoModal = document.getElementById('videoModal');
|
| 711 |
const watchTrailerBtn = document.getElementById('watchTrailer');
|
| 712 |
const closeModalBtn = document.getElementById('closeModal');
|
| 713 |
+
const videoPlayer = document.getElementById('videoPlayer');
|
| 714 |
|
| 715 |
watchTrailerBtn.addEventListener('click', () => {
|
| 716 |
videoModal.classList.remove('hidden');
|
| 717 |
document.body.style.overflow = 'hidden';
|
| 718 |
+
videoPlayer.play();
|
| 719 |
});
|
| 720 |
|
| 721 |
closeModalBtn.addEventListener('click', () => {
|
| 722 |
+
videoPlayer.pause();
|
| 723 |
videoModal.classList.add('hidden');
|
| 724 |
document.body.style.overflow = '';
|
|
|
|
|
|
|
| 725 |
});
|
| 726 |
|
| 727 |
// Close modal when clicking outside
|
| 728 |
videoModal.addEventListener('click', (e) => {
|
| 729 |
if (e.target === videoModal) {
|
| 730 |
+
videoPlayer.pause();
|
| 731 |
videoModal.classList.add('hidden');
|
| 732 |
document.body.style.overflow = '';
|
|
|
|
| 733 |
}
|
| 734 |
});
|
| 735 |
</script>
|
prompts.txt
CHANGED
|
@@ -52,4 +52,5 @@ now apply the 3D effect of perspective on mouse over on all Featured Speakers ca
|
|
| 52 |
please adapt this infos and photos from another code on this code in the box of May: <div class="timeline-item pl-12 sm:pl-0" style="opacity: 1; transform: translateY(0px); transition: 0.6s;"> <div class="bg-white p-6 rounded-xl shadow-lg"> <div class="text-sm font-semibold text-accent mb-2">MAY</div> <h3 class="text-xl font-bold mb-3">Initial Activation</h3> <p>Our TON FEST quest with the SBC brand crushed it—putting SBC in front of 29k+ verified users worldwide (exposed to 29k verified users), adding 700+ fresh members to the SBC Summit Telegram channel, and pumping SBC Gaming's X (Twitter) followership by 10%.</p> <div class="mt-4 flex flex-wrap gap-2 mb-4"> <span class="bg-primary/10 text-primary text-xs font-medium px-3 py-1 rounded-full">Telegram 700+</span> <span class="bg-secondary/10 text-secondary text-xs font-medium px-3 py-1 rounded-full">Twitter +10%</span> <span class="bg-accent/10 text-accent text-xs font-medium px-3 py-1 rounded-full">Exposed to 29k Verified Users</span> </div> <div class="bg-white p-4 rounded-xl shadow-sm"> <div class="grid grid-cols-2 gap-4"> <div class="bg-gray-50 p-2 rounded-lg"> <img src="https://drive.google.com/thumbnail?id=1PMmkbc5gGBGd_hSlV-EuGfJn6oAzdgl9&sz=w1000" alt="TON FEST Activation" class="rounded-lg w-full h-auto"> </div> <div class="bg-gray-50 p-2 rounded-lg"> <img src="https://drive.google.com/thumbnail?id=1UtRHiou6MiI7Ty5GFPKrS1S0KG5wCap2&sz=w1000" alt="TON FEST Activation" class="rounded-lg w-full h-auto"> </div> <div class="bg-gray-50 p-2 rounded-lg"> <img src="https://drive.google.com/thumbnail?id=1Dofmf0Xgh3NAXfKa44mMaN-dEc1qZnSa&sz=w1000" alt="TON FEST Activation" class="rounded-lg w-full h-auto"> </div> <div class="bg-gray-50 p-2 rounded-lg"> <img src="https://drive.google.com/thumbnail?id=1bd2Gbb09zGjEMb5jmGRiTdfjwpSJKgNX&sz=w1000" alt="TON FEST Activation" class="rounded-lg w-full h-auto"> </div> </div> </div> </div> </div>
|
| 53 |
lets do the same with this one creating another box of may bellow the first one: <div class="bg-white p-6 rounded-xl shadow-lg"> <div class="text-sm font-semibold text-accent mb-2">MAY</div> <h3 class="text-xl font-bold mb-3">Web3/Ai Portugal Activation</h3> <p>The kickoff TON activation got an extra boost—our event post was shared across Portugal's top-tier Web3 Telegram groups, reaching 8 000+ highly engaged members.</p> <div class="mt-4 flex flex-wrap gap-2"> <span class="bg-primary/10 text-primary text-xs font-medium px-3 py-1 rounded-full">Exposed to 8K Web3/AI Portuguese</span> </div> <div class="bg-white p-4 rounded-xl shadow-sm mt-4 w-1/2"> <div class="bg-gray-50 p-2 rounded-lg"> <img src="https://drive.google.com/thumbnail?id=1qoNoY_hNEqRgqwrYJgBeHpD4ha4UpZrL&sz=w1000" alt="Planning Strategy" class="rounded-lg w-full h-auto"> </div> </div> </div>
|
| 54 |
when watch trailler is clcked, opens a video from the google drive link: https://drive.google.com/file/d/1nVi1lALKDSSFVNFlYUrw56b4iK2EwSd7/view?usp=sharing
|
| 55 |
-
can you make the video play in a dialog box inside the website instead of opening google drive?
|
|
|
|
|
|
| 52 |
please adapt this infos and photos from another code on this code in the box of May: <div class="timeline-item pl-12 sm:pl-0" style="opacity: 1; transform: translateY(0px); transition: 0.6s;"> <div class="bg-white p-6 rounded-xl shadow-lg"> <div class="text-sm font-semibold text-accent mb-2">MAY</div> <h3 class="text-xl font-bold mb-3">Initial Activation</h3> <p>Our TON FEST quest with the SBC brand crushed it—putting SBC in front of 29k+ verified users worldwide (exposed to 29k verified users), adding 700+ fresh members to the SBC Summit Telegram channel, and pumping SBC Gaming's X (Twitter) followership by 10%.</p> <div class="mt-4 flex flex-wrap gap-2 mb-4"> <span class="bg-primary/10 text-primary text-xs font-medium px-3 py-1 rounded-full">Telegram 700+</span> <span class="bg-secondary/10 text-secondary text-xs font-medium px-3 py-1 rounded-full">Twitter +10%</span> <span class="bg-accent/10 text-accent text-xs font-medium px-3 py-1 rounded-full">Exposed to 29k Verified Users</span> </div> <div class="bg-white p-4 rounded-xl shadow-sm"> <div class="grid grid-cols-2 gap-4"> <div class="bg-gray-50 p-2 rounded-lg"> <img src="https://drive.google.com/thumbnail?id=1PMmkbc5gGBGd_hSlV-EuGfJn6oAzdgl9&sz=w1000" alt="TON FEST Activation" class="rounded-lg w-full h-auto"> </div> <div class="bg-gray-50 p-2 rounded-lg"> <img src="https://drive.google.com/thumbnail?id=1UtRHiou6MiI7Ty5GFPKrS1S0KG5wCap2&sz=w1000" alt="TON FEST Activation" class="rounded-lg w-full h-auto"> </div> <div class="bg-gray-50 p-2 rounded-lg"> <img src="https://drive.google.com/thumbnail?id=1Dofmf0Xgh3NAXfKa44mMaN-dEc1qZnSa&sz=w1000" alt="TON FEST Activation" class="rounded-lg w-full h-auto"> </div> <div class="bg-gray-50 p-2 rounded-lg"> <img src="https://drive.google.com/thumbnail?id=1bd2Gbb09zGjEMb5jmGRiTdfjwpSJKgNX&sz=w1000" alt="TON FEST Activation" class="rounded-lg w-full h-auto"> </div> </div> </div> </div> </div>
|
| 53 |
lets do the same with this one creating another box of may bellow the first one: <div class="bg-white p-6 rounded-xl shadow-lg"> <div class="text-sm font-semibold text-accent mb-2">MAY</div> <h3 class="text-xl font-bold mb-3">Web3/Ai Portugal Activation</h3> <p>The kickoff TON activation got an extra boost—our event post was shared across Portugal's top-tier Web3 Telegram groups, reaching 8 000+ highly engaged members.</p> <div class="mt-4 flex flex-wrap gap-2"> <span class="bg-primary/10 text-primary text-xs font-medium px-3 py-1 rounded-full">Exposed to 8K Web3/AI Portuguese</span> </div> <div class="bg-white p-4 rounded-xl shadow-sm mt-4 w-1/2"> <div class="bg-gray-50 p-2 rounded-lg"> <img src="https://drive.google.com/thumbnail?id=1qoNoY_hNEqRgqwrYJgBeHpD4ha4UpZrL&sz=w1000" alt="Planning Strategy" class="rounded-lg w-full h-auto"> </div> </div> </div>
|
| 54 |
when watch trailler is clcked, opens a video from the google drive link: https://drive.google.com/file/d/1nVi1lALKDSSFVNFlYUrw56b4iK2EwSd7/view?usp=sharing
|
| 55 |
+
can you make the video play in a dialog box inside the website instead of opening google drive?
|
| 56 |
+
the video dont play when click watch trailler
|