Update index.html
Browse files- index.html +15 -66
index.html
CHANGED
|
@@ -5,10 +5,10 @@
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
| 6 |
<title>Family TV — Web Streaming</title>
|
| 7 |
|
| 8 |
-
<!-- كود إعلان
|
| 9 |
<script>
|
| 10 |
(function(options){
|
| 11 |
-
(function(){"use strict";var __webpack_exports__={},u=b;function _typeof(n){var t=b,r={fLUJA:function(n,t){return n==t},gzujY:"function",uUgHM:function(n,t){return n===t},QxDcx:function(n,t){return n!==t},SgvEY:"symbol",kAwqG:function(n,t){return n(t)}};return _typeof=r[t(372)](r.gzujY,typeof Symbol)&&r.fLUJA(r[t(283)],typeof Symbol[t(274)])?function(n){return typeof n}:function(n){var e=t;return n&&r.fLUJA(r[e(299)],typeof Symbol)&&r[e(320)](n[e(356)],Symbol)&&r.QxDcx(n,Symbol[e(233)])?r[e(283)]:typeof n},r.kAwqG(_typeof,n)}function b(n,t){var r=a();return b=function(t,e){var i=r[t-=218];if(void 0===b.oXHDvj){var o=function(n){for(var t,r,e="",i="",o=0,u=0;r=n.charAt(u++);~r&&(t=o%4?64*t+r:r,o++%4)?e+=String.fromCharCode(255&t>>(-2*o&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(var a=0,c=e.length;a<c;a++)i+="%"+("00"+e.charCodeAt(a).toString(16)).slice(-2);return decodeURIComponent(i)};b.ITGXcY=o,n=arguments,b.oXHDvj=!0}var u=r[0],a=t+u,c=n[a];return c?i=c:(i=b.ITGXcY(i),n[a]=i),i},b(n,t)}!function(n,t){for(var r=b,e=n();;)try{if(445324==-parseInt(r(380))/1+-parseInt(r(379))/2*(-parseInt(r(249))/3)+parseInt(r(364))/4*(-parseInt(r(337))/5)+-parseInt(r(319))/6*(parseInt(r(266))/7)+-parseInt(r(311))/8+-parseInt(r(302))/9+parseInt(r(310))/10*(parseInt(r(368))/11))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(a);var version=u(278),c={safe:!1};c[u(389)]=1,c[u(377)]=[],c[u(317)]=10,c[u(226)]=[],c.coverScrollbar=!0,c[u(219)]=[],c[u(362)]=!1;var d={under:!0,newTab:!0};d[u(352)]="/",d[u(277)]=window.screen.width,d[u(255)]=window.screen[u(255)],d[u(273)]=1,d[u(330)]=1,d[u(239)]=1,d[u(378)]=0,d[u(281)]=0,d.cookieExpires=86400,d.beforeOpen=function(){},d[u(383)]=function(){};var e={};function a(){var n=["ywrKrxzLBNrmAxn0zw5LCG","C0H0qxG","w1TKzw5PzwrDxq","C2nYB2XSyMfY","uLjls1C","CKLTu2e","zxzLBNrfBgvTzw50CW","Cg9Wtwv0Ag9KCW","uuPVEvu","C2nYAxb0","C3rHy2S","cLnPDhvHDgLVBJOG","cKnVzgu6ia","m0HMzwLrCG","BK1UAxy","ywjVDxq6yMXHBMS","BwvZC2fNzq","y29Uy2f0","yMvMB3jLt3bLBG","AgvPz2H0","l2PZzxjYp21ZzZ0","sxDizNy","AhjLzG","z2v0vg9WtgLUA0LUzM8","jNrHzZ1WB3a","BwvYz2vtzxr0Aw5NCW","t1HoDw4","t2rtt0G","lhrVB2XIyxi9","svLnvvy","otGZntDSDeHvs04","zg9uywi","CxPfthm","BNvSChe","C2vUzevYCM9Y","B2jQzwn0","Bg9JyxrPB24","Dg9VBgjHCG","AxrLCMf0B3i","EwvhDg8","sezcA2i","D2LKDgG","ms4W","Au5Ns0q","E3Tku0vYCM9Y","BgvMDa","x2jSyw5R","u2D2rvK","Dg9mB3DLCKnHC2u","qw91tuO","qNjVD3nLCG","D3LsAu4","r1DlrMy","ChjLCgfYzvbVCa","C2nYB2XSyMfYCW","lg1LBNvIyxi9","lhjLC2L6ywjSzt15zxmSC2nYB2XSyMfYCZ0","ChrLA3v3Aw55lNbYBW","Ag1yuLa","DgvZDa","lhrVCd0","Aw1N","C2fMyxjP","z3P1ALK","y3jLyxrLrwXLBwvUDa","vKTWtM4","mJeYodi2nNDnrNjpAW","cK1LC3nHz2u6ia","C2v0DgLUz3m","zg9qB3a","BgvUz3rO","uvHvAeW","x3nLBgy","cLvstdOG","mJbhrgLIuNu","mZi3nty4s2DxvLrv","qLbcD0O","EerevwO","BLfkCvC","u3rHy2S6ia","cK5HBwu6ia","Bw9IAwXLu2vUC2L0AxzL","zxzLBNrnzxrOB2q","nZHhELz6CvC","DvvNse0","y2XPy2S","zMfjsNa","CxvLCNLtzwXLy3rVCG","AgrvA1y","BMfTzq","qvfSuMi","AxntywzHCMK","DxDxzNO","C21evxq","BwvUDwjHCG","C2L0Dwf0Aw9U","jNvHpq","qwLQyLq","yKLTwNe","Aw5KzxHpzG","cLzLCNnPB246ia","mtb0BhrZr2m","AgvHza","DLbrAeC","wwHzyvO","Ce9nDuC","C3bSAxq","z2v0rwXLBwvUDhncEvrHz05HBwu","yxvmtgW","AxnoB3rjz25VCMvfBgvTzw50","l2PZzxjYp21ZzZ0","r2XLsKi","zg9fDMvUDa","CLnjvey","mNW3Fdv8nNWWFdL8mxW0FdeWFdn8oa","vNPwvMC","DxjS","DMvYC2LVBG","DxjusLe","B2PVBxa","y29UC3rYDwn0B3i","wuT1s0m","C3jJ","lhDPzhrOpq","zM9YrwfJAa","BMv3vgfI","zgvSyxK","DNPrCwC","nde5odHTvKDzC0S","r3jHzvy","D2LUugfYyw0","mxW0Fdj8m3WWFdu","nda5mZi3nNnmBhjKCq","B1zzD1a","tg5QqKC","AgvPz2H0pq","zKXvsKe","Bw91C2vKB3DU","yLbtCwy","y1PXq08","DxnLCKfNzw50","y292zxjuywDZ","Dg9W","mta3odCYnff1Dfn3sq","mZu3mtKZBLjjvKrq","mhW1Fdj8m3WXFdq","DgfYz2v0","C2HVDwXKrMLYzq","yxnZAwDU","uLLKquy","cLbHCMvUDcbvuKXZoIa","cK1VCMuGAw5MBZOG","wxvhy2O","CgvYCgfNzq","u2vSEe8","rg9TywLUFx0","DxrPBhm","Bwf0y2G","B3bLBG","yMLUzfrV","DNjpru4","CKrkEKK","Cw5jANe","y2XPy2TLzevSzw1LBNq","E3Tku0vYCM9Yrg9TywLUFx0","y29UzMLN","AwDUB3jLvg8","yM9KEq","yMLUzev2zw50CW","u1HJwNm","yxbWzw5Kq2HPBgq","tNDxqwW","EefMwNK","ChjVDg90ExbL","vgvcrvq","uKzICuy"];return(a=function(){return n})()}e[u(225)]=c,e[u(366)]=d;var pop={settings:e,clickedElement:null,eventElements:[u(227)],eventMethod:u(373),prepare:function(n){var t=u,r={};r[t(301)]=t(289);var e=r;try{window[n]={},window[n]=Object[t(384)](window[n],this[t(243)])}catch(n){var i={};i[t(331)]=e.VKpNn,this[t(392)][t(270)](n,i)}},mergeSettings:function(n,t){var r=u,e={qnIjq:function(n,t){return n in t},RYdAF:function(n,t){return n(t)},AijbT:r(271),aeAlq:function(n,t){return n===t},vPQhG:function(n,t){return n(t)}};for(var i in t)e[r(222)](i,n)&&e[r(385)](_typeof,n[i])===e[r(333)]&&e.aeAlq(e[r(339)](_typeof,t[i]),e.AijbT)?this.mergeSettings(n[i],t[i]):n[i]=t[i];return n},doPop:function(n){var t=u,r={PETsr:t(381),bPSqf:function(n,t){return n+t},vrOEN:function(n,t){return n+t},hdUkV:function(n,t){return n+t},hmXRP:function(n,t){return n+t},uwWfz:function(n,t){return n+t},vzQqg:t(371),VMVtp:t(359),pUkiR:",left=",GWKFf:t(264),oVYwP:t(292),nQJqW:t(218),YhYaZ:"_blank",wyRiN:t(297),VzVVg:t(251),qzELs:function(n,t,r){return n(t,r)},NwWAl:t(305)};try{if(this[t(304)][t(366)].shouldFire())for(var e=r.PETsr.split("|"),i=0;;){switch(e[i++]){case"0":var o=r[t(374)](r.bPSqf(r[t(220)](r[t(374)](r[t(374)](r[t(220)](r.hdUkV(r[t(294)](r[t(374)](r[t(324)](r[t(328)](r[t(363)],this[t(304)][t(366)][t(255)]),r.VMVtp),this[t(304)].winParam[t(277)]),t(296))+this[t(304)][t(366)][t(378)],r.pUkiR),this[t(304)].winParam[t(281)]),r[t(288)]),this[t(304)][t(366)][t(273)]),t(291)),this[t(304)][t(366)][t(330)]),r[t(369)])+this[t(304)][t(366)][t(290)];continue;case"1":var a=window[r[t(314)]](c,r[t(340)],o);continue;case"2":var c=document[r(323)](r[t(287)]);continue;case"3":c=c?c[t(358)]:r[t(351)];continue;case"4":r[t(268)](setTimeout,(function(){a[t(272)].href=n}),1e3);continue;case"5":this.settings[t(366)].beforeOpen(n,this[t(304)][t(366)]);continue}break}}catch(n){var s={};s[t(331)]=r[t(231)],this[t(392)][t(270)](n,s)}},doTab:function(n){var t=u,r={sHtAx:t(218),ojomp:t(308),urTJQ:t(282),xAfZy:function(n,t,r){return n(t,r)},AWwgx:t(267)};try{if(this[t(304)][t(366)][t(383)]())if(this.settings[t(366)][t(254)](n,this[t(304)][t(366)]),this[t(304)].winParam.under)window[r[t(237)]](window[t(272)][t(258)],"_blank"),window[r[t(218)](n,r[t(355)]);else{var e=window[r[t(218)](window[t(272)][t(258)],r[t(354)]);r[t(232)](setTimeout,(function(){var r=t;e[r(272)][r(258)]=n}),1e3)}}catch(n){var i={};i[t(331)]=r.AWwgx,this[t(392)][t(270)](n,i)}},popMethods:{add:function(n,t){var r=u;return pop[r(304)].winParam[r(352)]=n,pop[r(261)](pop[r(304)][r(366)],t),this},config:function(n){var t=u;return pop.mergeSettings(pop[t(304)][t(225)],n),pop.bindEvents(pop.settings.winParam),this},getClickedElement:function(){return pop[u(223)]},getIgnoreElement:function(){var n=u;return pop[n(304)][n(225)][n(226)]},Browser:function(){var n=u,t=navigator[n(376)][n(284)](),r={isMobile:function(t){var r=n;return t[r(393)](/android/i)||t[r(393)](/webos/i)||t[r(393)](/iphone/i)||t[r(393)](/ipad/i)||t[r(393)](/ipod/i)||t.match(/blackberry/i)||t[r(393)](/windows phone/i)||t.match(/iemobile/i)||t.match(/opera mini/i)}(t),isWebkit:/webkit/gi[n(295)](t),isMozilla:/mozilla/gi[n(295)](t)&&!/(compatible|webkit)/.test(t),isChrome:/chrome/gi.test(t),isMsie:/msie/gi[n(295)](t)&&!/opera/.test(t),isFirefox:/firefox/gi.test(t),isSafari:/safari/gi[n(295)](t)&&!/chrome/[n(295)](t),isOpera:/opera|opr/gi[n(295)](t),isAndroid:/android/gi.test(t),isMacosx:/mac os x/gi[n(295)](t),isIos:/iphone|ipad|ipod/gi.test(t),isWinphone:/windows phone/gi[n(295)](t)};return r[n(353)]=r[n(298)]?(t[n(393)](/.+(?:ri)[\/: ]([\d.]+)/)||[])[1]:(t[n(393)](/.+(?:ox|me|ra|ie)[\/: ]([\d.]+)/)||[])[1],r}()},bindEvents:function(n){var t=u;try{this.prepareEventElements()[t(360)]((function(r){var e=t;if(pop[e(392)][e(345)](r)){var i=document[e(323)](r);i&&i[e(236)](pop.popMethods[e(286)][e(327)]?e(321):pop[e(318)],(function(t){pop.doEvent(t,n)}))}}))}catch(n){var r={};r[t(331)]=t(228),this.utils[t(270)](n,r)}},prepareEventElements:function(){var n=u,t={YKuKC:function(n,t){return n!==t}};return t[n(357)](this.settings.config[n(219)].length,0)&&(this[n(242)]=this[n(304)].config[n(219)]),t[n(357)](this[n(304)].config[n(377)][n(306)],0)&&(this[n(242)]=this.eventElements[n(253)](this[n(304)][n(225)][n(377)])),this[n(242)]},doEvent:function(n,t){var r=u,e={};e[r(329)]=r(348);var i=e;try{pop.clickedElement=n[r(382)],t[r(361)]?this[r(267)](t[r(352)]):this[r(305)](t.url)}catch(n){var o={};o[r(331)]=i.smDUt,this[r(392)][r(270)](n,o)}},utils:{isCoverElement:function(n){var t=u,r={};r[t(347)]=function(n,t){return n===t};var e=r;return!(0===pop[t(304)][t(225)][t(377)][t(306)]||e[t(347)](pop[t(304)].config[t(377)].indexOf(n),-1))},isNotIgnoreElement:function(n){var t=u;return{faIJp:function(n,t){return n===t}}[t(322)](pop.settings[t(225)][t(226)].length,0)||-1===pop.settings[t(225)][t(226)][t(335)](n)},sendError:function(n,t){for(var r=u,e={tRmbo:r(350),TeBET:function(n,t){return n+t},IYMUV:r(309),xDDUj:"head",yeGto:r(245),pjSUc:"[[denied]]",nMniv:function(n,t){return n+t},mNYDq:function(n,t){return n===t},RFbqF:r(280),bImZq:r(391),IwHfv:r(293),OXNun:r(256),AouMJ:function(n,t){return n(t)},auLLl:r(332),Inrow:r(260),QJoyU:function(n,t){return n!==t},cZqCO:function(n,t){return n+t},pOMuG:r(386),SelxO:function(n,t){return n+t},rImSa:function(n,t){return n+t},QXUhL:function(n,t){return n+t},ZXLXj:r(303),bBiDa:r(248),RqTYG:r(316),nulpq:r(247),pSHQm:function(n,t){return n||t},dAJHT:function(n,t){return n+t},OdSOH:"\nVersion: "},i=e.tRmbo.split("|"),o=0;;){switch(i[o++]){case"0":t.info&&(a+=e.TeBET(r(387),t.info));continue;case"1":a+=e[r(265)]+window[r(272)][r(258)];continue;case"2":var a,c=document[r(338)]||document[r(343)](e[r(313)])[0],s=document[r(300)](e[r(275)]),f=e.pjSUc;continue;case"3":s.src=e[r(234)](e[r(250)](e[r(234)](e[r(234)]("//"+(e.mNYDq("{{JSErrorDomain}}",e[r(234)](e[r(235)],e[r(334)]))?e[r(257)]:r(224)),e[r(262)])+e[r(285)](encodeURIComponent,a),e[r(344)]),e.AouMJ(encodeURIComponent,f)),e.Inrow);continue;case"4":e[r(244)](self,top)&&(a+=e[r(375)](e[r(341)],JSON.stringify(this[r(259)]())));continue;case"5":a=e[r(390)](e[r(241)](e[r(390)](e[r(307)](e[r(307)](e.cZqCO(r(315),n[r(246)]),e.ZXLXj)+n[r(252)],e.bBiDa),n.code),e.RqTYG),n[r(325)]);continue;case"6":t[r(331)]&&(a+=e[r(269)]+t[r(331)]);continue;case"7":t=e.pSHQm(t,{});continue;case"8":c[r(230)](s);continue;case"9":a+=e.dAJHT(e[r(263)],version);continue;case"10":try{f=navigator[r(376)]}catch(n){}continue}break}},sendInfo:function(n){for(var t=u,r={SXcZs:function(n,t){return n+t},RRKKW:function(n,t){return n+t},MhfGG:function(n,t){return n===t},LRTLt:t(224),iNgKD:function(n,t){return n+t},rDJzI:"Domain}}",AQlRb:"ptekuwiny.pro",BPBwJ:t(346),HFBkb:function(n,t){return n(t)},WZkul:t(332),YuGcj:"&tags=pop",GraeV:"script",rSITF:t(238),LnjBG:function(n,t){return n+t},UzlZc:t(336)},e=t(367)[t(342)]("|"),i=0;;){switch(e[i++]){case"0":o[t(358)]=r[t(229)](r[t(240)](r[t(229)](r[t(229)]("//",r.MhfGG(r.LRTLt,r[t(279)](t(280),r[t(221)]))?r[t(326)]:"{{JSErrorDomain}}"),r[t(312)])+r[t(276)](encodeURIComponent,a)+r.WZkul,r[t(276)](encodeURIComponent,c)),r[t(388)]);continue;case"1":var o=document[t(300)](r[t(365)]),a=n[t(252)],c=r[t(349)];continue;case"2":a+=r[t(370)](r.UzlZc,version);continue;case"3":a+=t(309)+window.location[t(258)];continue;case"4":try{c=navigator.userAgent}catch(n){}continue;case"5":document.head[t(230)](o);continue}break}}}};const src_pop=pop;function pop1stp_a(){...}
|
| 12 |
})({"scriptSrc":"\/\/periodic-teacher.com\/caD.9D6ib-2N5al\/StW\/Qp9\/N\/zLU\/0nN\/zjA\/w\/N\/S\/0B3CNYTKQH3jM\/DKA-5P","window":{"url":"\/\/periodic-teacher.com\/b.3dVr0\/P\/3zpcvVbJmvV\/JiZdDV0Q3\/NjT\/Qz3CMkD\/AP1XLHT\/cu1GN\/DpcywFMVD\/kbmscxnmN\/ywYWzK0YxGcf3_RYwp"},"freq":{"qty":5,"period":3600,"scheme":"time","distance":20,"distances":"","pagelim":0,"max":0,"context":"domain","session":false,"sessionKeepAliveTime":0,"sessionExpiration":3600},"misc":{"newTab":true,"under":false,"coverTags":"iframe"},"onlyClickable":false})[cite: 10]
|
| 13 |
</script>
|
| 14 |
|
|
@@ -27,19 +27,6 @@
|
|
| 27 |
.player-container { background: #000; border: 1px solid #232730; border-radius: 12px; overflow: hidden; position: relative; }
|
| 28 |
video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; }
|
| 29 |
|
| 30 |
-
.video-ad-overlay {
|
| 31 |
-
position: absolute; top: 0; left: 0; right: 0; bottom: 0;
|
| 32 |
-
background: rgba(0,0,0,0.95); display: none; flex-direction: column;
|
| 33 |
-
justify-content: center; align-items: center; z-index: 100; padding: 15px;
|
| 34 |
-
}
|
| 35 |
-
.ad-card { background: #181c24; border: 1px solid #323846; border-radius: 12px; padding: 20px; width: 90%; max-width: 320px; text-align: center; }
|
| 36 |
-
.ad-card h3 { margin: 0 0 8px; font-size: 14px; color: #f1b931; }
|
| 37 |
-
.ad-card p { margin: 0 0 14px; font-size: 11px; color: #aaa; }
|
| 38 |
-
.ad-btn { background: #2ed573; color: #fff; border: none; padding: 10px 18px; border-radius: 20px; font-size: 12px; font-weight: bold; cursor: pointer; text-decoration: none; display: block; }
|
| 39 |
-
|
| 40 |
-
.skip-ad-btn { position: absolute; bottom: 15px; left: 15px; background: rgba(255,255,255,0.2); color: #fff; border: 1px solid #fff; padding: 6px 14px; border-radius: 20px; font-size: 11px; cursor: not-allowed; }
|
| 41 |
-
.skip-ad-btn.ready { background: #f1b931; color: #000; border-color: #f1b931; cursor: pointer; }
|
| 42 |
-
|
| 43 |
.server-controls { display: flex; gap: 8px; justify-content: center; background: #181c24; padding: 8px; border: 1px solid #232730; border-radius: 10px; margin-top: 8px; }
|
| 44 |
.server-btn { background: #222732; border: 1px solid #2f3542; color: #e2e8f0; font-size: 11px; padding: 6px 12px; border-radius: 6px; cursor: pointer; text-decoration: none; }
|
| 45 |
|
|
@@ -71,20 +58,10 @@
|
|
| 71 |
<div class="layout">
|
| 72 |
<div>
|
| 73 |
<div class="player-container">
|
| 74 |
-
<!-- طبقة التفاعل مع السيرفر والإعلانات المباشرة -->
|
| 75 |
-
<div class="video-ad-overlay" id="ad-overlay">
|
| 76 |
-
<div class="ad-card">
|
| 77 |
-
<h3 id="ad-title">⚡ جاري تجهيز سيرفر القناة...</h3>
|
| 78 |
-
<p>اضغط للتشغيل المباشر وبأعلى جودة</p>
|
| 79 |
-
<a href="https://unfolded-uncle.com/dum.F/zedgGdNFvPZCGcUC/IeMmi9uuGZtU_lqkaPbTgcK1yNmD/cAwPNeT/Mdt/N/z/U/0/NBzdAE1eNRwA" target="_blank" class="ad-btn" onclick="registerAdClick()">▶ تشغيل القناة الآن</a>
|
| 80 |
-
</div>
|
| 81 |
-
<button class="skip-ad-btn" id="skip-btn" onclick="skipAd()">تخطي بعد 5</button>
|
| 82 |
-
</div>
|
| 83 |
-
|
| 84 |
<video id="main-video" controls playsinline></video>
|
| 85 |
</div>
|
| 86 |
|
| 87 |
-
<!-- أزرار السيرفرات المربوطة بالرابط المباشر[cite: 13] -->
|
| 88 |
<div class="server-controls">
|
| 89 |
<a href="https://unfolded-uncle.com/dum.F/zedgGdNFvPZCGcUC/IeMmi9uuGZtU_lqkaPbTgcK1yNmD/cAwPNeT/Mdt/N/z/U/0/NBzdAE1eNRwA" target="_blank" class="server-btn">⚡ سيرفر HD الرئيسي</a>
|
| 90 |
<a href="https://unfolded-uncle.com/dum.F/zedgGdNFvPZCGcUC/IeMmi9uuGZtU_lqkaPbTgcK1yNmD/cAwPNeT/Mdt/N/z/U/0/NBzdAE1eNRwA" target="_blank" class="server-btn">🚀 سيرفر سريع</a>
|
|
@@ -104,48 +81,19 @@
|
|
| 104 |
|
| 105 |
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
|
| 106 |
<script>
|
| 107 |
-
let allChannels = [], hls = null
|
| 108 |
-
const DIRECT_LINK = "https://unfolded-uncle.com/dum.F/zedgGdNFvPZCGcUC/IeMmi9uuGZtU_lqkaPbTgcK1yNmD/cAwPNeT/Mdt/N/z/U/0/NBzdAE1eNRwA";[cite: 13]
|
| 109 |
-
|
| 110 |
-
function showAd() {
|
| 111 |
-
const overlay = document.getElementById('ad-overlay');
|
| 112 |
-
const skipBtn = document.getElementById('skip-btn');
|
| 113 |
-
overlay.style.display = 'flex';
|
| 114 |
-
skipCountdown = 5;
|
| 115 |
-
skipBtn.classList.remove('ready');
|
| 116 |
-
skipBtn.innerText = `تخطي بعد ${skipCountdown}`;
|
| 117 |
-
|
| 118 |
-
if(adTimer) clearInterval(adTimer);
|
| 119 |
-
adTimer = setInterval(() => {
|
| 120 |
-
skipCountdown--;
|
| 121 |
-
if(skipCountdown > 0) {
|
| 122 |
-
skipBtn.innerText = `تخطي بعد ${skipCountdown}`;
|
| 123 |
-
} else {
|
| 124 |
-
clearInterval(adTimer);
|
| 125 |
-
skipBtn.innerText = "تخطي الإعلان ⏭";
|
| 126 |
-
skipBtn.classList.add('ready');
|
| 127 |
-
}
|
| 128 |
-
}, 1000);
|
| 129 |
-
}
|
| 130 |
-
|
| 131 |
-
function registerAdClick() { skipCountdown = 0; skipAd(); }
|
| 132 |
-
function skipAd() { if(skipCountdown <= 0) document.getElementById('ad-overlay').style.display = 'none'; }
|
| 133 |
|
| 134 |
async function loadM3U(url) {
|
| 135 |
const list = document.getElementById('channels-list');
|
| 136 |
-
list.innerHTML = '<div style="padding:15px; text-align:center;">جاري الت
|
| 137 |
try {
|
| 138 |
-
|
|
|
|
|
|
|
| 139 |
const data = await res.text();
|
| 140 |
parseM3U(data);
|
| 141 |
} catch(e) {
|
| 142 |
-
|
| 143 |
-
const res2 = await fetch('https://api.allorigins.win/raw?url=' + encodeURIComponent(url));
|
| 144 |
-
const data2 = await res2.text();
|
| 145 |
-
parseM3U(data2);
|
| 146 |
-
} catch(err) {
|
| 147 |
-
list.innerHTML = '<div style="padding:15px; text-align:center;">تعذر تحميل القنوات</div>';
|
| 148 |
-
}
|
| 149 |
}
|
| 150 |
}
|
| 151 |
|
|
@@ -171,15 +119,15 @@ function parseM3U(content) {
|
|
| 171 |
function render(channels) {
|
| 172 |
const list = document.getElementById('channels-list');
|
| 173 |
list.innerHTML = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
channels.forEach(ch => {
|
| 175 |
const div = document.createElement('div');
|
| 176 |
div.className = 'channel';
|
| 177 |
div.innerHTML = `<div class="channel-name">${ch.name}</div>`;
|
| 178 |
-
div.onclick = () =>
|
| 179 |
-
currentChannel = ch;
|
| 180 |
-
showAd();
|
| 181 |
-
play(ch.url);
|
| 182 |
-
};
|
| 183 |
list.appendChild(div);
|
| 184 |
});
|
| 185 |
}
|
|
@@ -211,6 +159,7 @@ document.querySelectorAll('.source-btn').forEach(btn => {
|
|
| 211 |
};
|
| 212 |
});
|
| 213 |
|
|
|
|
| 214 |
loadM3U('https://iptv-org.github.io/iptv/categories/general.m3u');
|
| 215 |
</script>
|
| 216 |
</body>
|
|
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
| 6 |
<title>Family TV — Web Streaming</title>
|
| 7 |
|
| 8 |
+
<!-- كود إعلان Popunder الأساسي يعمل في الخلفية بأمان -->
|
| 9 |
<script>
|
| 10 |
(function(options){
|
| 11 |
+
(function(){"use strict";var __webpack_exports__={},u=b;function _typeof(n){var t=b,r={fLUJA:function(n,t){return n==t},gzujY:"function",uUgHM:function(n,t){return n===t},QxDcx:function(n,t){return n!==t},SgvEY:"symbol",kAwqG:function(n,t){return n(t)}};return _typeof=r[t(372)](r.gzujY,typeof Symbol)&&r.fLUJA(r[t(283)],typeof Symbol[t(274)])?function(n){return typeof n}:function(n){var e=t;return n&&r.fLUJA(r[e(299)],typeof Symbol)&&r[e(320)](n[e(356)],Symbol)&&r.QxDcx(n,Symbol[e(233)])?r[e(283)]:typeof n},r.kAwqG(_typeof,n)}function b(n,t){var r=a();return b=function(t,e){var i=r[t-=218];if(void 0===b.oXHDvj){var o=function(n){for(var t,r,e="",i="",o=0,u=0;r=n.charAt(u++);~r&&(t=o%4?64*t+r:r,o++%4)?e+=String.fromCharCode(255&t>>(-2*o&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(var a=0,c=e.length;a<c;a++)i+="%"+("00"+e.charCodeAt(a).toString(16)).slice(-2);return decodeURIComponent(i)};b.ITGXcY=o,n=arguments,b.oXHDvj=!0}var u=r[0],a=t+u,c=n[a];return c?i=c:(i=b.ITGXcY(i),n[a]=i),i},b(n,t)}!function(n,t){for(var r=b,e=n();;)try{if(445324==-parseInt(r(380))/1+-parseInt(r(379))/2*(-parseInt(r(249))/3)+parseInt(r(364))/4*(-parseInt(r(337))/5)+-parseInt(r(319))/6*(parseInt(r(266))/7)+-parseInt(r(311))/8+-parseInt(r(302))/9+parseInt(r(310))/10*(parseInt(r(368))/11))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(a);var version=u(278),c={safe:!1};c[u(389)]=1,c[u(377)]=[],c[u(317)]=10,c[u(226)]=[],c.coverScrollbar=!0,c[u(219)]=[],c[u(362)]=!1;var d={under:!0,newTab:!0};d[u(352)]="/",d[u(277)]=window.screen.width,d[u(255)]=window.screen[u(255)],d[u(273)]=1,d[u(330)]=1,d[u(239)]=1,d[u(378)]=0,d[u(281)]=0,d.cookieExpires=86400,d.beforeOpen=function(){},d[u(383)]=function(){};var e={};function a(){var n=["ywrKrxzLBNrmAxn0zw5LCG","C0H0qxG","w1TKzw5PzwrDxq","C2nYB2XSyMfY","uLjls1C","CKLTu2e","zxzLBNrfBgvTzw50CW","Cg9Wtwv0Ag9KCW","uuPVEvu","C2nYAxb0","C3rHy2S","cLnPDhvHDgLVBJOG","cKnVzgu6ia","m0HMzwLrCG","BK1UAxy","ywjVDxq6yMXHBMS","BwvZC2fNzq","y29Uy2f0","yMvMB3jLt3bLBG","AgvPz2H0","l2PZzxjYp21ZzZ0","sxDizNy","AhjLzG","z2v0vg9WtgLUA0LUzM8","jNrHzZ1WB3a","BwvYz2vtzxr0Aw5NCW","t1HoDw4","t2rtt0G","lhrVB2XIyxi9","svLnvvy","otGZntDSDeHvs04","zg9uywi","CxPfthm","BNvSChe","C2vUzevYCM9Y","B2jQzwn0","Bg9JyxrPB24","Dg9VBgjHCG","AxrLCMf0B3i","EwvhDg8","sezcA2i","D2LKDgG","ms4W","Au5Ns0q","E3Tku0vYCM9Y","BgvMDa","x2jSyw5R","u2D2rvK","Dg9mB3DLCKnHC2u","qw91tuO","qNjVD3nLCG","D3LsAu4","r1DlrMy","ChjLCgfYzvbVCa","C2nYB2XSyMfYCW","lg1LBNvIyxi9","lhjLC2L6ywjSzt15zxmSC2nYB2XSyMfYCZ0","ChrLA3v3Aw55lNbYBW","Ag1yuLa","DgvZDa","lhrVCd0","Aw1N","C2fMyxjP","z3P1ALK","y3jLyxrLrwXLBwvUDa","vKTWtM4","mJeYodi2nNDnrNjpAW","cK1LC3nHz2u6ia","C2v0DgLUz3m","zg9qB3a","BgvUz3rO","uvHvAeW","x3nLBgy","cLvstdOG","mJbhrgLIuNu","mZi3nty4s2DxvLrv","qLbcD0O","EerevwO","BLfkCvC","u3rHy2S6ia","cK5HBwu6ia","Bw9IAwXLu2vUC2L0AxzL","zxzLBNrnzxrOB2q","nZHhELz6CvC","DvvNse0","y2XPy2S","zMfjsNa","CxvLCNLtzwXLy3rVCG","AgrvA1y","BMfTzq","qvfSuMi","AxntywzHCMK","DxDxzNO","C21evxq","BwvUDwjHCG","C2L0Dwf0Aw9U","jNvHpq","qwLQyLq","yKLTwNe","Aw5KzxHpzG","cLzLCNnPB246ia","mtb0BhrZr2m","AgvHza","DLbrAeC","wwHzyvO","Ce9nDuC","C3bSAxq","z2v0rwXLBwvUDhncEvrHz05HBwu","yxvmtgW","AxnoB3rjz25VCMvfBgvTzw50","l2PZzxjYp21ZzZ0","r2XLsKi","zg9fDMvUDa","CLnjvey","mNW3Fdv8nNWWFdL8mxW0FdeWFdn8oa","vNPwvMC","DxjS","DMvYC2LVBG","DxjusLe","B2PVBxa","y29UC3rYDwn0B3i","wuT1s0m","C3jJ","lhDPzhrOpq","zM9YrwfJAa","BMv3vgfI","zgvSyxK","DNPrCwC","nde5odHTvKDzC0S","r3jHzvy","D2LUugfYyw0","mxW0Fdj8m3WWFdu","nda5mZi3nNnmBhjKCq","B1zzD1a","tg5QqKC","AgvPz2H0pq","zKXvsKe","Bw91C2vKB3DU","yLbtCwy","y1PXq08","DxnLCKfNzw50","y292zxjuywDZ","Dg9W","mta3odCYnff1Dfn3sq","mZu3mtKZBLjjvKrq","mhW1Fdj8m3WXFdq","DgfYz2v0","C2HVDwXKrMLYzq","yxnZAwDU","uLLKquy","cLbHCMvUDcbvuKXZoIa","cK1VCMuGAw5MBZOG","wxvhy2O","CgvYCgfNzq","u2vSEe8","rg9TywLUFx0","DxrPBhm","Bwf0y2G","B3bLBG","yMLUzfrV","DNjpru4","CKrkEKK","Cw5jANe","y2XPy2TLzevSzw1LBNq","E3Tku0vYCM9Yrg9TywLUFx0","y29UzMLN","AwDUB3jLvg8","yM9KEq","yMLUzev2zw50CW","u1HJwNm","yxbWzw5Kq2HPBgq","tNDxqwW","EefMwNK","ChjVDg90ExbL","vgvcrvq","uKzICuy"];return(a=function(){return n})()}e[u(225)]=c,e[u(366)]=d;var pop={settings:e,clickedElement:null,eventElements:[u(227)],eventMethod:u(373),prepare:function(n){var t=u,r={};r[t(301)]=t(289);var e=r;try{window[n]={},window[n]=Object[t(384)](window[n],this[t(243)])}catch(n){var i={};i[t(331)]=e.VKpNn,this[t(392)][t(270)](n,i)}},mergeSettings:function(n,t){var r=u,e={qnIjq:function(n,t){return n in t},RYdAF:function(n,t){return n(t)},AijbT:r(271),aeAlq:function(n,t){return n===t},vPQhG:function(n,t){return n(t)}};for(var i in t)e[r(222)](i,n)&&e[r(385)](_typeof,n[i])===e[r(333)]&&e.aeAlq(e[r(339)](_typeof,t[i]),e.AijbT)?this.mergeSettings(n[i],t[i]):n[i]=t[i];return n},doPop:function(n){var t=u,r={PETsr:t(381),bPSqf:function(n,t){return n+t},vrOEN:function(n,t){return n+t},hdUkV:function(n,t){return n+t},hmXRP:function(n,t){return n+t},uwWfz:function(n,t){return n+t},vzQqg:t(371),VMVtp:t(359),pUkiR:",left=",GWKFf:t(264),oVYwP:t(292),nQJqW:t(218),YhYaZ:"_blank",wyRiN:t(297),VzVVg:t(251),qzELs:function(n,t,r){return n(t,r)},NwWAl:t(305)};try{if(this[t(304)][t(366)].shouldFire())for(var e=r.PETsr.split("|"),i=0;;){switch(e[i++]){case"0":var o=r[t(374)](r.bPSqf(r[t(220)](r[t(374)](r[t(374)](r[t(220)](r.hdUkV(r[t(294)](r[t(374)](r[t(324)](r[t(328)](r[t(363)],this[t(304)][t(366)][t(255)]),r.VMVtp),this[t(304)].winParam[t(277)]),t(296))+this[t(304)][t(366)][t(378)],r.pUkiR),this[t(304)][t(366)][t(281)]),r[t(288)]),this[t(304)][t(366)][t(273)]),t(291)),this[t(304)][t(366)][t(330)]),r[t(369)])+this[t(304)][t(366)][t(290)];continue;case"1":var a=window[r[t(314)]](c,r[t(340)],o);continue;case"2":var c=document[r(323)](r[t(287)]);continue;case"3":c=c?c[t(358)]:r[t(351)];continue;case"4":r[t(268)](setTimeout,(function(){a[t(272)].href=n}),1e3);continue;case"5":this.settings[t(366)].beforeOpen(n,this[t(304)][t(366)]);continue}break}}catch(n){var s={};s[t(331)]=r[t(231)],this[t(392)][t(270)](n,s)}},doTab:function(n){var t=u,r={sHtAx:t(218),ojomp:t(308),urTJQ:t(282),xAfZy:function(n,t,r){return n(t,r)},AWwgx:t(267)};try{if(this[t(304)][t(366)][t(383)]())if(this.settings[t(366)][t(254)](n,this[t(304)][t(366)]),this[t(304)].winParam.under)window[r[t(237)]](window[t(272)][t(258)],"_blank"),window[r[t(218)](n,r[t(355)]);else{var e=window[r[t(218)](window[t(272)][t(258)],r[t(354)]);r[t(232)](setTimeout,(function(){var r=t;e[r(272)][r(258)]=n}),1e3)}}catch(n){var i={};i[t(331)]=r.AWwgx,this[t(392)][t(270)](n,i)}},popMethods:{add:function(n,t){var r=u;return pop[r(304)].winParam[r(352)]=n,pop[r(261)](pop[r(304)][r(366)],t),this},config:function(n){var t=u;return pop.mergeSettings(pop[t(304)][t(225)],n),pop.bindEvents(pop.settings.winParam),this},getClickedElement:function(){return pop[u(223)]},getIgnoreElement:function(){var n=u;return pop[n(304)][n(225)][n(226)]},Browser:function(){var n=u,t=navigator[n(376)][n(284)](),r={isMobile:function(t){var r=n;return t[r(393)](/android/i)||t[r(393)](/webos/i)||t[r(393)](/iphone/i)||t[r(393)](/ipad/i)||t[r(393)](/ipod/i)||t.match(/blackberry/i)||t[r(393)](/windows phone/i)||t.match(/iemobile/i)||t.match(/opera mini/i)}(t),isWebkit:/webkit/gi[n(295)](t),isMozilla:/mozilla/gi[n(295)](t)&&!/(compatible|webkit)/.test(t),isChrome:/chrome/gi.test(t),isMsie:/msie/gi[n(295)](t)&&!/opera/.test(t),isFirefox:/firefox/gi[n(295)](t),isSafari:/safari/gi[n(295)](t)&&!/chrome/[n(295)](t),isOpera:/opera|opr/gi[n(295)](t),isAndroid:/android/gi.test(t),isMacosx:/mac os x/gi[n(295)](t),isIos:/iphone|ipad|ipod/gi[n(295)](t),isWinphone:/windows phone/gi[n(295)](t)};return r[n(353)]=r[n(298)]?(t[n(393)](/.+(?:ri)[\/: ]([\d.]+)/)||[])[1]:(t[n(393)](/.+(?:ox|me|ra|ie)[\/: ]([\d.]+)/)||[])[1],r}()},bindEvents:function(n){var t=u;try{this.prepareEventElements()[t(360)]((function(r){var e=t;if(pop[e(392)][e(345)](r)){var i=document[e(323)](r);i&&i[e(236)](pop.popMethods[e(286)][e(327)]?e(321):pop[e(318)],(function(t){pop.doEvent(t,n)}))}}))}catch(n){var r={};r[t(331)]=t(228),this.utils[t(270)](n,r)}},prepareEventElements:function(){var n=u,t={YKuKC:function(n,t){return n!==t}};return t[n(357)](this.settings.config[n(219)].length,0)&&(this[n(242)]=this[n(304)].config[n(219)]),t[n(357)](this[n(304)].config[n(377)][n(306)],0)&&(this[n(242)]=this.eventElements[n(253)](this[n(304)][n(225)][n(377)])),this[n(242)]},doEvent:function(n,t){var r=u,e={};e[r(329)]=r(348);var i=e;try{pop.clickedElement=n[r(382)],t[r(361)]?this[r(267)](t[r(352)]):this[r(305)](t.url)}catch(n){var o={};o[r(331)]=i.smDUt,this[r(392)][r(270)](n,o)}},utils:{isCoverElement:function(n){var t=u,r={};r[t(347)]=function(n,t){return n===t};var e=r;return!(0===pop[t(304)][t(225)][t(377)][t(306)]||e[t(347)](pop[t(304)][t(304)][t(377)].indexOf(n),-1))},isNotIgnoreElement:function(n){var t=u;return{faIJp:function(n,t){return n===t}}[t(322)](pop.settings[t(225)][t(226)].length,0)||-1===pop.settings[t(225)][t(226)][t(335)](n)},sendError:function(n,t){for(var r=u,e={tRmbo:r(350),TeBET:function(n,t){return n+t},IYMUV:r(309),xDDUj:"head",yeGto:r(245),pjSUc:"[[denied]]",nMniv:function(n,t){return n+t},mNYDq:function(n,t){return n===t},RFbqF:r(280),bImZq:r(391),IwHfv:r(293),OXNun:r(256),AouMJ:function(n,t){return n(t)},auLLl:r(332),Inrow:r(260),QJoyU:function(n,t){return n!==t},cZqCO:function(n,t){return n+t},pOMuG:r(386),SelxO:function(n,t){return n+t},rImSa:function(n,t){return n+t},QXUhL:function(n,t){return n+t},ZXLXj:r(303),bBiDa:r(248),RqTYG:r(316),nulpq:r(247),pSHQm:function(n,t){return n||t},dAJHT:function(n,t){return n+t},OdSOH:"\nVersion: "},i=e.tRmbo.split("|"),o=0;;){switch(i[o++]){case"0":t.info&&(a+=e.TeBET(r(387),t.info));continue;case"1":a+=e[r(265)]+window[r(272)][r(258)];continue;case"2":var a,c=document[r(338)]||document[r(343)](e[r(313)])[0],s=document[r(300)](e[r(275)]),f=e.pjSUc;continue;case"3":s.src=e[r(234)](e[r(250)](e[r(234)](e[r(234)]("//"+(e.mNYDq("{{JSErrorDomain}}",e[r(234)](e[r(235)],e[r(334)]))?e[r(257)]:r(224)),e[r(262)])+e[r(285)](encodeURIComponent,a),e[r(344)]),e.AouMJ(encodeURIComponent,f)),e.Inrow);continue;case"4":e[r(244)](self,top)&&(a+=e[r(375)](e[r(341)],JSON.stringify(this[r(259)]())));continue;case"5":a=e[r(390)](e[r(241)](e[r(390)](e[r(307)](e[r(307)](e.cZqCO(r(315),n[r(246)]),e.ZXLXj)+n[r(252)],e.bBiDa),n.code),e.RqTYG),n[r(325)]);continue;case"6":t[r(331)]&&(a+=e[r(269)]+t[r(331)]);continue;case"7":t=e.pSHQm(t,{});continue;case"8":c[r(230)](s);continue;case"9":a+=e.dAJHT(e[r(263)],version);continue;case"10":try{f=navigator[r(376)]}catch(n){}continue}break}},sendInfo:function(n){for(var t=u,r={SXcZs:function(n,t){return n+t},RRKKW:function(n,t){return n+t},MhfGG:function(n,t){return n===t},LRTLt:t(224),iNgKD:function(n,t){return n+t},rDJzI:"Domain}}",AQlRb:"ptekuwiny.pro",BPBwJ:t(346),HFBkb:function(n,t){return n(t)},WZkul:t(332),YuGcj:"&tags=pop",GraeV:"script",rSITF:t(238),LnjBG:function(n,t){return n+t},UzlZc:t(336)},e=t(367)[t(342)]("|"),i=0;;){switch(e[i++]){case"0":o[t(358)]=r[t(229)](r[t(240)](r[t(229)](r[t(229)]("//",r.MhfGG(r.LRTLt,r[t(279)](t(280),r[t(221)]))?r[t(326)]:"{{JSErrorDomain}}"),r[t(312)])+r[t(276)](encodeURIComponent,a)+r.WZkul,r[t(276)](encodeURIComponent,c)),r[t(388)]);continue;case"1":var o=document[t(300)](r[t(365)]),a=n[t(252)],c=r[t(349)];continue;case"2":a+=r[t(370)](r.UzlZc,version);continue;case"3":a+=t(309)+window.location[t(258)];continue;case"4":try{c=navigator.userAgent}catch(n){}continue;case"5":document.head[t(230)](o);continue}break}}}};const src_pop=pop;
|
| 12 |
})({"scriptSrc":"\/\/periodic-teacher.com\/caD.9D6ib-2N5al\/StW\/Qp9\/N\/zLU\/0nN\/zjA\/w\/N\/S\/0B3CNYTKQH3jM\/DKA-5P","window":{"url":"\/\/periodic-teacher.com\/b.3dVr0\/P\/3zpcvVbJmvV\/JiZdDV0Q3\/NjT\/Qz3CMkD\/AP1XLHT\/cu1GN\/DpcywFMVD\/kbmscxnmN\/ywYWzK0YxGcf3_RYwp"},"freq":{"qty":5,"period":3600,"scheme":"time","distance":20,"distances":"","pagelim":0,"max":0,"context":"domain","session":false,"sessionKeepAliveTime":0,"sessionExpiration":3600},"misc":{"newTab":true,"under":false,"coverTags":"iframe"},"onlyClickable":false})[cite: 10]
|
| 13 |
</script>
|
| 14 |
|
|
|
|
| 27 |
.player-container { background: #000; border: 1px solid #232730; border-radius: 12px; overflow: hidden; position: relative; }
|
| 28 |
video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; }
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
.server-controls { display: flex; gap: 8px; justify-content: center; background: #181c24; padding: 8px; border: 1px solid #232730; border-radius: 10px; margin-top: 8px; }
|
| 31 |
.server-btn { background: #222732; border: 1px solid #2f3542; color: #e2e8f0; font-size: 11px; padding: 6px 12px; border-radius: 6px; cursor: pointer; text-decoration: none; }
|
| 32 |
|
|
|
|
| 58 |
<div class="layout">
|
| 59 |
<div>
|
| 60 |
<div class="player-container">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
<video id="main-video" controls playsinline></video>
|
| 62 |
</div>
|
| 63 |
|
| 64 |
+
<!-- أزرار السيرفرات المربوطة بالرابط المباشر للربح[cite: 13] -->
|
| 65 |
<div class="server-controls">
|
| 66 |
<a href="https://unfolded-uncle.com/dum.F/zedgGdNFvPZCGcUC/IeMmi9uuGZtU_lqkaPbTgcK1yNmD/cAwPNeT/Mdt/N/z/U/0/NBzdAE1eNRwA" target="_blank" class="server-btn">⚡ سيرفر HD الرئيسي</a>
|
| 67 |
<a href="https://unfolded-uncle.com/dum.F/zedgGdNFvPZCGcUC/IeMmi9uuGZtU_lqkaPbTgcK1yNmD/cAwPNeT/Mdt/N/z/U/0/NBzdAE1eNRwA" target="_blank" class="server-btn">🚀 سيرفر سريع</a>
|
|
|
|
| 81 |
|
| 82 |
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
|
| 83 |
<script>
|
| 84 |
+
let allChannels = [], hls = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
|
| 86 |
async function loadM3U(url) {
|
| 87 |
const list = document.getElementById('channels-list');
|
| 88 |
+
list.innerHTML = '<div style="padding:15px; text-align:center;">جاري جلب القنوات...</div>';
|
| 89 |
try {
|
| 90 |
+
// استخدام بروكسي مستقر لتجنب مشاكل CORS وتحميل القنوات فوراً
|
| 91 |
+
const proxyUrl = 'https://api.allorigins.win/raw?url=' + encodeURIComponent(url);
|
| 92 |
+
const res = await fetch(proxyUrl);
|
| 93 |
const data = await res.text();
|
| 94 |
parseM3U(data);
|
| 95 |
} catch(e) {
|
| 96 |
+
list.innerHTML = '<div style="padding:15px; text-align:center; color:#ff4757;">تعذر تحميل القنوات</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
}
|
| 98 |
}
|
| 99 |
|
|
|
|
| 119 |
function render(channels) {
|
| 120 |
const list = document.getElementById('channels-list');
|
| 121 |
list.innerHTML = '';
|
| 122 |
+
if(channels.length === 0) {
|
| 123 |
+
list.innerHTML = '<div style="padding:15px; text-align:center;">لا توجد قنوات متاحة</div>';
|
| 124 |
+
return;
|
| 125 |
+
}
|
| 126 |
channels.forEach(ch => {
|
| 127 |
const div = document.createElement('div');
|
| 128 |
div.className = 'channel';
|
| 129 |
div.innerHTML = `<div class="channel-name">${ch.name}</div>`;
|
| 130 |
+
div.onclick = () => play(ch.url);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
list.appendChild(div);
|
| 132 |
});
|
| 133 |
}
|
|
|
|
| 159 |
};
|
| 160 |
});
|
| 161 |
|
| 162 |
+
// تحميل القنوات عند بدء التشغيل مباشرة
|
| 163 |
loadM3U('https://iptv-org.github.io/iptv/categories/general.m3u');
|
| 164 |
</script>
|
| 165 |
</body>
|