v-fixed30:直播页右上角TVBOX接入入口(配置/直播源两条地址+一键复制)
This commit is contained in:
1 parent
39de2c150b
commit
3138a03f70
3 files changed
+42
-2
No files matched your search
@@ -2,6 +2,10 @@
|
||||
|
||||
格式参考本机发版惯例:按日期分条,`🐛修复` / `✨新功能`。
|
||||
|
||||
## 2026-10-26 → v-fixed30
|
||||
|
||||
- ✨ **直播页右上角 TVBOX 接入入口**:顶栏右侧常驻蓝色「📺 TVBOX接入」按钮,点击弹出卡片显示两条地址(配置地址 `…/api/tvbox` 含直播·推荐 / 直播源地址 `…/api/tvbox?live=txt` 仅直播),各带一键复制(已复制 ✓ 反馈)、下方附 TVBox/影视仓 粘贴位置说明;点外部关闭。地址按 `location.origin` 动态生成,两接口均免登录可直接导入
|
||||
|
||||
## 2026-10-26 → v-fixed29
|
||||
|
||||
- ✨ **节目单(EPG)**:播放器右上角「📋 节目单」按钮,点击从右侧滑出面板(默认隐藏)——显示当前台今日全部节目(起止时间+名称),当前时段高亮并自动滚动定位;切换频道面板自动刷新;✕ 收起
|
||||
|
||||
@@ -3,7 +3,7 @@ version: '3.8'
|
||||
services:
|
||||
# KatelyaTV 应用服务
|
||||
katelyatv:
|
||||
image: katelyatv:fixed29
|
||||
image: katelyatv:fixed30
|
||||
container_name: katelyatv
|
||||
ports:
|
||||
- "3030:3000"
|
||||
|
||||
+37
-1
@@ -91,6 +91,17 @@ body{background:#0f1115;color:#e5e7eb;font-family:-apple-system,BlinkMacSystemFo
|
||||
.hd{position:sticky;top:0;z-index:9;background:rgba(15,17,21,.92);backdrop-filter:blur(8px);padding:10px 14px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #1f2430}
|
||||
.hd a{color:#9ca3af;text-decoration:none;font-size:24px;line-height:1}
|
||||
.hd h1{font-size:17px;font-weight:600}
|
||||
.tvboxBtn{border:1px solid rgba(59,130,246,.55);background:rgba(37,99,235,.16);color:#bfdbfe;border-radius:8px;padding:7px 12px;font-size:13px;cursor:pointer;white-space:nowrap;transition:.15s}
|
||||
.tvboxBtn:hover{background:rgba(37,99,235,.32);color:#fff}
|
||||
.tvboxPop{position:absolute;right:14px;top:calc(100% + 8px);width:min(400px,94vw);background:#12151c;border:1px solid #2a3143;border-radius:12px;padding:14px;display:none;box-shadow:0 16px 44px rgba(0,0,0,.6);z-index:30}
|
||||
.tvboxPop.open{display:block}
|
||||
.tvboxPopTitle{font-size:14px;font-weight:600;color:#e5e7eb;margin-bottom:10px}
|
||||
.tvboxRow{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:wrap}
|
||||
.tvboxLbl{font-size:12px;color:#9ca3af;width:100%}
|
||||
.tvboxRow code{flex:1;min-width:0;background:#0b0d12;border:1px solid #232936;border-radius:6px;padding:7px 9px;font-size:12px;color:#93c5fd;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
||||
.tvboxRow button{flex:none;border:none;background:#1d4ed8;color:#fff;border-radius:6px;padding:7px 12px;font-size:12px;cursor:pointer;transition:.15s}
|
||||
.tvboxRow button:hover{background:#2563eb}
|
||||
.tvboxHint{font-size:12px;color:#6b7280;line-height:1.6;margin-top:4px}
|
||||
.wrap{max-width:1180px;margin:0 auto;padding:14px;display:flex;flex-direction:column;gap:14px}
|
||||
.side{max-height:36vh;overflow:auto;padding-right:2px}
|
||||
video{object-fit:contain}
|
||||
@@ -138,7 +149,13 @@ select{background:#171b24;color:#e5e7eb;border:1px solid #2a3140;border-radius:6
|
||||
.sec{font-size:13px;color:#6b7280;margin:2px 0 8px}
|
||||
.empty{color:#6b7280;font-size:13px;padding:20px 0;text-align:center}
|
||||
</style></head><body>
|
||||
<div class="hd"><a href="/" >‹</a><h1>电视直播 · 港澳台</h1></div>
|
||||
<div class="hd"><a href="/" >‹</a><h1>电视直播 · 港澳台</h1><span style="flex:1"></span><button class="tvboxBtn" id="tvboxBtn">📺 TVBOX接入</button>
|
||||
<div class="tvboxPop" id="tvboxPop">
|
||||
<div class="tvboxPopTitle">TVBox / 影视仓 · 接入直播</div>
|
||||
<div class="tvboxRow"><span class="tvboxLbl">配置地址(含直播,推荐)</span><code id="tbCfg">—</code><button id="tbCfgCopy">复制</button></div>
|
||||
<div class="tvboxRow"><span class="tvboxLbl">直播源地址(仅直播)</span><code id="tbLive">—</code><button id="tbLiveCopy">复制</button></div>
|
||||
<div class="tvboxHint">TVBox「设置→配置地址」粘贴上面的配置地址即可,直播已内置;只想加直播时用下面的直播源地址粘贴到「直播」一栏。</div>
|
||||
</div></div>
|
||||
<div class="wrap">
|
||||
<div class="side"><div class="sec">频道列表 <span style="color:#4b5563">点击切换</span></div><div class="grid" id="grid"><div class="empty">加载中…</div></div></div>
|
||||
<div class="main">
|
||||
@@ -215,6 +232,25 @@ epgTab.addEventListener('click',function(e){e.stopPropagation();
|
||||
epgOpen=true;epgPanel.classList.add('open');refreshEpg()});
|
||||
epgClose.addEventListener('click',function(e){e.stopPropagation();
|
||||
epgOpen=false;epgPanel.classList.remove('open')});
|
||||
var tvboxBtn=document.getElementById('tvboxBtn'),tvboxPop=document.getElementById('tvboxPop');
|
||||
var tbCfg=document.getElementById('tbCfg'),tbLive=document.getElementById('tbLive');
|
||||
if(tbCfg)tbCfg.textContent=location.origin+'/api/tvbox';
|
||||
if(tbLive)tbLive.textContent=location.origin+'/api/tvbox?live=txt';
|
||||
function copyTxt(txt,btn,done){
|
||||
var ok=function(){btn.textContent='已复制 ✓';setTimeout(function(){btn.textContent=done},1600)};
|
||||
if(navigator.clipboard&&navigator.clipboard.writeText){navigator.clipboard.writeText(txt).then(ok,function(){fallback()})}
|
||||
else fallback();
|
||||
function fallback(){var ta=document.createElement('textarea');ta.value=txt;ta.style.position='fixed';ta.style.opacity='0';
|
||||
document.body.appendChild(ta);ta.select();try{document.execCommand('copy');ok()}catch(e){}
|
||||
document.body.removeChild(ta)}
|
||||
}
|
||||
if(tvboxBtn){tvboxBtn.addEventListener('click',function(e){e.stopPropagation();
|
||||
tvboxPop.classList.toggle('open')});
|
||||
document.getElementById('tbCfgCopy').addEventListener('click',function(e){e.stopPropagation();copyTxt(tbCfg.textContent,this,'复制')});
|
||||
document.getElementById('tbLiveCopy').addEventListener('click',function(e){e.stopPropagation();copyTxt(tbLive.textContent,this,'复制')});
|
||||
tvboxPop.addEventListener('click',function(e){e.stopPropagation()});
|
||||
document.addEventListener('click',function(){tvboxPop.classList.remove('open')});
|
||||
}
|
||||
function nextLine(){if(sel.options.length&&+sel.value<sel.options.length-1){sel.value=+sel.value+1;playLine(sel.value)}else if(sel.options.length){setTimeout(function(){sel.value=0;playLine(0)},2000)}}
|
||||
window.nextLine=nextLine;
|
||||
function playLine(p){
|
||||
|
||||
Reference in new issue
Block a user