eslammsd commited on
Commit
a9659e4
·
verified ·
1 Parent(s): 655d95b

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +31 -32
index.html CHANGED
@@ -47,30 +47,30 @@
47
  .player-container { background: #000; border: 1px solid #232730; border-radius: 14px; overflow: hidden; position: relative; }
48
  video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; }
49
 
50
- /* طبقة الإعلان التي تظهر مكان المشغل تماماً */
51
  .instream-ad-overlay {
52
- position: absolute; top: 0; left: 0; right: 0; bottom: 0;
53
- background: rgba(10, 12, 16, 0.98); display: none; flex-direction: column;
54
- justify-content: center; align-items: center; z-index: 999; text-align: center; padding: 20px;
55
  }
56
- .ad-badge { position: absolute; top: 12px; right: 12px; background: #f1b931; color: #000; font-size: 10px; font-weight: bold; padding: 3px 8px; border-radius: 4px; }
57
 
58
  .ad-card-box {
59
- background: #181c24; border: 1px solid #2f3542; border-radius: 12px; padding: 22px 18px; width: 90%; max-width: 340px;
60
- box-shadow: 0 8px 24px rgba(0,0,0,0.6); display: flex; flex-direction: column; gap: 12px; align-items: center;
61
  }
62
- .ad-card-box h3 { margin: 0; font-size: 15px; color: #f1b931; }
63
- .ad-card-box p { margin: 0; font-size: 11px; color: #a4b0be; line-height: 1.4; }
64
  .ad-click-btn {
65
- background: #2ed573; color: #fff; border: none; padding: 11px 20px; border-radius: 22px;
66
- font-size: 13px; font-weight: bold; cursor: pointer; width: 100%; text-decoration: none; display: block;
67
  }
68
 
69
  .skip-ad-btn {
70
- position: absolute; bottom: 18px; left: 18px;
71
  background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3);
72
- padding: 7px 15px; border-radius: 20px; font-size: 11px; font-weight: bold;
73
- cursor: not-allowed; transition: all 0.2s; z-index: 1000;
74
  }
75
  .skip-ad-btn.ready { background: #f1b931; color: #000; border-color: #f1b931; cursor: pointer; }
76
 
@@ -121,6 +121,19 @@
121
  </head>
122
  <body>
123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  <div id="iptv-app">
125
 
126
  <div class="header">
@@ -141,20 +154,6 @@
141
  <div class="layout">
142
  <div class="player-section">
143
  <div class="player-container" id="player-box">
144
-
145
- <!-- طبقة الإعلان التي تغطي مكان المشغل كل دقيقة -->
146
- <div class="instream-ad-overlay" id="instream-ad">
147
- <span class="ad-badge">إعلان تفاعلي Ad</span>
148
-
149
- <div class="ad-card-box">
150
- <h3 id="ad-title-text">⚡ إعلان مميز للبث...</h3>
151
- <p id="ad-desc-text">اضغط على الزر بالأسفل لضمان استمرار البث المباشر بدون توقف</p>
152
- <a href="https://asiafilm.org/4/d0e355a77df4d0f9a5ae1e03257d6ab9" id="ad-action-link" target="_blank" class="ad-click-btn" onclick="registerAdClick()">▶ زيارة الموقع الداعم للبث</a>
153
- </div>
154
-
155
- <button class="skip-ad-btn" id="skip-btn" onclick="skipInStreamAd()">تخطي بعد 5 ثوانٍ</button>
156
- </div>
157
-
158
  <video id="main-video" controls playsinline></video>
159
 
160
  <div class="now" id="current-channel-info">
@@ -240,13 +239,13 @@ function updateTickerAndAds(channel) {
240
  tickerLink.href = ADSTERRA_DIRECT_LINK;
241
  }
242
 
243
- // مؤقت يظهر الإعلان مكان المشغل تماماً كل دقيقة (60000 مللي ثانية) إذا كانت هناك قناة شغالة
244
  function startPeriodicAdTimer() {
245
  if (periodicAdInterval) clearInterval(periodicAdInterval);
246
  periodicAdInterval = setInterval(function() {
247
  if (currentChannel) {
248
  const video = document.getElementById('main-video');
249
- video.pause(); // إيقاف الفيديو مؤقتاً والاحتفاظ بالقناة
250
  showInStreamAd();
251
  }
252
  }, 60000); // كل دقيقة بالضبط
@@ -291,7 +290,7 @@ function skipInStreamAd() {
291
  document.getElementById('instream-ad').style.display = 'none';
292
  const video = document.getElementById('main-video');
293
  if (currentChannel) {
294
- video.play().catch(()=>{}); // استئناف تشغيل نفس القناة المحفوظة
295
  }
296
  }
297
  }
@@ -433,7 +432,7 @@ function renderChannels(channels) {
433
  currentChannel = ch;
434
  updateTickerAndAds(ch);
435
  playChan(ch);
436
- startPeriodicAdTimer(); // بدء العد التنازلي للدقيقة عند اختيار القناة
437
  };
438
 
439
  item.appendChild(fav);
 
47
  .player-container { background: #000; border: 1px solid #232730; border-radius: 14px; overflow: hidden; position: relative; }
48
  video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; }
49
 
50
+ /* طبقة الإعلان تغطي الشاشة بالكامل (Full-Page Overlay) لضمان عدم ظهورها بشكل عائم */
51
  .instream-ad-overlay {
52
+ position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
53
+ background: rgba(5, 7, 10, 0.98); display: none; flex-direction: column;
54
+ justify-content: center; align-items: center; z-index: 999999; text-align: center; padding: 20px;
55
  }
56
+ .ad-badge { position: absolute; top: 20px; right: 20px; background: #f1b931; color: #000; font-size: 12px; font-weight: bold; padding: 6px 14px; border-radius: 6px; }
57
 
58
  .ad-card-box {
59
+ background: #181c24; border: 1px solid #2f3542; border-radius: 16px; padding: 28px 22px; width: 90%; max-width: 400px;
60
+ box-shadow: 0 12px 35px rgba(0,0,0,0.8); display: flex; flex-direction: column; gap: 16px; align-items: center;
61
  }
62
+ .ad-card-box h3 { margin: 0; font-size: 18px; color: #f1b931; }
63
+ .ad-card-box p { margin: 0; font-size: 13px; color: #a4b0be; line-height: 1.5; }
64
  .ad-click-btn {
65
+ background: #2ed573; color: #fff; border: none; padding: 13px 24px; border-radius: 24px;
66
+ font-size: 14px; font-weight: bold; cursor: pointer; width: 100%; text-decoration: none; display: block;
67
  }
68
 
69
  .skip-ad-btn {
70
+ position: absolute; bottom: 30px; left: 30px;
71
  background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3);
72
+ padding: 10px 22px; border-radius: 24px; font-size: 13px; font-weight: bold;
73
+ cursor: not-allowed; transition: all 0.2s; z-index: 1000000;
74
  }
75
  .skip-ad-btn.ready { background: #f1b931; color: #000; border-color: #f1b931; cursor: pointer; }
76
 
 
121
  </head>
122
  <body>
123
 
124
+ <!-- طبقة إعلان تغطي الشاشة بالكامل وتظهر تلقائياً كل دقيقة -->
125
+ <div class="instream-ad-overlay" id="instream-ad">
126
+ <span class="ad-badge">إعلان تفاعلي Ad</span>
127
+
128
+ <div class="ad-card-box">
129
+ <h3 id="ad-title-text">⚡ إعلان مميز للبث...</h3>
130
+ <p id="ad-desc-text">اضغط على الزر بالأسفل لضمان استمرار البث المباشر بدون توقف</p>
131
+ <a href="https://asiafilm.org/4/d0e355a77df4d0f9a5ae1e03257d6ab9" id="ad-action-link" target="_blank" class="ad-click-btn" onclick="registerAdClick()">▶ زيارة الموقع الداعم للبث</a>
132
+ </div>
133
+
134
+ <button class="skip-ad-btn" id="skip-btn" onclick="skipInStreamAd()">تخطي بعد 5 ثوانٍ</button>
135
+ </div>
136
+
137
  <div id="iptv-app">
138
 
139
  <div class="header">
 
154
  <div class="layout">
155
  <div class="player-section">
156
  <div class="player-container" id="player-box">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
  <video id="main-video" controls playsinline></video>
158
 
159
  <div class="now" id="current-channel-info">
 
239
  tickerLink.href = ADSTERRA_DIRECT_LINK;
240
  }
241
 
242
+ // مؤقت يظهر الإعلان ليغطي الشاشة بالكامل كل دقيقة (60000 مللي ثانية)
243
  function startPeriodicAdTimer() {
244
  if (periodicAdInterval) clearInterval(periodicAdInterval);
245
  periodicAdInterval = setInterval(function() {
246
  if (currentChannel) {
247
  const video = document.getElementById('main-video');
248
+ video.pause(); // إيقاف الفيديو مؤقتاً مع الاحتفاظ بالقناة
249
  showInStreamAd();
250
  }
251
  }, 60000); // كل دقيقة بالضبط
 
290
  document.getElementById('instream-ad').style.display = 'none';
291
  const video = document.getElementById('main-video');
292
  if (currentChannel) {
293
+ video.play().catch(()=>{}); // استئناف تشغيل نفس القناة المحفوظة فور التخطي
294
  }
295
  }
296
  }
 
432
  currentChannel = ch;
433
  updateTickerAndAds(ch);
434
  playChan(ch);
435
+ startPeriodicAdTimer(); // تفعيل مؤقت الدقيقة للإعلان
436
  };
437
 
438
  item.appendChild(fav);