Opera8 commited on
Commit
6b79bdd
·
verified ·
1 Parent(s): 268ddce

Update templates/ltxvideo.html

Browse files
Files changed (1) hide show
  1. templates/ltxvideo.html +5 -0
templates/ltxvideo.html CHANGED
@@ -1511,6 +1511,11 @@
1511
  card.addEventListener('click', () => {
1512
  const isExpanded = card.classList.contains('expanded');
1513
 
 
 
 
 
 
1514
  // بستن تمام کارت‌های باز دیگر
1515
  document.querySelectorAll('.video-result-card').forEach(c => {
1516
  c.classList.remove('expanded');
 
1511
  card.addEventListener('click', () => {
1512
  const isExpanded = card.classList.contains('expanded');
1513
 
1514
+ // متوقف کردن پخش تمامی ویدیوها در زمان بستن یا تغییر کادرها
1515
+ document.querySelectorAll('.video-result-card video').forEach(vid => {
1516
+ vid.pause();
1517
+ });
1518
+
1519
  // بستن تمام کارت‌های باز دیگر
1520
  document.querySelectorAll('.video-result-card').forEach(c => {
1521
  c.classList.remove('expanded');