<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> .popup-container { width: calc(100vw - 40px); max-width: 380px; margin: auto; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(20, 20, 20, 0.7); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); padding: 20px; box-sizing: border-box; border-radius: 16px; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 15px 50px rgba(0,0,0,0.8); color: #eee; font-family: sans-serif; display: flex; flex-direction: column; justify-content: center; pointer-events: auto; } @keyframes loading-spin { 100% { transform: rotate(360deg); } } .title { margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; display:flex; align-items:center; justify-content:center; gap:8px; font-size: 18px; font-weight: bold; color: {theme}; } .url-box { margin-bottom:12px; background: rgba(255,255,255,0.05); padding: 10px; border-radius: 6px; word-break:break-all; border: 1px solid rgba(255,255,255,0.05); font-size: 14px; text-align: center;} .loading-msg { margin-bottom:12px; font-weight:bold; font-size: 15px; text-align: center; color: #fff; } .tip { font-size: 12px; color:#94a3b8; line-height: 1.8; text-align: center;} </style> </head> <body> <!-- 可自定义状态文字 --> <div id="loading-dictionary" style="display:none;"> <span data-code="LOAD_START"><span data-loading-title="视频处理中">正在处理视频中...</span></span> <span data-code="LOAD_BUFFERING"><span data-loading-title="正在缓冲中">视频处理完成,正在缓冲中...</span></span> <span data-code="LOAD_SWITCH_ROUTE"><span data-loading-title="正在连接线路">正在为您连接线路...</span><br><span style="font-size:18px;display:inline-block;margin-top:8px;color:var(--theme-color);">{name}</span></span> <span data-code="LOAD_SWITCH_EP"><span data-loading-title="正在切换视频">正在为您切换视频...</span><br><span style="font-size:18px;display:inline-block;margin-top:8px;color:var(--theme-color);">{name}</span></span> <span data-code="LOAD_SWITCH_LIVE"><span data-loading-title="正在切换直播频道">正在切换直播频道...</span><br><span style="font-size:18px;display:inline-block;margin-top:8px;color:var(--theme-color);">{name} · {quality}</span></span> <span data-code="DEFAULT"><span data-loading-title="视频处理中">正在处理中...</span></span> </div> <div class="popup-container"> <div class="title"> <svg viewBox="0 0 50 50" style="width: 20px; height: 20px; animation: loading-spin 1s linear infinite;"> <circle cx="25" cy="25" r="20" fill="none" stroke="currentColor" stroke-width="4" stroke-dasharray="31.4 100" stroke-linecap="round"></circle> </svg> <span id="loading-title-text">视频处理中</span> </div> <div class="url-box">正在处理:<br><span style="color:{theme}; font-family: monospace;">{url}</span></div> <div class="loading-msg" id="loading-tip-text">{msg}</div> <div class="tip">提示:等待时间过长时可点击线路/选集,换线/换集/刷新尝试解决<br>或:完整截屏本页发送给网站管理员解决</div> </div> </body> </html>
正在处理视频中... 视频处理完成,正在缓冲中... 正在为您连接线路...
{name}
正在为您切换视频...
{name}
正在切换直播频道...
{name} · {quality}
正在处理中...
视频处理中
正在处理:
https://svip.jijiplay.com/151eece7/20260604/27528/index.m3u8
正在处理视频中...
提示:等待时间过长时可点击线路/选集,换线/换集/刷新尝试解决
或:完整截屏本页发送给网站管理员解决
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> .popup-container { width: calc(100vw - 40px); max-width: 380px; margin: auto; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(20, 20, 20, 0.7); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); padding: 20px; box-sizing: border-box; border-radius: 16px; border: 1px solid #e53e3e; box-shadow: 0 15px 50px rgba(0,0,0,0.8); color: #eee; font-family: sans-serif; display: flex; flex-direction: column; justify-content: center; pointer-events: auto; } .title { margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; font-size: 18px; font-weight: bold; color: #e53e3e; text-align: center; } .url-box { margin-bottom:12px; background: rgba(255,255,255,0.05); padding: 10px; border-radius: 6px; word-break:break-all; border: 1px solid rgba(255,255,255,0.05); font-size: 14px; text-align: center;} .err-msg { margin-bottom:12px; color:#ff4d4f; font-weight:bold; font-size: 15px; text-align: center; } .tip { font-size: 12px; color:#94a3b8; line-height: 1.8; text-align: center; margin-bottom: 15px;} .btn-group { display: flex; gap: 15px; justify-content: center; } .err-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 8px 20px; border-radius: 20px; font-size: 13px; font-weight: bold; cursor: pointer; transition: all 0.2s; outline: none; white-space: nowrap; } .err-btn:hover { background: rgba(255,255,255,0.25); } .err-btn:active { transform: scale(0.95); } .err-btn-retry { background: {theme}; border-color: {theme}; box-shadow: 0 4px 10px rgba(0,0,0,0.3); } .err-btn-retry:hover { background: {theme}; opacity: 0.85; } </style> </head> <body> <!-- 可自定义错误提示文字 --> <div id="error-dictionary" style="display:none;"> <span data-code="ERR_EMPTY_URL">播放出错,未输入有效的视频地址</span> <span data-code="ERR_SRC_DEAD">视频加载失败,请重试或切换线路</span> <span data-code="ERR_NETWORK">视频请求失败,可能受到网络异常或访问限制影响,请重试或切换线路</span> <span data-code="ERR_HTTP_FORBIDDEN">视频服务器拒绝访问,可能需要授权或受到防盗链限制,请切换线路</span> <span data-code="ERR_HTTP_NOT_FOUND">请求的视频资源不存在或已被移除,请刷新或切换线路</span> <span data-code="ERR_HTTP_RATE_LIMIT">视频服务器请求过于频繁,请稍后重试</span> <span data-code="ERR_HTTP_SERVER">视频服务器暂时异常,请稍后重试或刷新或切换线路</span> <span data-code="ERR_HTTP_REQUEST">视频服务器未接受此请求,请重试或刷新或切换线路</span> <span data-code="ERR_MEDIA_ABORTED">视频加载已中止,请重试</span> <span data-code="ERR_MEDIA_DECODE">视频解码失败,可能是数据异常或编码不兼容,请切换线路</span> <span data-code="ERR_MEDIA_UNSUPPORTED">无法播放此视频,可能是格式不支持或资源访问受限,请切换线路</span> <span data-code="ERR_DASH_PLAYBACK">DASH 清单或媒体加载失败,请检查跨域、防盗链、链接有效期及格式兼容性</span> <span data-code="ERR_DASH_NO_FRAME">DASH 视频长时间未输出画面,可能是源站带宽不足或媒体分片无法下载,请重试或更换线路</span> <span data-code="ERR_VIDEO_CODEC_UNSUPPORTED">当前浏览器无法解码此视频画面,请切换兼容线路或使用支持该视频编码的浏览器和设备</span> <span data-code="ERR_HEVC_CORE">H.265 解码组件未能加载,请检查浏览器支持、网络及本地解码文件是否完整</span> <span data-code="ERR_HEVC_PLAYBACK">H.265 兼容解码失败,请重试或切换线路;可能是片源访问、音视频编码或设备能力受限</span> <span data-code="ERR_HEVC_NO_FRAME">H.265 视频长时间未输出画面,请切换较低清晰度或兼容线路</span> <span data-code="ERR_HLS_MANIFEST">播放清单内容异常或没有可播放片段,请切换线路</span> <span data-code="ERR_HLS_MEDIA">视频处理失败,可能是片段异常、格式不兼容或浏览器解码异常</span> <span data-code="ERR_HTTPS_MIXED">当前页面使用 HTTPS,HTTP 视频资源受浏览器混合内容策略限制;播放器不会主动修改视频协议,请联系管理员使用 HTTPS 视频源或合适的 HTTPS 代理</span> <span data-code="ERR_NATIVE_MIXED">当前页面使用 HTTPS,浏览器无法直接加载此 HTTP 视频;请联系管理员使用 HTTPS 视频源或合适的 HTTPS 代理</span> <span data-code="ERR_HTTPS_REQUEST">视频 HTTPS 请求失败,请检查视频源证书、跨域、防盗链或网络连接;播放器的强制 HTTPS 开关仅作用于自身页面和站内请求</span> <span data-code="ERR_CORS_OR_DEAD">视频资源请求失败,请重试或切换线路</span> <span data-code="ERR_HLS_REQUEST">视频请求未获得可读响应,可能受到跨域、证书或网络异常影响,请重试或切换线路</span> <span data-code="ERR_NATIVE_CORS">浏览器无法加载此视频,可能是格式不支持或资源访问失败,请切换线路</span> <span data-code="ERR_LOAD_TIMEOUT">视频请求超时,请稍后重试或切换线路</span> <span data-code="ERR_FLV_TS_DEAD">视频处理失败,可能是数据异常、格式不兼容或播放组件异常</span> <span data-code="ERR_NOT_READY">视频正在加载中...</span> <span data-code="ERR_NOT_READY_PLAY">视频缓冲中无法播放...</span> <span data-code="ERR_NOT_READY_FULLSCREEN">视频缓冲中无法全屏...</span> <span data-code="ERR_NOT_READY_SEEK">视频缓冲中无法快进...</span> <span data-code="ERR_PLAY_SIGNATURE">播放凭证无效或已过期,请刷新播放页</span> <span data-code="ERR_PLAY_SCOPE">当前凭证不允许解析此视频,请重新打开该视频的播放页</span> <span data-code="ERR_ROUTE_PASSWORD_REQUIRED">此线路需要验证密码,请选择线路并输入密码</span> <span data-code="ERR_ROUTE_PASSWORD_INVALID">线路密码错误,请重新输入</span> <span data-code="ERR_ROUTE_PASSWORD_RATE">线路密码尝试过于频繁,请稍后再试</span> <span data-code="ERR_ROUTE_VERIFY_UNAVAILABLE">线路验证服务暂不可用,请稍后重试</span> <span data-code="ERR_ROUTE_DISABLED">线路功能已关闭,请使用默认解析</span> <span data-code="ERR_ROUTE_INVALID">所选线路不存在或参数无效</span> <span data-code="ERR_ROUTE_NO_API">所选线路未配置有效解析接口</span> <span data-code="ERR_DIRECT_NO_MATCH">该链接非视频格式无法播放且未匹配到解析接口</span> <span data-code="ERR_DIRECT_PROBE_FAIL">视频地址返回了网页或数据接口内容,无法直接播放</span> <span data-code="ERR_INVALID_URL">播放地址格式不合法</span> <span data-code="ERR_LIVE_FETCH">直播源文件获取失败,请稍后重试</span> <span data-code="ERR_LIVE_EMPTY">直播源内没有可播放频道,或频道已被屏蔽规则全部过滤</span> <span data-code="ERR_ROUTE_API_FAILED">播放出错,所选线路解析失败</span> <span data-code="ERR_API_ALL_FAILED">播放出错,所有匹配的解析接口均解析失败或超时</span> <span data-code="ERR_FLV_NOT_SUPPORTED">当前浏览器暂不支持播放FLV视频</span> <span data-code="ERR_FLV_CORE_DEAD">FLV 播放组件加载或初始化失败,请刷新重试</span> <span data-code="ERR_TS_NOT_SUPPORTED">当前浏览器暂不支持播放TS视频</span> <span data-code="ERR_TS_CORE_DEAD">TS 播放组件加载或初始化失败,请刷新重试</span> <span data-code="ERR_RSA_STORAGE_PERMISSION">服务器加密密钥存储权限不足,请管理员检查程序目录权限(≥775/www),修改后刷新重试。</span> <span data-code="ERR_RSA_SQLITE_UNAVAILABLE">服务器未启用 SQLite/PDO_SQLite 扩展,无法初始化加密密钥,请联系管理员开启后重试。</span> <span data-code="ERR_RSA_OPENSSL_UNAVAILABLE">服务器 OpenSSL 密钥功能不可用,请管理员检查 OpenSSL 扩展及相关函数是否被禁用。</span> <span data-code="ERR_RSA_DATABASE_ERROR">服务器加密密钥数据库无法读写,请管理员检查 log 目录权限(≥775/www)或在后台重置密钥后重试。</span> <span data-code="ERR_RSA_DATABASE_BUSY">服务器加密密钥数据库正忙,请稍后刷新重试;若持续出现,请管理员检查数据库占用情况。</span> <span data-code="ERR_RSA_STORAGE_FULL">服务器加密密钥数据库空间不足,请管理员检查磁盘剩余空间及数据库容量后重试。</span> <span data-code="ERR_RSA_GENERATE_FAILED">服务器生成加密密钥失败,请管理员检查 OpenSSL 配置或在后台重置密钥后重试。</span> <span data-code="ERR_RSA_PUBLIC_KEY_INVALID">服务器返回的加密公钥格式异常,请管理员在后台重置密钥后刷新重试。</span> <span data-code="ERR_RSA_UNAVAILABLE">服务器暂时无法提供加密密钥,请管理员检查 log 目录权限(≥775/www)、SQLite 与 OpenSSL 扩展后重试。</span> <span data-code="ERR_PLAYER_CORE">播放器核心地址未配置</span> <span data-code="ERR_CRYPTO_HTTPS">当前网站未使用 HTTPS,加密功能无法初始化,请联系管理员配置 SSL 证书并使用 HTTPS 访问;仅本地测试时可在后台安全与加密页内关闭加密开关后刷新解决。正式使用时请保持开启加密开关。</span> <span data-code="ERR_CRYPTO_CONTEXT">当前页面不在安全上下文中,无法使用加密功能,请使用 HTTPS 访问,并确保嵌入播放器的上层页面也使用 HTTPS。</span> <span data-code="ERR_CRYPTO_UNSUPPORTED">当前浏览器不支持 Web Crypto 加密功能,请更换最新版浏览器后重试。</span> <span data-code="ERR_CRYPTO_CONNECT">无法连接服务器加密密钥接口,请检查网站 HTTPS、PHP 服务及网络连接后刷新重试。</span> <span data-code="ERR_CRYPTO_RESPONSE">服务器加密密钥接口返回了无法识别的响应,请联系管理员检查 PHP 服务及网站缓存后重试。</span> <span data-code="ERR_CRYPTO_ALGORITHM">当前浏览器不支持所需的 RSA-OAEP 加密算法,请更换最新版浏览器后重试。</span> <span data-code="ERR_CRYPTO_INIT">加密公钥初始化失败,请联系管理员检查服务器配置后刷新重试。</span> <span data-code="ERR_SECURITY_INTERCEPT">请求被安全策略拦截</span> <span data-code="ERR_SECURITY_STOPPED">安全拦截已终止后续接口调用</span> <span data-code="ERR_CRYPTO_EXCHANGE">加密隧道交互失败</span> <span data-code="ERR_PARSE">解析失败</span> <span data-code="ERR_PLAYER_INIT">播放器初始化失败</span> <span data-code="ERR_PLAYBACK_STOPPED">安全拦截已终止播放</span> <span data-code="CRYPTO_HTTP">服务器加密密钥接口请求失败(HTTP {status}),请联系管理员检查网站服务及拦截规则。</span> <span data-code="CRYPTO_SESSION">加密密钥请求失败:{message}。请刷新页面,若仍失败请联系管理员。</span> <span data-code="DEFAULT">播放失败,暂时无法确定原因,请重试或切换线路</span> </div> <div class="popup-container"> <div class="title">播放出错</div> <div class="url-box">播放链接:<br><span style="color:{theme}; font-family: monospace;">{url}</span></div> <div class="err-msg">{msg}</div> <div class="tip">提示:您可以点击线路/选集,换线/换集/刷新尝试解决<br>或:完整截屏本页发送给网站管理员解决</div> <div class="btn-group"> <button class="err-btn err-btn-refresh" onclick="window.playerRefreshCurrent && window.playerRefreshCurrent(event)">刷新</button> <button class="err-btn err-btn-retry" onclick="window.playerRetryCurrent && window.playerRetryCurrent(event)">重试</button> </div> </div> </body> </html>
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>一起看弹窗与聊天窗口</title> <style> /* 按钮、房间弹窗、聊天窗口的定位和外观均在本文件修改。 */ #wt-top-btn-wrap { position:absolute; top:55px; right:25px; display:flex; flex-direction:column; align-items:flex-end; pointer-events:none; z-index:999999; transition:opacity .3s,visibility .3s; } #wt-top-btn { background:rgba(20,20,20,.8); backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,.15); color:#fff; padding:6px 14px; border-radius:20px; font-size:13px; cursor:pointer; pointer-events:auto; transition:.2s; box-shadow:0 4px 15px rgba(0,0,0,.5); display:flex; align-items:center; font-weight:bold; } #wt-top-btn-wrap[hidden] { display:none !important; } #wt-top-btn:hover { background:var(--theme-color,#d0ac67); } #wt-panel-overlay { position:absolute; inset:0; background:rgba(0,0,0,.6); display:flex; align-items:center; justify-content:center; z-index:1000000; backdrop-filter:blur(10px); padding:12px; pointer-events:none; } #wt-panel-overlay .wt-panel { pointer-events:auto; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%) scale(var(--panel-scale,1)); transform-origin:center; background:rgba(20,20,20,.95); border:1px solid rgba(255,255,255,.15); border-radius:12px; width:360px; max-width:calc((var(--panel-width,100vw) - 24px) / var(--panel-scale,1)); max-height:calc((var(--panel-height,100vh) - 24px) / var(--panel-scale,1)); overflow:auto; padding:20px; color:#fff; box-shadow:0 10px 30px rgba(0,0,0,.5); } #wt-panel-overlay .wt-panel-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:15px; gap:8px; } #wt-panel-overlay h3 { color:var(--theme-color,#d0ac67); margin:0; font-size:16px; } #wt-panel-overlay #wt-total-rooms { display:block; font-size:11px; color:#888; font-weight:normal; margin-top:5px; } #wt-panel-overlay .wt-close-btn, #wt-chat-panel .wt-close-btn { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; box-sizing:border-box; width:30px; height:30px; padding:0; border:1px solid rgba(255,255,255,.35); border-radius:50%; background:rgba(255,255,255,.12); color:#fff; font:600 20px/1 Arial,sans-serif; cursor:pointer; } #wt-panel-overlay .wt-close-btn:hover, #wt-chat-panel .wt-close-btn:hover { background:rgba(255,255,255,.22); } #wt-panel-overlay .wt-close-btn:focus-visible, #wt-chat-panel .wt-close-btn:focus-visible { outline:2px solid var(--theme-color,#d0ac67); outline-offset:2px; } #wt-panel-overlay .wt-primary-btn { width:100%; border:none; background:var(--theme-color,#d0ac67); color:#fff; padding:10px; border-radius:6px; cursor:pointer; font-weight:bold; font-size:14px; transition:.2s; } #wt-panel-overlay .wt-primary-btn:active { transform:scale(.95); } #wt-panel-overlay .wt-input-group { display:flex; gap:8px; align-items:center; } #wt-panel-overlay .wt-input-group input { flex:1; min-width:0; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); border-radius:4px; padding:8px; color:#fff; font-size:13px; } #wt-panel-overlay .wt-secondary-btn { background:rgba(255,255,255,.1); border:none; color:#fff; padding:8px 14px; border-radius:4px; cursor:pointer; font-weight:bold; white-space:nowrap; } #wt-panel-overlay .wt-secondary-btn:hover { background:rgba(255,255,255,.2); } #wt-panel-overlay .wt-members-list { max-height:150px; overflow-y:auto; background:rgba(0,0,0,.2); border-radius:8px; padding:5px; scrollbar-width:thin; } #wt-panel-overlay .wt-member-item { padding:6px 10px; border-bottom:1px dashed rgba(255,255,255,.05); font-size:13px; display:flex; flex-wrap:wrap; align-items:center; gap:5px; overflow-wrap:anywhere; } #wt-panel-overlay .wt-host-tag { color:var(--theme-color,#d0ac67); border:1px solid; padding:1px 4px; border-radius:4px; font-size:10px; background:rgba(0,0,0,.3); } #wt-panel-overlay .wt-member-time, #wt-panel-overlay .wt-muted { font-size:10px; color:#888; } #wt-panel-overlay .wt-member-authorized { margin-left:auto; font-size:10px; color:var(--theme-color,#d0ac67); } #wt-panel-overlay .wt-switch { position:relative; display:inline-block; width:40px; height:20px; flex-shrink:0; } #wt-panel-overlay .wt-switch input { opacity:0; width:0; height:0; } #wt-panel-overlay .wt-slider { position:absolute; cursor:pointer; inset:0; background:#555; transition:.3s; border-radius:20px; } #wt-panel-overlay .wt-slider:before { position:absolute; content:""; height:14px; width:14px; left:3px; bottom:3px; background:white; transition:.3s; border-radius:50%; } #wt-panel-overlay .wt-switch input:checked + .wt-slider { background:var(--theme-color,#d0ac67); } #wt-panel-overlay .wt-switch input:checked + .wt-slider:before { transform:translateX(20px); } #wt-panel-overlay .wt-switch input:focus-visible + .wt-slider { outline:2px solid var(--theme-color,#d0ac67); outline-offset:2px; } #wt-panel-overlay .wt-switch-small { width:30px; height:16px; margin-left:auto; } #wt-panel-overlay .wt-switch-small .wt-slider:before { height:12px; width:12px; left:2px; bottom:2px; } #wt-panel-overlay .wt-switch-small input:checked + .wt-slider:before { transform:translateX(14px); } #wt-panel-overlay .wt-room-info { background:rgba(0,0,0,.3); padding:12px; border-radius:8px; margin-bottom:15px; } #wt-panel-overlay .wt-room-line { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:8px; } #wt-panel-overlay .wt-share-url { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; color:var(--theme-color,#d0ac67); } #wt-panel-overlay .wt-control-all { display:flex; justify-content:space-between; align-items:center; margin-bottom:15px; padding:10px; background:rgba(255,255,255,.05); border-radius:8px; font-size:13px; } #wt-panel-overlay #wt-leave-room-btn { background:#e53e3e; margin-top:15px; } #wt-chat-panel { position:absolute; left:20px; bottom:110px; width:260px; max-width:calc(100% - 40px); height:450px; max-height:calc(100% - 140px); background:rgba(20,20,20,.85); color:#fff; border:1px solid rgba(255,255,255,.1); border-radius:12px; display:flex; flex-direction:column; z-index:100; opacity:0; pointer-events:none; visibility:hidden; transition:opacity .3s,visibility .3s; backdrop-filter:blur(10px); overflow:hidden; } #wt-chat-panel.wt-chat-visible { opacity:1; pointer-events:auto; visibility:visible; } #wt-chat-panel .wt-chat-header { display:flex; justify-content:space-between; align-items:center; padding:5px 10px; font-size:12px; } #wt-chat-panel .wt-chat-messages { flex:1; min-height:0; overflow-y:auto; padding:12px; scrollbar-width:thin; display:flex; flex-direction:column; } #wt-chat-panel .wt-sys-msg { text-align:center; font-size:12px; background:rgba(20,20,20,.85); padding:5px 14px; border-radius:20px; margin:3px auto; display:flex; align-items:center; gap:8px; overflow-wrap:anywhere; color:var(--theme-color,#d0ac67); } #wt-chat-panel .wt-sys-msg-time { font-size:11px; color:rgba(255,255,255,.4); } #wt-chat-panel .wt-chat-msg { display:flex; flex-direction:column; max-width:85%; margin-bottom:12px; } #wt-chat-panel .wt-chat-msg-self { align-self:flex-end; align-items:flex-end; } #wt-chat-panel .wt-chat-msg-other { align-self:flex-start; align-items:flex-start; } #wt-chat-panel .wt-chat-msg-name { font-size:11px; color:#aaa; margin-bottom:3px; display:flex; align-items:center; gap:6px; overflow-wrap:anywhere; } #wt-chat-panel .wt-chat-msg-time { font-size:9px; color:rgba(255,255,255,.3); } #wt-chat-panel .wt-chat-role { color:#ff9800; font-size:10px; } #wt-chat-panel .wt-chat-msg-content { display:inline-block; padding:6px 12px; border-radius:10px; font-size:13px; line-height:1.4; overflow-wrap:anywhere; background:rgba(255,255,255,.1); } #wt-chat-panel .wt-chat-msg-self .wt-chat-msg-content { background:var(--theme-color,#d0ac67); } #wt-chat-panel .wt-chat-input-area { display:flex; gap:5px; padding:8px 10px; background:rgba(0,0,0,.3); border-top:1px solid rgba(255,255,255,.05); } #wt-chat-panel input { flex:1; min-width:0; background:transparent; border:none; color:#fff; font-size:13px; } #wt-chat-panel .wt-chat-send-btn { border:none; background:var(--theme-color,#d0ac67); color:#fff; padding:5px 12px; border-radius:6px; font-size:12px; cursor:pointer; font-weight:bold; } #wt-panel-overlay, #wt-chat-panel, #wt-top-btn-wrap, #wt-panel-overlay *, #wt-chat-panel * { box-sizing:border-box; } #wt-panel-overlay :focus-visible, #wt-chat-panel :focus-visible, #wt-top-btn:focus-visible { outline:2px solid var(--theme-color,#d0ac67); outline-offset:2px; } @media (max-width:500px) { #wt-chat-panel { width:220px; height:300px; left:10px; bottom:100px; max-height:calc(100% - 120px); } } </style> </head> <body> <!-- 保留 ID、data-bind、data-wt-*;静态文案可直接修改,接口值仅以文本填充。 --> <div id="watch-together-ui"> <div id="wt-dictionary" hidden> <span data-code="MEMBER_NAME">成员_{id}</span> <span data-code="USER_NAME">用户{id}</span> <span data-code="MEMBER">该成员</span> <span data-code="SELF">我</span> <span data-code="HOST">房主</span> <span data-code="MEMBER_GRANT">赋予了 {name} 控制权限</span> <span data-code="MEMBER_REVOKE">收回了 {name} 的控制权限</span> <span data-code="ALL_GRANT">开启了所有成员控制权限</span> <span data-code="ALL_REVOKE">收回了所有成员控制权限</span> <span data-code="ROOM_JOIN">加入了房间</span> <span data-code="HOST_INHERIT">自动继承了房主权限</span> <span data-code="PLAY">开始了播放</span> <span data-code="PAUSE">暂停了播放</span> <span data-code="SEEK">调整了播放进度至 {time}</span> <span data-code="SYNC_VIDEO">正在同步房主的最新视频</span> </div> <div id="wt-top-btn-wrap"> <button type="button" id="wt-top-btn" aria-label="打开一起看房间管理"> <svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" style="margin-right:5px;"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75"></path></svg>一起看 </button> </div> <div id="wt-panel-overlay"> <section class="wt-panel" role="dialog" aria-labelledby="wt-panel-title" tabindex="-1"> <header class="wt-panel-header"> <h3 id="wt-panel-title">一起看管理<span id="wt-total-rooms">共有 <span data-bind="totalRooms">0</span> 个房间正在观影</span></h3> <button type="button" class="wt-close-btn" id="wt-close-panel" aria-label="关闭房间管理">×</button> </header> <div data-wt-room-content></div> </section> </div> <template id="wt-lobby-template"> <div class="wt-panel-content"> <div class="wt-input-group"><label for="wt-nick-input" style="font-size:12px;color:#aaa;">我的昵称</label><input type="text" id="wt-nick-input" maxlength="10" placeholder="设置一个好听的名字"></div> <button type="button" class="wt-primary-btn" id="wt-create-room-btn" style="margin-top:15px;">创建私人房间</button> <div class="wt-input-group" style="margin-top:20px;border-top:1px dashed rgba(255,255,255,.1);padding-top:15px;"><input type="text" id="wt-room-id-input" maxlength="6" aria-label="房间号" placeholder="输入6位房间号"><button type="button" class="wt-secondary-btn" id="wt-join-room-btn">加入</button></div> </div> </template> <template id="wt-room-template"> <div class="wt-panel-content"> <div class="wt-room-info"> <div class="wt-room-line"><div>房间号:<b data-bind="roomId"></b></div><button type="button" class="wt-secondary-btn" id="wt-copy-id-btn">复制</button></div> <div class="wt-room-line"><span class="wt-share-url" data-bind="shareUrl"></span><button type="button" class="wt-secondary-btn" id="wt-copy-url-btn">复制链接</button></div> </div> <div class="wt-input-group" style="margin-bottom:15px;"><input type="text" id="wt-nick-update" maxlength="10" aria-label="我的昵称" placeholder="修改我的昵称"><button type="button" class="wt-secondary-btn" id="wt-save-nick-btn">保存</button></div> <div class="wt-control-all" data-wt-if="isHost"><span>允许所有成员控制视频</span><label class="wt-switch"><input type="checkbox" id="wt-allow-control" aria-label="允许所有成员控制视频"><span class="wt-slider"></span></label></div> <div style="margin-bottom:8px;font-size:12px;color:#aaa;">在线成员 (<span id="wt-member-count-dyn" data-bind="memberCount"></span>) <span class="wt-muted" data-wt-if="isHost">单人视频控制权限</span></div> <div class="wt-members-list" data-wt-members></div> <button type="button" class="wt-primary-btn" id="wt-leave-room-btn"><span data-wt-if="isHost">解散房间</span><span data-wt-if="isGuest">退出房间</span></button> </div> </template> <template id="wt-member-template"> <div class="wt-member-item"><span data-bind="nickname"></span><span class="wt-host-tag" data-wt-if="isHost">房主</span><span class="wt-member-time"><span data-bind="joinedTime"></span> <span data-wt-if="isHost">创建房间</span><span data-wt-if="isGuest">进入房间</span></span><span class="wt-muted" data-wt-if="isMe">(自己)</span><label class="wt-switch wt-switch-small" data-wt-if="canGrant"><input type="checkbox" class="wt-member-control-switch" data-wt-member-control aria-label="该成员的视频控制权限"><span class="wt-slider"></span></label><span class="wt-member-authorized" data-wt-if="authorized">已授权控制</span></div> </template> <section id="wt-chat-panel" aria-label="一起看聊天窗口"> <header class="wt-chat-header"><span>房间聊天</span><button type="button" class="wt-close-btn" id="wt-close-chat" aria-label="收起聊天窗口">×</button></header> <div class="wt-chat-messages" id="wt-chat-messages" role="log" aria-live="polite"></div> <div class="wt-chat-input-area"><input type="text" id="wt-chat-input" maxlength="500" aria-label="聊天消息" placeholder="按 Enter 或点击发送..." autocomplete="off"><button type="button" class="wt-chat-send-btn" id="wt-send-msg">发送</button></div> </section> <template id="wt-system-message-template"><div class="wt-sys-msg"><span data-bind="content"></span><time class="wt-sys-msg-time" data-bind="time"></time></div></template> <template id="wt-self-message-template"><div class="wt-chat-msg wt-chat-msg-self"><div class="wt-chat-msg-name"><time class="wt-chat-msg-time" data-bind="time"></time> 我 <span class="wt-chat-role" data-wt-if="isHost">(房主)</span></div><div class="wt-chat-msg-content" data-bind="content"></div></div></template> <template id="wt-other-message-template"><div class="wt-chat-msg wt-chat-msg-other"><div class="wt-chat-msg-name"><span data-bind="nickname"></span><span class="wt-chat-role" data-wt-if="isHost">(房主)</span><time class="wt-chat-msg-time" data-bind="time"></time></div><div class="wt-chat-msg-content" data-bind="content"></div></div></template> </div> </body> </html>
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>播放器设置</title> <style> #setting-panel button { padding:0; border:0; background:none; cursor:pointer; } #setting-panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(var(--panel-scale,1)); transform-origin: center; background: rgba(20,20,20,0.95); padding: 20px; border-radius: 16px; color: #fff; z-index: 999999; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 15px 50px rgba(0,0,0,0.9); pointer-events: auto; min-width: 0; max-width: calc(96vw / var(--panel-scale,1)); max-height: calc(85vh / var(--panel-scale,1)); overflow-y: auto; width: 320px; box-sizing: border-box; font-family: sans-serif; font-size: 14px; line-height: 1.3; } #setting-panel .panel-title { font-size: 18px; font-weight: bold; margin-bottom: 20px; color: var(--theme-color, #d0ac67); border-bottom: 1px solid #444; padding-bottom: 12px; text-align: center;} #setting-panel .setting-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); } #setting-panel .setting-item:last-of-type { border-bottom: none; } #setting-panel .setting-label { font-size: 15px; color: #eee; } #setting-panel .ratio-group { display: flex; gap: 5px; } #setting-panel .ratio-btn { background: rgba(255,255,255,0.1); padding: 6px 12px; border-radius: 6px; font-size: 13px; cursor: pointer; border: 1px solid transparent; transition: all 0.2s;} #setting-panel .ratio-btn.active { background: var(--theme-color, #d0ac67); border-color: #fff; font-weight: bold;} #setting-panel .input-group { display: flex; align-items: center; background: rgba(0,0,0,0.6); border: 1px solid #555; border-radius: 8px; overflow: hidden; } #setting-panel .input-btn { width: 35px; height: 32px; background: rgba(255,255,255,0.1); display: flex; justify-content: center; align-items: center; font-size: 20px; cursor: pointer; user-select: none; transition: background 0.2s;} #setting-panel .input-btn:active { background: var(--theme-color, #d0ac67); } #setting-panel .input-val { background: transparent; border: none; color: #fff; text-align: center; font-weight: bold; outline: none; } #setting-panel #quality-list-container { flex-wrap:wrap; gap:8px; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.1); width:100%; } #setting-panel *, #setting-panel *::before, #setting-panel *::after { box-sizing:border-box; } #setting-panel [hidden] { display:none !important; } #setting-panel button { font-family:inherit; color:inherit; line-height:1.3; } #setting-panel :focus-visible { outline:2px solid var(--theme-color, #d0ac67); outline-offset:2px; } #setting-panel .input-val:focus-visible { outline:none; } #setting-panel .input-group:focus-within { border-color:#aaa; } #setting-panel.video-info-open, #setting-panel[data-video-info-open] { width: 560px; } #setting-panel .video-info-button { width:100%; margin-top:16px; padding:10px; border:1px solid rgba(255,255,255,.2); border-radius:8px; color:var(--theme-color, #d0ac67); background:rgba(255,255,255,.06); } #setting-panel #video-info-view { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; column-gap:12px; } #setting-panel .video-info-header { grid-column:1; grid-row:1; display:flex; align-items:center; min-width:0; margin-bottom:12px; padding:8px 0; } #setting-panel .video-info-header h2 { margin:0; font-size:18px; color:var(--theme-color, #d0ac67); } #setting-panel .video-info-back { position:sticky; top:8px; z-index:2; grid-column:2; grid-row:1; align-self:start; margin-top:8px; background:rgba(20,20,20,0.98); } #setting-panel .video-info-note, #setting-panel [data-video-info-cors-warning], #setting-panel [data-video-info-dictionary], #setting-panel [data-info-content] { grid-column:1 / -1; } #setting-panel .video-info-note { color:#aaa; font-size:12px; line-height:1.6; } #setting-panel [data-video-info-cors-warning] { margin:0 0 12px; padding:12px; border:1px solid #ff8585; border-radius:8px; background:#3d1b1b; color:#ffb3b3; font-size:13px; line-height:1.7; } #setting-panel [data-video-info-cors-warning] strong { display:block; margin-bottom:4px; color:#ff8585; font-size:15px; } #setting-panel .video-info-list { margin:0; user-select:text; } #setting-panel .video-info-row { display:grid; grid-template-columns:minmax(100px, 32%) minmax(0, 1fr); gap:12px; padding:9px 0; border-bottom:1px solid rgba(255,255,255,.1); line-height:1.5; } #setting-panel .video-info-row dt { color:#aaa; } #setting-panel .video-info-row dd { margin:0; overflow-wrap:anywhere; white-space:pre-wrap; } #setting-panel .video-info-section { margin: 0; } #setting-panel .video-info-group { margin:18px 0 6px; color:var(--theme-color, #d0ac67); font-size:14px; } </style> </head> <body> <!-- data-* 为核心挂载点;标签、层级、类名、文案和样式均可自定义。 --> <div id="setting-panel" data-setting-root class="custom-panel" role="dialog" aria-label="播放器设置"> <div id="setting-dictionary" data-setting-dictionary hidden> <span data-code="TITLE">播放器</span> <span data-code="QUALITY_DEFAULT">默认</span> <span data-code="QUALITY_HEIGHT">{value}P</span> <span data-code="QUALITY_BITRATE">{value}Kbps</span> <span data-code="LIVE">直播</span> <span data-code="FPS">{fps}帧</span> <span data-code="CURRENT">当前</span> <span data-code="ONLINE">人在线</span> <span data-code="AD_CLOSE">关闭广告</span> <span data-code="AD_COUNTDOWN">%s秒后自动关闭</span> <span data-code="AD_DETAIL">查看详情</span> <span data-code="AD_CAN_CLOSE">%s秒后可关闭广告</span> </div> <div id="setting-controls" data-setting-controls> <div class="setting-item"><span class="setting-label">播放速度</span><div class="input-group"><button type="button" class="input-btn" data-setting-action="speed-decrease">-</button><input type="number" class="input-val" id="speed-input" data-setting-hook="speed-input" data-setting-field="speed" value="1.0" step="0.1" min="0.1" style="width:45px; height:32px; font-size:15px;"><button type="button" class="input-btn" data-setting-action="speed-increase">+</button></div></div> <div class="setting-item"><span class="setting-label">画面比例</span><div class="ratio-group" data-setting-group="ratio"><button type="button" class="ratio-btn active" data-setting-action="ratio" data-setting-value="default">默认</button><button type="button" class="ratio-btn" data-setting-action="ratio" data-setting-value="4:3">4:3</button><button type="button" class="ratio-btn" data-setting-action="ratio" data-setting-value="16:9">16:9</button><button type="button" class="ratio-btn" data-setting-action="ratio" data-setting-value="fill">铺满</button></div></div> <div class="setting-item"><span class="setting-label">画面旋转</span><div class="ratio-group" data-setting-group="rotate"><button type="button" class="ratio-btn active" data-setting-action="rotate" data-setting-value="0">0°</button><button type="button" class="ratio-btn" data-setting-action="rotate" data-setting-value="90">90°</button><button type="button" class="ratio-btn" data-setting-action="rotate" data-setting-value="180">180°</button><button type="button" class="ratio-btn" data-setting-action="rotate" data-setting-value="270">270°</button></div></div> <div class="setting-item" id="quality-item" style="display:flex; align-items: center;"> <div style="display:flex; flex-direction:column; justify-content:center;"> <span class="setting-label">画质切换</span> <span style="font-size:11px; color:#aaa; margin-top:3px;">播放卡顿/加载慢可尝试降低画质</span> </div> <div class="input-group"> <button type="button" class="input-btn" data-setting-action="quality-decrease">-</button> <input type="text" class="input-val" id="quality-val" data-setting-hook="quality-val" value="自动" readonly data-setting-action="quality-toggle" style="width:55px; height:32px; font-size:13px; text-align:center; cursor:pointer;"> <button type="button" class="input-btn" data-setting-action="quality-increase">+</button> </div> </div> <div id="quality-list-container" data-setting-hook="quality-list-container" data-setting-display="flex" style="display:none;"></div> <div class="setting-item player-skip-setting" data-setting-skip><span class="setting-label">跳过片头 (秒)</span><div class="input-group"><button type="button" class="input-btn" data-setting-action="skip-intro-decrease">-</button><input type="number" class="input-val" id="skip-intro" data-setting-hook="skip-intro" data-setting-field="skip-intro" value="0" style="width:45px; height:32px; font-size:15px;"><button type="button" class="input-btn" data-setting-action="skip-intro-increase">+</button></div></div> <div class="setting-item player-skip-setting" data-setting-skip><span class="setting-label">跳过片尾 (秒)</span><div class="input-group"><button type="button" class="input-btn" data-setting-action="skip-outro-decrease">-</button><input type="number" class="input-val" id="skip-outro" data-setting-hook="skip-outro" data-setting-field="skip-outro" value="0" style="width:45px; height:32px; font-size:15px;"><button type="button" class="input-btn" data-setting-action="skip-outro-increase">+</button></div></div> <button type="button" class="video-info-button" id="video-info-button" data-video-info-action="open" aria-controls="video-info-view">视频信息</button> </div> <section id="video-info-view" data-video-info-view aria-labelledby="video-info-title" hidden> <div class="video-info-header"> <h2 id="video-info-title" data-video-info-title tabindex="-1">视频信息</h2> </div> <button type="button" class="ratio-btn video-info-back" id="video-info-back" data-video-info-action="back">返回</button> <div data-video-info-cors-warning role="status" aria-live="polite" hidden> <strong>该视频跨域读取受限(疑似 CORS 限制)</strong> 视频可原生播放,但浏览器未能读取跨域媒体数据,无法获取真实下载网速或按播放器设置控制前向缓冲,部分功能无法在该视频上起到作用!也可能是防盗链或其他访问策略限制。 </div> <p class="video-info-note" data-video-info-note>每秒刷新,仅读取当前播放数据,不额外下载视频。未提供的参数显示“未提供 / 暂不可用”;估算帧率、分片码率和网络带宽不等同于源视频参数。浏览器通常不公开实际硬解 / 软解结果。播放地址可能含临时凭证,分享截图前请遮挡。</p> <div id="video-info-dictionary" data-video-info-dictionary hidden> <span data-info-text="missing">未提供 / 暂不可用</span> <span data-info-text="hidden">内容已默认隐藏,需要显示时可在后台设置模板中找到当前位置改变显示/隐藏状态</span> <span data-info-text="not_ready">播放器尚未就绪</span> <span data-info-text="libmedia_loading">libmedia 解码器初始化中</span> <span data-info-text="libmedia_analyzing">libmedia 正在分析媒体信息</span> <span data-info-text="live">直播</span> <span data-info-text="vod">点播或未标记直播</span> <span data-info-text="no_audio">无音轨</span> <span data-info-text="paused">已暂停</span> <span data-info-text="seeking">定位中</span> <span data-info-text="ended">已结束</span> <span data-info-text="playing">播放中</span> <span data-info-text="buffering">缓冲中</span> <span data-info-text="error">错误</span> <span data-info-text="no_ranges">无</span> <span data-info-text="quality_unknown">尚未确定</span> <span data-info-text="audio_default">默认或内嵌音轨</span> <span data-info-text="auto">自动</span> <span data-info-text="manual">手动</span> <span data-info-text="fps_wall_suffix"> fps(按墙钟时间估算,受倍速/丢帧影响)</span> <span data-info-text="fps_media_suffix"> fps(呈现帧 / 媒体时间,非标称帧率)</span> <span data-info-text="raw_parameters">(编码参数原值)</span> <span data-info-text="fragment_note">(含封装,不是纯视频码率)</span> <span data-info-text="browser_native_decode">浏览器原生媒体解码;硬解或软解由浏览器决定,页面不可确认</span> <span data-info-text="browser_mse_decode">浏览器 MediaSource / MSE 解码;硬解或软解由浏览器决定,页面不可确认</span> <span data-info-text="libmedia_mse_decode">libmedia / MediaSource 解码;硬解或软解由浏览器决定,页面不可确认</span> <span data-info-text="libmedia_wasm_decode">libmedia / WASM 软件解码(已禁用 WebCodecs)</span> <span data-info-text="libmedia_webcodecs_decode">libmedia / WebCodecs 优先,失败回退 WASM;库未公开当前实际解码器</span> <span data-info-text="codec_h264">H.264 / AVC</span> <span data-info-text="codec_h265">H.265 / HEVC</span> <span data-info-text="codec_av1">AV1</span> <span data-info-text="codec_vp9">VP9</span> <span data-info-text="codec_vp8">VP8</span> <span data-info-text="codec_aac_lc">AAC-LC</span> <span data-info-text="codec_he_aac">HE-AAC</span> <span data-info-text="codec_ac3">AC-3</span> <span data-info-text="codec_eac3">E-AC-3</span> <span data-info-text="codec_id_prefix">Codec ID </span> <span data-info-text="profile_avc_66">Baseline</span> <span data-info-text="profile_avc_77">Main</span> <span data-info-text="profile_avc_88">Extended</span> <span data-info-text="profile_avc_100">High</span> <span data-info-text="profile_avc_110">High 10</span> <span data-info-text="profile_avc_122">High 4:2:2</span> <span data-info-text="profile_avc_244">High 4:4:4</span> <span data-info-text="profile_hevc_1">Main</span> <span data-info-text="profile_hevc_2">Main 10</span> <span data-info-text="profile_hevc_3">Main Still Picture</span> <span data-info-text="ready_0">0 / 尚无数据</span> <span data-info-text="ready_1">1 / 元数据就绪</span> <span data-info-text="ready_2">2 / 当前帧就绪</span> <span data-info-text="ready_3">3 / 可继续播放</span> <span data-info-text="ready_4">4 / 数据充足</span> <span data-info-text="network_0">0 / 未初始化</span> <span data-info-text="network_1">1 / 空闲</span> <span data-info-text="network_2">2 / 加载中</span> <span data-info-text="network_3">3 / 无可用源</span> <span data-info-text="unit_mbps"> Mbps</span> <span data-info-text="unit_kbps"> kbps</span> <span data-info-text="unit_s">s</span> <span data-info-text="unit_fps"> fps</span> <span data-info-text="unit_hz"> Hz</span> <span data-info-text="unit_bit"> bit</span> <span data-info-text="unit_percent">%</span> <span data-info-text="unit_times">×</span> <span data-info-text="unit_speed"> KB/s</span> <span data-info-text="dimension_separator"> × </span> <span data-info-text="range_separator"> – </span> <span data-info-text="item_separator">;</span> <span data-info-text="value_separator"> / </span> <span data-info-text="error_separator">:</span> <span data-info-text="ratio_separator">:</span> <span data-info-text="value_suffix_left"> (</span> <span data-info-text="value_suffix_right">)</span> <span data-info-text="css_px_suffix"> CSS px</span> <span data-info-text="default_route">默认</span> <span data-info-text="native_media">原生媒体</span> <span data-info-text="live_suffix"> / 直播</span> <span data-info-text="vod_suffix"> / 点播或未标记直播</span> <span data-info-text="infinite">无限 / 直播</span> <span data-info-text="yes">是</span> <span data-info-text="no">否</span> <span data-info-text="auto_suffix">(自动)</span> <span data-info-text="manual_suffix">(手动)</span> <span data-info-text="engine_libmedia">libmedia AVPlayer</span> <span data-info-text="engine_hls">HLS.js</span> <span data-info-text="engine_flv">flv.js</span> <span data-info-text="engine_mpegts">mpegts.js</span> <span data-info-text="engine_native">HTMLMediaElement(原生)</span> <span data-info-text="output_libmedia_video">libmedia HTMLVideoElement</span> <span data-info-text="output_libmedia_canvas">libmedia Canvas</span> <span data-info-text="output_video">HTMLVideoElement</span> <span data-info-text="output_proxy">自有代理 / Canvas(不代表软件解码)</span> </div> <div id="video-info-content" data-info-content> <section class="video-info-section" data-info-section="playback"> <h3 class="video-info-group" data-info-section-title>播放与解码</h3> <dl class="video-info-list" data-info-list> <div class="video-info-row" data-info-row="title"><dt>视频标题</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="route"><dt>当前线路</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="media_type"><dt>媒体类型</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="engine"><dt>播放引擎</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="decoding"><dt>解码方式</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="output"><dt>画面输出</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="state"><dt>播放状态</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="progress"><dt>进度 / 时长</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="rate"><dt>播放倍速</dt><dd data-info-value></dd></div> </dl> </section> <section class="video-info-section" data-info-section="video"> <h3 class="video-info-group" data-info-section-title>视频参数</h3> <dl class="video-info-list" data-info-list> <div class="video-info-row" data-info-row="actual_resolution"><dt>实际分辨率</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="declared_resolution"><dt>流声明分辨率</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="player_size"><dt>播放器尺寸</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="video_codec"><dt>视频编码</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="source_fps"><dt>源帧率(流声明)</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="media_fps"><dt>媒体帧率(估算)</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="render_fps"><dt>实时呈现帧率(估算)</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="level_bitrate"><dt>档位码率(清单声明)</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="video_bitrate"><dt>视频码率(元数据)</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="profile_level"><dt>Profile / Level</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="bit_depth_chroma"><dt>位深 / 色度采样</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="dynamic_range"><dt>动态范围(清单声明)</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="pixel_aspect"><dt>像素宽高比</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="frames"><dt>总帧数 / 丢帧数</dt><dd data-info-value></dd></div> </dl> </section> <section class="video-info-section" data-info-section="audio"> <h3 class="video-info-group" data-info-section-title>音频参数</h3> <dl class="video-info-list" data-info-list> <div class="video-info-row" data-info-row="audio_codec"><dt>音频编码</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="sample_rate"><dt>采样率</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="channels"><dt>声道数</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="audio_bitrate"><dt>音频码率(元数据)</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="volume_mute"><dt>音量 / 静音</dt><dd data-info-value></dd></div> </dl> </section> <section class="video-info-section" data-info-section="diagnostic"> <h3 class="video-info-group" data-info-section-title>缓冲与诊断</h3> <dl class="video-info-list" data-info-list> <div class="video-info-row" data-info-row="buffer_ahead"><dt>前向缓冲</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="buffered_ranges"><dt>已缓冲区间</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="seekable_ranges"><dt>可寻址区间</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="ready_state"><dt>媒体就绪状态</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="network_state"><dt>网络状态</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="quality_level"><dt>画质档位</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="audio_track"><dt>音轨</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="estimated_bandwidth"><dt>网络带宽(引擎估算)</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="fragment_bitrate"><dt>当前分片码率(下载字节估算)</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="download_speed"><dt>下载速度(引擎统计)</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="decode_render_fps"><dt>实时解码 / 呈现帧率(库统计)</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="video_decode_errors"><dt>视频解码错误包数</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="audio_decode_errors"><dt>音频解码错误包数</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="color"><dt>色彩原色 / 传递 / 矩阵 / 范围</dt><dd data-info-value></dd></div> </dl> </section> <section class="video-info-section" data-info-section="address"> <h3 class="video-info-group" data-info-section-title>地址与环境</h3> <dl class="video-info-list" data-info-list> <!-- 播放源地址:data-info-visible="0" 隐藏,"1" 显示;隐藏提示在 data-info-text="hidden"。 --> <div class="video-info-row" data-info-row="play_source" data-info-visible="0"><dt>播放源地址</dt><dd data-info-value></dd></div> <!-- 媒体元素地址:data-info-visible="0" 隐藏,"1" 显示;隐藏提示在 data-info-text="hidden"。 --> <div class="video-info-row" data-info-row="element_source" data-info-visible="0"><dt>媒体元素地址</dt><dd data-info-value></dd></div> <div class="video-info-row" data-info-row="browser"><dt>浏览器</dt><dd data-info-value></dd></div> </dl> </section> </div> </section> <template id="quality-loading-template" data-setting-template="quality-loading"><span>正在切换 <span data-bind="name"></span>画质中...</span></template> <template id="quality-item-template" data-setting-template="quality-item"><button type="button" class="ratio-btn" data-bind="name"></button></template> </div> </body> </html>
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>线路选择</title> <style> #route-panel button { padding:0; border:0; background:none; cursor:pointer; } #route-panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(var(--panel-scale,1)); transform-origin: center; background: rgba(20,20,20,0.95); padding: 20px; border-radius: 16px; color: #fff; z-index: 999999; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 15px 50px rgba(0,0,0,0.9); pointer-events: auto; min-width: 0; max-width: calc(96vw / var(--panel-scale,1)); max-height: calc(85vh / var(--panel-scale,1)); overflow-y: auto; width: 320px; box-sizing: border-box; font-family: sans-serif; font-size: 14px; line-height: 1.3; } #route-panel .panel-title { font-size: 18px; font-weight: bold; margin-bottom: 20px; color: var(--theme-color, #d0ac67); border-bottom: 1px solid #444; padding-bottom: 12px; text-align: center;} #route-panel .route-item { padding: 15px; margin-bottom: 10px; background: rgba(255,255,255,0.08); border-radius: 8px; cursor: pointer; font-size: 16px; text-align: center; transition: background 0.2s;} #route-panel .route-item:hover { background: rgba(255,255,255,0.2); } #route-panel .route-item { width:100%; color:inherit; } #route-panel .route-item.active { background:var(--theme-color, #d0ac67); font-weight:bold; } #route-panel *, #route-panel *::before, #route-panel *::after { box-sizing:border-box; } #route-panel [hidden] { display:none !important; } #route-panel button { font-family:inherit; color:inherit; line-height:1.3; } #route-panel :focus-visible { outline:2px solid var(--theme-color, #d0ac67); outline-offset:2px; } </style> </head> <body> <div id="route-panel" class="custom-panel" role="dialog" aria-label="线路选择"> <div class="panel-title">当前线路:<span id="current-route-text" style="color:var(--theme-color);"></span></div> <div id="route-dictionary" hidden><span data-code="DEFAULT">默认</span></div> <div id="route-list"></div> <template id="route-item-template"><button type="button" class="route-item" data-bind="name"></button></template> </div> </body> </html>
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>视频选集</title> <style> #episode-panel button { padding:0; border:0; background:none; cursor:pointer; } #episode-panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(var(--panel-scale,1)); transform-origin: center; background: rgba(20,20,20,0.95); padding: 20px; border-radius: 16px; color: #fff; z-index: 999999; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 15px 50px rgba(0,0,0,0.9); pointer-events: auto; min-width: 0; max-width: calc(96vw / var(--panel-scale,1)); max-height: calc(85vh / var(--panel-scale,1)); overflow-y: auto; width: 520px; box-sizing: border-box; font-family: sans-serif; font-size: 14px; line-height: 1.3; } #episode-panel .panel-title { font-size: 18px; font-weight: bold; margin-bottom: 20px; color: var(--theme-color, #d0ac67); border-bottom: 1px solid #444; padding-bottom: 12px; text-align: center;} #episode-panel .episode-panel-inner { display: flex; flex-direction: column; gap: 15px; height: 100%; max-height: 60vh; overflow: hidden;} #episode-panel .episode-tabs { position: relative; display: flex; gap: 10px; overflow-x: auto; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; flex-shrink: 0; scrollbar-width: none;} #episode-panel .episode-tab { background: rgba(255,255,255,0.08); padding: 8px 15px; border-radius: 6px; cursor: pointer; white-space: nowrap; font-size: 14px; transition: 0.2s;} #episode-panel .episode-tab.active { background: rgba(255,255,255,0.2); color: var(--theme-color, #d0ac67); font-weight: bold;} #episode-panel .episode-vod-name { font-size: 16px; font-weight: bold; color: #eee; text-align: center; flex-shrink: 0; margin-bottom: 5px;} #episode-panel .episode-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; overflow-y: auto; padding-right: 5px; scrollbar-width: thin;} #episode-panel .episode-btn { display: flex; justify-content: center; align-items: center; height: 44px; padding: 0 10px; background: rgba(255,255,255,0.15); border-radius: 8px; cursor: pointer; font-size: 15px; color: #eee; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: 0.2s; border: 1px solid transparent; } #episode-panel .episode-btn:hover { background: rgba(255,255,255,0.25); } #episode-panel .episode-btn.active { background: var(--theme-color, #d0ac67); border-color: var(--theme-color, #d0ac67); color: #fff; font-weight: bold;} #episode-panel .live-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } #episode-panel .live-channel-btn { height: auto; min-height: 68px; flex-direction: column; align-items: flex-start; text-align: left; gap: 5px; padding: 8px 10px; white-space: normal; } #episode-panel .live-channel-name { display: block; width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; } #episode-panel .live-channel-meta { display: block; width: 100%; white-space: normal; overflow-wrap: anywhere; font-size: 11px; line-height: 1.35; color: rgba(255,255,255,0.65); font-weight: normal; } #episode-panel .live-channel-btn.active .live-channel-meta { color: rgba(255,255,255,0.9); } #episode-panel .live-quality-box { display: flex; align-items: center; gap: 10px; flex-shrink: 0; } #episode-panel .live-quality-label { color: #aaa; font-size: 12px; white-space: nowrap; } #episode-panel .live-quality-list { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; } #episode-panel .episode-empty { text-align: center; color: #888; padding: 20px; } #episode-panel .ratio-btn { background: rgba(255,255,255,0.1); padding: 6px 12px; border-radius: 6px; font-size: 13px; cursor: pointer; border: 1px solid transparent; transition: all 0.2s;} #episode-panel .ratio-btn.active { background: var(--theme-color, #d0ac67); border-color: #fff; font-weight: bold;} #episode-panel .episode-panel-inner { max-height:calc(65vh / var(--panel-scale,1)); min-height:0; } #episode-panel:not(.episode-panel-ready) .episode-panel-inner { visibility:hidden; } #episode-panel .episode-content-shell { min-height:0; } #episode-panel .live-channel-meta:empty { display:none; } #episode-panel *, #episode-panel *::before, #episode-panel *::after { box-sizing:border-box; } #episode-panel [hidden] { display:none !important; } #episode-panel button { font-family:inherit; color:inherit; line-height:1.3; } #episode-panel :focus-visible { outline:2px solid var(--theme-color, #d0ac67); outline-offset:2px; } @font-face { font-family:player-episode-settings; src:url({episode-font-url}) format('woff2'); font-style:normal; font-weight:400; } #episode-panel.episode-bridge-enabled .episode-bridge-header { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:8px; margin-bottom:10px; min-height:32px; } #episode-panel.episode-bridge-enabled .episode-bridge-header #episode-panel-title { grid-column:2; grid-row:1; margin:0 !important; padding:0 !important; text-align:center; } #episode-panel .episode-bridge-header > button { grid-column:3; grid-row:1; justify-self:end; white-space:nowrap; } #episode-panel .episode-bridge-help-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:7px 9px; border:1px solid rgba(255,255,255,.2); border-radius:9px; background:rgba(255,255,255,.06); color:var(--theme-color,#d0ac67); font-size:12px; line-height:1.5; cursor:pointer; } #episode-panel .episode-bridge-settings-icon { display:block; font-family:player-episode-settings; font-style:normal; font-weight:400; font-size:18px; line-height:1; } #episode-panel .episode-bridge-help-empty { display:flex; flex-direction:column; margin:16px auto 0; padding:12px 18px; } #episode-panel .episode-bridge-help-empty .episode-bridge-settings-icon { font-size:30px; } #episode-panel:not(.episode-bridge-enabled) [data-episode-bridge-help] { display:none; } #episode-bridge-help-panel { position:absolute; inset:0; z-index:1000000; display:none; align-items:center; justify-content:center; padding:14px; box-sizing:border-box; background:rgba(0,0,0,.58); pointer-events:auto; } #episode-bridge-help-panel section { display:flex; flex-direction:column; width:min(860px,100%); height:90%; max-height:100%; overflow:hidden; border-radius:16px; background:#fff; color:#1e293b; box-shadow:0 16px 60px rgba(0,0,0,.4); } #episode-bridge-help-panel header { display:flex; align-items:center; gap:12px; padding:12px 18px; border-bottom:1px solid #e2e8f0; } #episode-bridge-help-panel strong { flex:1; font-size:16px; } #episode-bridge-help-panel button { border:0; border-radius:8px; padding:4px 12px; background:#f1f5f9; color:#475569; font-size:24px; cursor:pointer; } #episode-bridge-help-panel iframe { flex:1; width:100%; min-height:0; border:0; background:#fff; } #episode-bridge-help-panel :focus-visible { outline:2px solid var(--theme-color,#d0ac67); outline-offset:2px; } </style> </head> <body> <div id="episode-panel" class="custom-panel" role="dialog" aria-label="视频选集" style="padding: 15px 20px;"> <div id="episode-dictionary" hidden> <span data-code="GROUP_LIVE">分组{index}</span> <span data-code="GROUP_VOD">资源{index}</span> <span data-code="UNIT_LIVE">个</span> <span data-code="UNIT_VOD">集</span> <span data-code="LATEST">最新剧集</span> <span data-code="LIVE_TITLE">直播频道</span> </div> <div class="episode-bridge-header"> <div class="panel-title" id="episode-panel-title" data-vod-title="视频选集" data-live-title="直播频道" style="margin-bottom: 10px; border:none; padding-bottom:5px;">视频选集</div> <button type="button" class="episode-bridge-help-button" data-episode-bridge-help aria-label="前端选集对接详细说明"><span>对接</span><i class="episode-bridge-settings-icon" aria-hidden="true">&#xe716;</i></button> </div> <div id="episode-content" class="episode-content-shell"><div class="episode-empty">正在加载剧集信息...</div></div> <template id="episode-layout-template"> <div class="episode-panel-inner"> <div class="episode-tabs" data-episode-tabs></div> <div class="episode-vod-name" data-bind="name"></div> <div class="live-quality-box" data-live-quality hidden><span class="live-quality-label">当前频道画质</span><div class="live-quality-list" data-live-quality-list></div></div> <div class="episode-grid" data-episode-grid></div> </div> </template> <template id="episode-tab-template"><button type="button" class="episode-tab"><span data-bind="name"></span>(共<span data-bind="count"></span><span data-bind="unit"></span>)</button></template> <template id="episode-item-template"><button type="button" class="episode-btn" data-bind="name" data-bind-title="title"></button></template> <template id="live-channel-template"><button type="button" class="episode-btn live-channel-btn" data-bind-title="title"><span class="live-channel-name" data-bind="name"></span><span class="live-channel-meta" data-bind="meta"></span></button></template> <template id="live-quality-template"><button type="button" class="ratio-btn" data-bind="name"></button></template> <template id="episode-swipe-next-template"><span>下一集 · <span data-bind="name"></span></span></template> <template id="episode-swipe-prev-template"><span>上一集 · <span data-bind="name"></span></span></template> <template id="episode-swipe-last-template"><span>已经是最后一集了</span></template> <template id="episode-swipe-first-template"><span>已经是第一集了</span></template> <template id="episode-loading-template"><div class="episode-empty" role="status">正在加载选集/频道信息...</div></template> <template id="episode-empty-template"><div class="episode-empty">未查询到该视频的总集数<button type="button" class="episode-bridge-help-button episode-bridge-help-empty" data-episode-bridge-help aria-label="前端选集对接详细说明"><span>对接</span><i class="episode-bridge-settings-icon" aria-hidden="true">&#xe716;</i></button></div></template> <template id="episode-failed-template"><div class="episode-empty">数据查询失败,请检查数据库配置或网络状态</div></template> <template id="episode-bridge-help-template"> <div id="episode-bridge-help-panel" class="custom-panel"> <section role="dialog" aria-modal="true" aria-labelledby="episode-bridge-help-title"> <header><strong id="episode-bridge-help-title">前端选集对接</strong><button type="button" data-episode-bridge-close aria-label="关闭对接说明">×</button></header> <iframe title="前端选集对接详细说明"></iframe> </section> </div> </template> </div> </body> </html>
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>投屏</title> <style> #cast-panel button { padding:0; border:0; background:none; cursor:pointer; } #cast-panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(var(--panel-scale,1)); transform-origin: center; background: rgba(20,20,20,0.95); padding: 20px; border-radius: 16px; color: #fff; z-index: 999999; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 15px 50px rgba(0,0,0,0.9); pointer-events: auto; min-width: 0; max-width: calc(96vw / var(--panel-scale,1)); max-height: calc(85vh / var(--panel-scale,1)); overflow-y: auto; width: 360px; box-sizing: border-box; font-family: sans-serif; font-size: 14px; line-height: 1.3; } #cast-panel .panel-title { font-size: 18px; font-weight: bold; margin-bottom: 20px; color: var(--theme-color, #d0ac67); border-bottom: 1px solid #444; padding-bottom: 12px; text-align: center;} #cast-panel .route-item { padding: 15px; margin-bottom: 10px; background: rgba(255,255,255,0.08); border-radius: 8px; cursor: pointer; font-size: 16px; text-align: center; transition: background 0.2s;} #cast-panel .route-item:hover { background: rgba(255,255,255,0.2); } #cast-panel .panel-solid-btn { background-color:#d0ac6799; background-color: {theme}99; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 6px; margin: 0; padding: 5px 10px; color: #fff; font-size: 13px; font-weight: bold; box-shadow: 0 3px 8px rgba(0,0,0,0.6); white-space: nowrap; transition: all 0.1s ease; line-height: 1; display: inline-block; cursor: pointer; font-style: normal;} #cast-panel .panel-solid-btn:active { background-color: var(--theme-color, #d0ac67); transform: scale(0.92); } #cast-panel *, #cast-panel *::before, #cast-panel *::after { box-sizing:border-box; } #cast-panel [hidden] { display:none !important; } #cast-panel button { font-family:inherit; color:inherit; line-height:1.3; } #cast-panel :focus-visible { outline:2px solid var(--theme-color, #d0ac67); outline-offset:2px; } </style> </head> <body> <div id="cast-panel" class="custom-panel" role="dialog" aria-label="投屏" style="text-align: center; padding: 20px;"> <div class="panel-title" style="margin-bottom: 15px;">投屏</div> <div id="cast-searching" style="display: none;"></div> <div id="cast-device-list" style="margin: 15px 0;"> <button type="button" class="route-item" onclick="window.triggerNativeCast(event)" style="width: 100%; padding: 15px; border: 1px solid var(--theme-color); color: var(--theme-color); font-weight: bold;">浏览器原生投屏 / AirPlay</button> <button type="button" class="route-item" onclick="window.triggerChromecast(event)" style="width: 100%; padding: 15px; border: 1px solid var(--theme-color); color: var(--theme-color); font-weight: bold; margin-bottom: 0;">Chromecast 投屏</button> <div id="cast-chromecast-status" role="status" style="margin-top: 10px; font-size: 12px; color: #bbb;"> <span data-cast-state="initial">点击 Chromecast 后由 Google Cast 搜索设备,需要连接 Google 服务。</span> <span data-cast-state="failed" hidden>Chromecast 连接失败,请检查浏览器、网络和设备。</span> <span data-cast-state="connected" hidden>Chromecast 已连接。</span> <span data-cast-state="connecting" hidden>Chromecast 正在连接。</span> <span data-cast-state="available" hidden>已发现可用的 Chromecast 设备。</span> <span data-cast-state="unavailable" hidden>未发现 Chromecast 设备,可使用浏览器原生投屏。</span> </div> </div> <div style="background: rgba(255,255,255,0.05); padding: 12px; border-radius: 8px; text-align: left; font-size: 12px; color: #bbb; line-height: 1.8; margin-top: 15px;"> <b style="color: #fff; display: block; margin-bottom: 4px;">投屏设备不可用?请尝试以下操作:</b> 1. 确保设备处于同一 WiFi 网络,并确认电视端已开启对应的接收功能。<br> 2. Chromecast 需浏览器支持 Google Cast 且能访问 Google 服务;AirPlay 需设备支持。<br> 3. 视频地址需可由电视直接访问;需要登录、特定请求头或浏览器解码的视频可能无法投屏。<br> 4. 无法使用 Chromecast 时,可以尝试浏览器原生投屏。 </div> <div style="margin-top: 18px;"> <button type="button" class="panel-solid-btn" onclick="window.refreshCastDevices(event)" style="padding: 8px 20px !important; border-radius: 20px !important;">刷新投屏状态</button> </div> </div> </body> </html>
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>弹幕设置</title> <style> #player-dm-panel-wrapper { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%) scale(var(--panel-scale,1)); transform-origin:center; width:320px; max-width:calc(96vw / var(--panel-scale,1)); max-height:calc(80vh / var(--panel-scale,1)); z-index:999999; pointer-events:auto; padding:0; color:#eee; font:12px/1.3 Arial, Helvetica, sans-serif; } #player-dm-panel-wrapper, #player-dm-panel-wrapper * { box-sizing:border-box; } #player-dm-panel-wrapper button { border:0; padding:0; background:none; color:inherit; font:inherit; text-align:inherit; } #player-dm-panel-wrapper .dm-setting-config-panel-inner::-webkit-scrollbar { width: 4px; } #player-dm-panel-wrapper .dm-setting-config-panel-inner::-webkit-scrollbar-thumb { background-color: var(--theme-color, #d0ac67); border-radius: 2px; } #player-dm-panel-wrapper .dm-setting-config-mode, #player-dm-panel-wrapper .dm-setting-config-other, #player-dm-panel-wrapper .dm-setting-config-slider { border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 15px; margin-bottom: 15px; } #player-dm-panel-wrapper .dm-setting-config-slider:last-child { border-bottom: none; margin-bottom: 0px; padding-bottom: 0px; } #player-dm-panel-wrapper .dm-setting-check-on path { fill: var(--theme-color, #d0ac67); } #player-dm-panel-wrapper .dm-setting-config-panel-inner { scrollbar-width: thin; background: rgba(20, 20, 20, 0.95); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: rgba(0, 0, 0, 0.9) 0px 15px 50px; backdrop-filter: blur(15px); padding: 18px; width: 320px; max-width: 100%; height: auto; min-height: 0px; max-height: calc(75vh / var(--panel-scale,1)); box-sizing: border-box; overflow-y: auto; color: rgb(238, 238, 238); } #player-dm-panel-wrapper .dm-setting-icon { cursor: pointer; opacity: 0.75; transition: 0.2s; fill: rgb(255, 255, 255); } #player-dm-panel-wrapper .dm-setting-icon:hover { opacity: 1; } #player-dm-panel-wrapper .dm-setting-modes { display: flex; align-items: center; margin-top: 5px; gap: 20px; } #player-dm-panel-wrapper .dm-setting-modes .dm-setting-mode { cursor: pointer; text-align: center; } #player-dm-panel-wrapper .dm-setting-modes .dm-setting-mode:hover { color: var(--theme-color, #d0ac67); } #player-dm-panel-wrapper .dm-setting-config-slider { display: flex; align-items: center; gap: 12px; } #player-dm-panel-wrapper .dm-setting-config-slider .dm-setting-value { width: 32px; text-align: right; } #player-dm-panel-wrapper .dm-setting-slider { position: relative; flex: 1 1 0%; display: flex; height: 20px; align-items: center; justify-content: center; cursor: pointer; } #player-dm-panel-wrapper .dm-setting-slider .dm-setting-slider-steps { display: flex; align-items: center; justify-content: space-between; position: absolute; bottom: -12px; width: calc(100% + 32px); color: rgb(119, 119, 119); } #player-dm-panel-wrapper .dm-setting-slider .dm-setting-slider-steps .dm-setting-slider-step { flex-shrink: 0; width: 36px; text-align: center; scale: 0.95; } #player-dm-panel-wrapper .dm-setting-config-other { display: flex; align-items: center; gap: 20px; } #player-dm-panel-wrapper .dm-setting-config-other .dm-setting-check-off, #player-dm-panel-wrapper .dm-setting-config-other .dm-setting-check-on { width: 16px; height: 16px; } #player-dm-panel-wrapper .dm-setting-config-other .dm-setting-other { display: flex; align-items: center; cursor: pointer; gap: 2px; } #player-dm-panel-wrapper .dm-setting-config-other .dm-setting-other:hover { color: var(--theme-color, #d0ac67); } #player-dm-panel-wrapper .dm-setting-mode svg { display:block; } #player-dm-panel-wrapper [data-dm-mode].active [class$="-off"], #player-dm-panel-wrapper [data-dm-mode]:not(.active) [class$="-on"], #player-dm-panel-wrapper [data-dm-action].active .dm-setting-check-off, #player-dm-panel-wrapper [data-dm-action]:not(.active) .dm-setting-check-on { display:none; } #player-dm-panel-wrapper [class$="-off"] path, #player-dm-panel-wrapper .dm-setting-check-on path { fill:var(--theme-color, #d0ac67); } #player-dm-panel-wrapper .dm-setting-config-slider label { flex-shrink:0; } #player-dm-panel-wrapper .dm-setting-slider { min-width:0; } #player-dm-panel-wrapper .dm-setting-slider input { -webkit-appearance:none; appearance:none; width:100%; min-width:0; height:20px; margin:0; padding:0; background:transparent; cursor:pointer; } #player-dm-panel-wrapper .dm-setting-slider input::-webkit-slider-runnable-track { height:2px; border-radius:3px; background:linear-gradient(to right,var(--theme-color, #d0ac67) var(--dm-range-percent,0%),rgba(255,255,255,.25) var(--dm-range-percent,0%)); } #player-dm-panel-wrapper .dm-setting-slider input::-webkit-slider-thumb { -webkit-appearance:none; width:12px; height:12px; margin-top:-5px; border:0; border-radius:50%; background:var(--theme-color, #d0ac67); } #player-dm-panel-wrapper .dm-setting-slider input::-moz-range-track { height:2px; border-radius:3px; background:rgba(255,255,255,.25); } #player-dm-panel-wrapper .dm-setting-slider input::-moz-range-progress { height:2px; background:var(--theme-color, #d0ac67); } #player-dm-panel-wrapper .dm-setting-slider input::-moz-range-thumb { width:12px; height:12px; border:0; border-radius:50%; background:var(--theme-color, #d0ac67); } #player-dm-panel-wrapper .dm-setting-slider-steps { pointer-events:none; } #player-dm-panel-wrapper .dm-setting-slider-steps:empty { display:none; } #player-dm-panel-wrapper :focus-visible { outline:2px solid var(--theme-color, #d0ac67); outline-offset:2px; } </style> </head> <body> <section id="player-dm-panel-wrapper" role="dialog" aria-label="弹幕设置"> <div id="danmaku-dictionary" hidden><span data-code="READY">🔥有 {count} 条弹幕列队来袭~做好准备吧!🔥</span></div> <div class="dm-setting-config-panel-inner"> <div class="dm-setting-config-mode"> 按类型屏蔽 <div class="dm-setting-modes"> <button type="button" data-dm-mode="0" class="dm-setting-mode" aria-pressed="true"> <svg class="dm-setting-icon dm-setting-mode-0-off" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 28 28" viewBox="0 0 28 28" width="28" height="28"><path d="M23 15c1.487 0 2.866.464 4 1.255V7a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h11.674A7 7 0 0 1 23 15zM11 9h6a1 1 0 0 1 0 2h-6a1 1 0 0 1 0-2zm-3 2H6V9h2v2zm4 4h-2v-2h2v2zm2-1a1 1 0 0 1 1-1h1a1 1 0 0 1 0 2h-1a1 1 0 0 1-1-1z" fill="#00AEEC"></path><path d="M26.536 18.464a5 5 0 0 0-7.071 0 5 5 0 0 0 0 7.071 5 5 0 1 0 7.071-7.071zm-5.657 5.657a3 3 0 0 1-.586-3.415l4.001 4.001a3 3 0 0 1-3.415-.586zm4.829-.827-4.001-4.001a3.002 3.002 0 0 1 4.001 4.001z" fill="#00AEEC"></path></svg><svg class="dm-setting-icon dm-setting-mode-0-on" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 28 28" viewBox="0 0 28 28" width="28" height="28"><path d="M23 3H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h18a4 4 0 0 0 4-4V7a4 4 0 0 0-4-4zM11 9h6a1 1 0 0 1 0 2h-6a1 1 0 0 1 0-2zm-3 2H6V9h2v2zm4 4h-2v-2h2v2zm9 0h-6a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2z" fill="#FFFFFF"></path></svg> <span style="display:block;">滚动</span> </button> <button type="button" data-dm-mode="1" class="dm-setting-mode" aria-pressed="true"> <svg class="dm-setting-icon dm-setting-mode-1-off" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 28 28" viewBox="0 0 28 28" width="28" height="28"><path d="M23 15c1.487 0 2.866.464 4 1.255V7a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h11.674A7 7 0 0 1 23 15zm-4-8h2v2h-2V7zM9 9H7V7h2v2zm4 0h-2V7h2v2zm2-2h2v2h-2V7z" fill="#00AEEC"></path><path d="M26.536 18.464a5 5 0 0 0-7.071 0 5 5 0 0 0 0 7.071 5 5 0 1 0 7.071-7.071zm-5.657 5.657a3 3 0 0 1-.586-3.415l4.001 4.001a3 3 0 0 1-3.415-.586zm4.829-.827-4.001-4.001a3.002 3.002 0 0 1 4.001 4.001z" fill="#00AEEC"></path></svg><svg class="dm-setting-icon dm-setting-mode-1-on" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 28 28" viewBox="0 0 28 28" width="28" height="28"><path d="M23 3H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h18a4 4 0 0 0 4-4V7a4 4 0 0 0-4-4zM9 9H7V7h2v2zm4 0h-2V7h2v2zm4 0h-2V7h2v2zm4 0h-2V7h2v2z" fill="#FFFFFF"></path></svg> <span style="display:block;">顶部</span> </button> <button type="button" data-dm-mode="2" class="dm-setting-mode" aria-pressed="true"> <svg class="dm-setting-icon dm-setting-mode-2-off" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 28 28" viewBox="0 0 28 28" width="28" height="28"><path d="M23 15c1.487 0 2.866.464 4 1.255V7a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h11.674A7 7 0 0 1 23 15zM9 21H7v-2h2v2zm4 0h-2v-2h2v2z" fill="#00AEEC"></path><path d="M26.536 18.464a5 5 0 0 0-7.071 0 5 5 0 0 0 0 7.071 5 5 0 1 0 7.071-7.071zm-5.657 5.657a3 3 0 0 1-.586-3.415l4.001 4.001a3 3 0 0 1-3.415-.586zm4.829-.827-4.001-4.001a3.002 3.002 0 0 1 4.001 4.001z" fill="#00AEEC"></path></svg><svg class="dm-setting-icon dm-setting-mode-2-on" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 28 28" viewBox="0 0 28 28" width="28" height="28"><path d="M23 3H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h18a4 4 0 0 0 4-4V7a4 4 0 0 0-4-4zM9 21H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z" fill="#FFFFFF"></path></svg> <span style="display:block;">底部</span> </button> </div> </div> <div class="dm-setting-config-other"> <button type="button" class="dm-setting-other dm-setting-anti-overlap" data-dm-action="antiOverlap" aria-pressed="false"> <svg class="dm-setting-icon dm-setting-check-on" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 32 32" width="32" height="32"><path d="m13 18.25-1.8-1.8c-.6-.6-1.65-.6-2.25 0s-.6 1.5 0 2.25l2.85 2.85c.318.318.762.468 1.2.448.438.02.882-.13 1.2-.448l8.85-8.85c.6-.6.6-1.65 0-2.25s-1.65-.6-2.25 0l-7.8 7.8zM8 4h16c2.21 0 4 1.79 4 4v16c0 2.21-1.79 4-4 4H8c-2.21 0-4-1.79-4-4V8c0-2.21 1.79-4 4-4z" fill="#00AEEC"></path></svg><svg class="dm-setting-icon dm-setting-check-off" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 32 32" width="32" height="32"><path d="M8 6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2H8zm0-2h16c2.21 0 4 1.79 4 4v16c0 2.21-1.79 4-4 4H8c-2.21 0-4-1.79-4-4V8c0-2.21 1.79-4 4-4z" fill="#FFFFFF"></path></svg> 防止弹幕重叠 </button> <button type="button" class="dm-setting-other dm-setting-sync-video" data-dm-action="synchronousPlayback" aria-pressed="false"> <svg class="dm-setting-icon dm-setting-check-on" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 32 32" width="32" height="32"><path d="m13 18.25-1.8-1.8c-.6-.6-1.65-.6-2.25 0s-.6 1.5 0 2.25l2.85 2.85c.318.318.762.468 1.2.448.438.02.882-.13 1.2-.448l8.85-8.85c.6-.6.6-1.65 0-2.25s-1.65-.6-2.25 0l-7.8 7.8zM8 4h16c2.21 0 4 1.79 4 4v16c0 2.21-1.79 4-4 4H8c-2.21 0-4-1.79-4-4V8c0-2.21 1.79-4 4-4z" fill="#00AEEC"></path></svg><svg class="dm-setting-icon dm-setting-check-off" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 32 32" width="32" height="32"><path d="M8 6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2H8zm0-2h16c2.21 0 4 1.79 4 4v16c0 2.21-1.79 4-4 4H8c-2.21 0-4-1.79-4-4V8c0-2.21 1.79-4 4-4z" fill="#FFFFFF"></path></svg> 同步视频速度 </button> </div> <div class="dm-setting-config-slider dm-setting-config-opacity"> <label for="dm-opacity-range">不透明度</label> <div class="dm-setting-slider"><input id="dm-opacity-range" type="range" min="0" max="100" step="1" data-dm-range="opacity" aria-label="不透明度"> <div class="dm-setting-slider-steps" aria-hidden="true"></div> </div> <span class="dm-setting-value" data-dm-value="opacity" data-dm-unit="%"></span> </div> <div class="dm-setting-config-slider dm-setting-config-margin"> <label for="dm-margin-range">显示区域</label> <div class="dm-setting-slider"><input id="dm-margin-range" type="range" min="25" max="100" step="25" data-dm-range="margin" aria-label="显示区域"> <div class="dm-setting-slider-steps" aria-hidden="true"><span class="dm-setting-slider-step">1/4</span><span class="dm-setting-slider-step">半屏</span><span class="dm-setting-slider-step">3/4</span><span class="dm-setting-slider-step">满屏</span></div> </div> <span class="dm-setting-value" data-dm-value="margin" data-dm-unit="%" data-dm-labels="25:1/4,50:半屏,75:3/4,100:满屏"></span> </div> <div class="dm-setting-config-slider dm-setting-config-fontSize"> <label for="dm-fontSize-range">弹幕字号</label> <div class="dm-setting-slider"><input id="dm-fontSize-range" type="range" min="12" max="120" step="1" data-dm-range="fontSize" aria-label="弹幕字号"> <div class="dm-setting-slider-steps" aria-hidden="true"></div> </div> <span class="dm-setting-value" data-dm-value="fontSize" data-dm-unit="px"></span> </div> <div class="dm-setting-config-slider dm-setting-config-speed"> <label for="dm-speed-range">弹幕速度</label> <div class="dm-setting-slider"><input id="dm-speed-range" type="range" min="0" max="4" step="1" data-dm-range="speed" data-dm-steps="10,7.5,5,2.5,1" aria-label="弹幕速度"> <div class="dm-setting-slider-steps" aria-hidden="true"><span class="dm-setting-slider-step">极慢</span><span class="dm-setting-slider-step">适中</span><span class="dm-setting-slider-step">极快</span></div> </div> <span class="dm-setting-value" data-dm-value="speed" data-dm-unit="秒" data-dm-labels="10:极慢,7.5:较慢,5:适中,2.5:较快,1:极快"></span> </div> </div> </section> </body> </html>
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>发送弹幕</title> <style> #custom-dm-popup button { padding:0; border:0; background:none; cursor:pointer; } #custom-dm-popup { position: absolute; top: 15%; left: 50%; transform: translate(-50%,0) scale(var(--panel-scale,1)); transform-origin: top center; background: rgba(22, 22, 22, 0.92); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 15px; z-index: 99999; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 15px 40px rgba(0,0,0,0.6); backdrop-filter: blur(15px); width: 360px; pointer-events: auto; min-width: 0; max-width: calc(96vw / var(--panel-scale,1)); max-height: calc(85vh / var(--panel-scale,1)); box-sizing: border-box; font-family: sans-serif; font-size: 14px; line-height: 1.3; } #custom-dm-popup.show { display: flex; animation: dmPopDown 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; } #custom-dm-popup .dm-input-row { display: flex; gap: 10px; margin-bottom: 5px; } #custom-dm-popup .dm-input-row input { flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); padding: 0 15px; height: 40px; border-radius: 20px; color: #fff; outline: none; font-size: 14px; transition: all 0.3s; } #custom-dm-popup .dm-input-row input:focus { border-color: var(--theme-color, #d0ac67); background: rgba(0,0,0,0.4); } #custom-dm-popup .dm-input-row input::placeholder { color: #888; } #custom-dm-popup .dm-input-row button { background: var(--theme-color, #d0ac67); color: #fff; border: none; padding: 0 22px; height: 40px; border-radius: 20px; cursor: pointer; font-weight: bold; font-size: 14px; transition: all 0.2s; box-shadow:0 4px 10px #d0ac6799; box-shadow: 0 4px 10px {theme}99; } #custom-dm-popup .dm-input-row button:active { opacity: 0.8; transform: scale(0.95); } #custom-dm-popup .dm-options-row { display: flex; gap: 15px; align-items: center; } #custom-dm-popup .dm-option-label { color: #ccc; font-size: 13px; white-space: nowrap; font-weight: bold; width: 35px;} #custom-dm-popup .dm-mode-group { display: flex; gap: 8px; flex: 1; justify-content: space-between;} #custom-dm-popup .dm-mode-btn { background: rgba(255,255,255,0.08); border: 1px solid transparent; color: #eee; padding: 6px 0; flex: 1; text-align: center; border-radius: 8px; font-size: 13px; line-height:normal; cursor: pointer; transition: all 0.2s; } #custom-dm-popup .dm-mode-btn:hover { background: rgba(255,255,255,0.15); } #custom-dm-popup .dm-mode-btn.active { background:#d0ac6733; background: {theme}33; border-color: var(--theme-color, #d0ac67); color: var(--theme-color, #d0ac67); font-weight: bold; } #custom-dm-popup .dm-color-group { display: flex; gap: 12px; flex: 1; justify-content: space-between; align-items: center; padding: 0 5px;} #custom-dm-popup .dm-color-btn { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: transform 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.5); } #custom-dm-popup .dm-color-btn.active { border-color: #fff; transform: scale(1.3); } @keyframes dmPopDown { from { opacity: 0; transform: translate(-50%, -15px) scale(calc(var(--panel-scale) * 0.9)); } to { opacity: 1; transform: translate(-50%, 0) scale(var(--panel-scale)); } } #custom-dm-popup .dm-input-row input { min-width:0; } #custom-dm-popup *, #custom-dm-popup *::before, #custom-dm-popup *::after { box-sizing:border-box; } #custom-dm-popup [hidden] { display:none !important; } #custom-dm-popup button { font-family:inherit; color:inherit; line-height:1.3; } #custom-dm-popup :focus-visible { outline:2px solid var(--theme-color, #d0ac67); outline-offset:2px; } </style> </head> <body> <div id="custom-dm-popup" role="dialog" aria-label="发送弹幕"> <div class="dm-input-row"> <input type="text" id="custom-dm-input" aria-label="弹幕内容" placeholder="发个友善的弹幕见证当下..."> <button type="button" id="custom-dm-submit">发送</button> </div> <div class="dm-options-row"> <span class="dm-option-label">位置</span> <div class="dm-mode-group"> <button class="dm-mode-btn active" data-mode="0">滚动</button> <button class="dm-mode-btn" data-mode="1">顶部</button> <button class="dm-mode-btn" data-mode="2">底部</button> </div> </div> <div class="dm-options-row"> <span class="dm-option-label">颜色</span> <div class="dm-color-group"> <div class="dm-color-btn active" data-color="#ffffff" style="background:#ffffff;"></div> <div class="dm-color-btn" data-color="#ff4d4f" style="background:#ff4d4f;"></div> <div class="dm-color-btn" data-color="#ffc53d" style="background:#ffc53d;"></div> <div class="dm-color-btn" data-color="#73d13d" style="background:#73d13d;"></div> <div class="dm-color-btn" data-color="#40a9ff" style="background:#40a9ff;"></div> <div class="dm-color-btn" data-color="#9254de" style="background:#9254de;"></div> </div> </div> </div> </body> </html>
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>线路验证</title> <style> #route-pwd-panel button { padding:0; border:0; background:none; cursor:pointer; } #route-pwd-panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(var(--panel-scale,1)); transform-origin: center; background: rgba(20,20,20,0.95); padding: 20px; border-radius: 16px; color: #fff; z-index: 999999; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 15px 50px rgba(0,0,0,0.9); pointer-events: auto; min-width: 0; max-width: calc(96vw / var(--panel-scale,1)); max-height: calc(85vh / var(--panel-scale,1)); overflow-y: auto; width: 320px; box-sizing: border-box; font-family: sans-serif; font-size: 14px; line-height: 1.3; } #route-pwd-panel .panel-title { font-size: 18px; font-weight: bold; margin-bottom: 20px; color: var(--theme-color, #d0ac67); border-bottom: 1px solid #444; padding-bottom: 12px; text-align: center;} #route-pwd-panel .panel-solid-btn { background-color:#d0ac6799; background-color: {theme}99; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 6px; margin: 0; padding: 5px 10px; color: #fff; font-size: 13px; font-weight: bold; box-shadow: 0 3px 8px rgba(0,0,0,0.6); white-space: nowrap; transition: all 0.1s ease; line-height: 1; display: inline-block; cursor: pointer; font-style: normal;} #route-pwd-panel .panel-solid-btn:active { background-color: var(--theme-color, #d0ac67); transform: scale(0.92); } #route-pwd-panel *, #route-pwd-panel *::before, #route-pwd-panel *::after { box-sizing:border-box; } #route-pwd-panel [hidden] { display:none !important; } #route-pwd-panel button { font-family:inherit; color:inherit; line-height:1.3; } #route-pwd-panel :focus-visible { outline:2px solid var(--theme-color, #d0ac67); outline-offset:2px; } </style> </head> <body> <div id="route-pwd-panel" class="custom-panel" role="dialog" aria-label="线路验证" style="text-align:center;"> <div class="panel-title" style="margin-bottom:15px; border:none; padding-bottom:0;">请输入线路密码</div> <input type="password" id="route-pwd-input" placeholder="输入密码" style="width: 100%; padding: 12px; margin-bottom: 25px; border-radius: 8px; border: 1px solid #555; background: rgba(0,0,0,0.5); color: #fff; box-sizing: border-box; outline: none; text-align:center; font-size:16px; letter-spacing: 2px;"> <div style="display: flex; gap: 20px; justify-content: center; margin-top: 5px;"> <button id="route-pwd-cancel" class="panel-solid-btn" style="background: rgba(255,255,255,0.15) !important; padding: 12px 35px !important; font-size: 15px !important; border-radius: 25px !important; height: auto !important; line-height: normal !important;">取消</button> <button id="route-pwd-submit" class="panel-solid-btn" style="padding: 12px 35px !important; font-size: 15px !important; border-radius: 25px !important; height: auto !important; line-height: normal !important;">确认</button> </div> </div> </body> </html>
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>线路说明</title> <style> #route-inst-panel button { padding:0; border:0; background:none; cursor:pointer; } #route-inst-panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(var(--panel-scale,1)); transform-origin: center; background: rgba(20,20,20,0.95); padding: 20px; border-radius: 16px; color: #fff; z-index: 999999; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 15px 50px rgba(0,0,0,0.9); pointer-events: auto; min-width: 0; max-width: calc(96vw / var(--panel-scale,1)); max-height: calc(85vh / var(--panel-scale,1)); overflow-y: auto; width: 420px; box-sizing: border-box; font-family: sans-serif; font-size: 14px; line-height: 1.3; } #route-inst-panel .panel-title { font-size: 18px; font-weight: bold; margin-bottom: 20px; color: var(--theme-color, #d0ac67); border-bottom: 1px solid #444; padding-bottom: 12px; text-align: center;} #route-inst-panel .panel-solid-btn { background-color:#d0ac6799; background-color: {theme}99; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 6px; margin: 0; padding: 5px 10px; color: #fff; font-size: 13px; font-weight: bold; box-shadow: 0 3px 8px rgba(0,0,0,0.6); white-space: nowrap; transition: all 0.1s ease; line-height: 1; display: inline-block; cursor: pointer; font-style: normal;} #route-inst-panel .panel-solid-btn:active { background-color: var(--theme-color, #d0ac67); transform: scale(0.92); } #route-inst-panel *, #route-inst-panel *::before, #route-inst-panel *::after { box-sizing:border-box; } #route-inst-panel [hidden] { display:none !important; } #route-inst-panel button { font-family:inherit; color:inherit; line-height:1.3; } #route-inst-panel :focus-visible { outline:2px solid var(--theme-color, #d0ac67); outline-offset:2px; } </style> </head> <body> <div id="route-inst-panel" class="custom-panel" role="dialog" aria-label="线路说明"> <div class="panel-title" style="margin-bottom:15px;">线路说明</div> <div id="route-inst-content" style="margin-bottom: 25px; font-size: 14px; line-height: 1.6; max-height: 50vh; overflow-y: auto; word-break: break-all; color:#eee; padding-right:5px; text-align:left;"></div> <div style="display: flex; gap: 20px; justify-content: center; margin-top: 5px;"> <button id="route-inst-cancel" class="panel-solid-btn" style="background: rgba(255,255,255,0.15) !important; padding: 12px 35px !important; font-size: 15px !important; border-radius: 25px !important; height: auto !important; line-height: normal !important;">取消</button> <button id="route-inst-submit" class="panel-solid-btn" style="padding: 12px 35px !important; font-size: 15px !important; border-radius: 25px !important; height: auto !important; line-height: normal !important;">切换线路</button> </div> </div> </body> </html>
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>右键弹窗</title> <style> #right-click-panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(var(--panel-scale,1)); transform-origin: center; background: rgba(20,20,20,0.95); padding: 12px; border-radius: 16px; color: #fff; z-index: 999999; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 15px 50px rgba(0,0,0,0.9); pointer-events: auto; min-width: 0; width: 280px; max-width: calc((var(--panel-width,100vw) - 16px) / var(--panel-scale,1)); max-height: calc((var(--panel-height,100vh) - 16px) / var(--panel-scale,1)); overflow: auto; box-sizing: border-box; font-family: sans-serif; font-size: 14px; line-height: 1.3; } #right-click-panel *, #right-click-panel *::before, #right-click-panel *::after { box-sizing: border-box; } #right-click-panel .right-click-item { display: block; width: 100%; padding: 14px 12px; border: 0; border-radius: 8px; background: rgba(255,255,255,0.08); color: inherit; font: inherit; text-align: center; overflow-wrap: anywhere; cursor: pointer; transition: background 0.2s; } #right-click-panel .right-click-item + .right-click-item { margin-top: 10px; } #right-click-panel .right-click-item:hover { background: rgba(255,255,255,0.2); color: var(--theme-color, #d0ac67); } #right-click-panel :focus-visible { outline: 2px solid var(--theme-color, #d0ac67); outline-offset: 2px; } </style> </head> <body> <div id="right-click-panel" class="custom-panel" role="dialog" aria-label="右键弹窗"> <!-- 跳转地址留空则不跳转;需要添加更多按钮可复制下行代码后换行粘贴。 --> <button type="button" class="right-click-item" data-right-click-link="https://qm.qq.com/q/kGLSD8cW4w">点此反馈</button> </div> </body> </html>