move search script

This commit is contained in:
2025-04-12 22:44:53 +04:00
parent 5341f976da
commit 530bb49e37
2 changed files with 27 additions and 28 deletions
+12
View File
@@ -0,0 +1,12 @@
document.addEventListener('DOMContentLoaded', function() {
// Gestion des clics sur les vidéos
const videoCards = document.querySelectorAll('.video-card');
videoCards.forEach(card => {
card.addEventListener('click', function() {
const videoId = this.dataset.videoId;
if (videoId) {
window.location.href = 'video.php?id=' + videoId;
}
});
});
});