Restore b8a71c0 UI and append AI rewrite wall safely
Browse files- static/index.html +56 -0
static/index.html
CHANGED
|
@@ -11,6 +11,10 @@
|
|
| 11 |
<script src="https://cdn.jsdelivr.net/npm/hls.js@1/dist/hls.min.js"></script>
|
| 12 |
<style>
|
| 13 |
*{box-sizing:border-box;margin:0;padding:0}body{background:#111;color:#eee;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;overflow-x:hidden}.header{background:linear-gradient(135deg,#0d1117,#1a3a2a 50%,#8b7500);padding:12px;text-align:center}.header h1{color:#fff;font-size:18px;font-weight:800}.header p{color:rgba(255,255,255,.6);font-size:10px;margin-top:2px}.cats{display:flex;overflow-x:auto;background:#1a1a1a;border-bottom:1px solid #333;padding:0 4px;scrollbar-width:none;position:sticky;top:0;z-index:50}.cats::-webkit-scrollbar{display:none}.cat{padding:9px 11px;color:#888;font-size:11px;cursor:pointer;white-space:nowrap;border-bottom:2px solid transparent;flex-shrink:0}.cat.active{color:#5cb87a;border-bottom-color:#5cb87a;font-weight:600}.view{display:none}.view.active{display:block}.loading{text-align:center;padding:40px;color:#666;font-size:12px}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;padding:6px 4px}@media(min-width:650px){.grid{grid-template-columns:repeat(3,1fr)}}.card{background:#1a1a1a;border-radius:8px;overflow:hidden;cursor:pointer;border:1px solid #222}.card:active{transform:scale(.98)}.card-img{position:relative;width:100%;aspect-ratio:16/9;background:#333;overflow:hidden}.card-img img{width:100%;height:100%;object-fit:cover}.card-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:30px;height:30px;background:rgba(0,0,0,.55);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:11px}.card-body{padding:6px 8px}.card-title{font-size:11px;font-weight:600;color:#eee;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.badge{font-size:8px;padding:1px 5px;border-radius:3px;font-weight:700;display:inline-block;margin-bottom:2px}.badge-vne{background:#c0392b;color:#fff}.badge-bbc{background:#b80000;color:#fff}.badge-dt{background:#1565c0;color:#fff}.badge-genk{background:#6a1b9a;color:#fff}.badge-fpt{background:#f26522;color:#fff}.slider-wrap{margin:6px 4px;background:#1a1a1a;border-radius:8px;overflow:hidden;border:1px solid #2a2a2a}.slider-header{padding:7px 10px;display:flex;align-items:center;justify-content:space-between}.slider-label{color:#f0c040;font-size:13px;font-weight:700}.slider-track{display:flex;overflow-x:auto;gap:8px;padding:4px 10px 10px;scrollbar-width:none}.slider-track::-webkit-scrollbar{display:none}.slider-item{flex:0 0 160px;cursor:pointer;flex-shrink:0}.slider-thumb{position:relative;width:100%;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:#333}.slider-thumb img{width:100%;height:100%;object-fit:cover}.slider-title{color:#ccc;font-size:10px;margin-top:3px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.shorts-item{flex:0 0 110px!important}.shorts-thumb{aspect-ratio:3/4!important;border-radius:8px!important}.section-title{font-size:13px;font-weight:700;color:#5cb87a;margin:8px 0 4px;padding-left:8px;border-left:3px solid #5cb87a}.back-btn{background:rgba(17,17,17,.95);color:#fff;border:none;padding:10px;font-size:12px;cursor:pointer;width:100%;text-align:center;position:sticky;top:0;z-index:50}.article-view{padding:12px 8px 40px;max-width:760px;margin:0 auto}.article-title{font-size:18px;font-weight:800;color:#f0f0f0;line-height:1.32;margin-bottom:8px}.article-summary{background:#1a2a1f;border-left:3px solid #2d8659;padding:10px;margin-bottom:14px;font-weight:600;color:#ccc;font-size:13px;border-radius:0 6px 6px 0}.article-p{font-size:14px;line-height:1.72;color:#ccc;margin-bottom:10px}.article-img{width:100%;border-radius:6px;margin:10px 0}.article-h2{font-size:16px;font-weight:700;color:#eee;margin:16px 0 8px}.article-actions{display:flex;gap:8px;padding:10px 0;border-top:1px solid #333;margin-top:16px;flex-wrap:wrap}.article-actions button{background:#1a1a1a;border:1px solid #333;color:#ccc;padding:7px 12px;border-radius:14px;font-size:11px;cursor:pointer}.featured-match{margin:6px 4px;background:linear-gradient(135deg,#1a2a1f,#0d1117);border-radius:10px;padding:12px;border:1px solid #2d8659;cursor:pointer}.fm-league{color:#5cb87a;font-size:9px;font-weight:600;text-transform:uppercase;margin-bottom:6px;text-align:center}.fm-teams{display:flex;align-items:center;justify-content:center;gap:10px}.fm-team{display:flex;flex-direction:column;align-items:center;gap:4px;flex:1}.fm-team img{width:32px;height:32px;object-fit:contain}.fm-team span{font-size:10px;color:#ccc;text-align:center}.fm-score{font-size:22px;font-weight:900;color:#fff;min-width:60px;text-align:center}.fm-status{text-align:center;margin-top:6px;font-size:9px;color:#e74c3c;font-weight:600}.fm-status.upcoming{color:#f0c040}.ls-section{margin:6px 4px;background:#1a1a1a;border-radius:8px;overflow:hidden;border:1px solid #2a2a2a}.ls-header{padding:8px 10px}.ls-header h3{color:#fff;font-size:13px;font-weight:700}.ls-tabs{display:flex;gap:4px;padding:0 10px 8px;overflow-x:auto;scrollbar-width:none}.ls-tabs::-webkit-scrollbar{display:none}.ls-tab{padding:4px 10px;background:#222;border:1px solid #333;border-radius:12px;color:#999;font-size:10px;cursor:pointer;white-space:nowrap;flex-shrink:0}.ls-tab.active{background:#2d8659;border-color:#2d8659;color:#fff;font-weight:600}.ls-content{max-height:420px;overflow-y:auto;padding:0 6px 8px;scrollbar-width:thin}.ls-content .matchs-league{list-style:none}.ls-content .matchs-league>li{margin-bottom:8px}.ls-content .title-content{display:flex;align-items:center;gap:6px;padding:4px 6px;background:#222;border-radius:4px;margin-bottom:4px}.ls-content .title-content img{width:16px;height:16px}.ls-content .title-content strong{color:#eee;font-size:11px}.ls-content .match-detail{padding:5px 6px;border-bottom:1px solid #222;cursor:pointer}.ls-content .match-detail:active{background:#222}.ls-content .match{display:flex;flex-wrap:wrap;align-items:center;gap:4px}.ls-content .datetime{width:100%;display:flex;gap:8px;margin-bottom:2px}.ls-content .datetime .round{color:#666;font-size:9px}.ls-content .datetime .match-time{color:#aaa;font-size:9px}.ls-content .teams{display:flex;align-items:center;gap:4px;width:100%}.ls-content .team{display:flex;align-items:center;gap:4px;flex:1;min-width:0;text-decoration:none}.ls-content .team .name{font-size:11px;color:#ddd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ls-content .team .logo img{width:18px;height:18px;object-fit:contain}.ls-content .home-team{justify-content:flex-end;text-align:right}.ls-content .home-team .name{order:-1}.ls-content .away-team{justify-content:flex-start}.ls-content .status{flex:0 0 50px;text-align:center}.ls-content .status a{text-decoration:none;color:#fff;font-weight:700;font-size:12px}.ls-content .status .label{font-size:8px;display:block;color:#888}.ls-content .status .label.live{color:#e74c3c;font-weight:700}.ls-content .status .vs{color:#888;font-size:11px}.ls-content .status .blink{animation:blink 1s infinite}@keyframes blink{50%{opacity:0}}.ls-content .info,.ls-content .btns{display:none}.ls-content .leaderboard-item{display:flex;align-items:center;padding:5px 6px;border-bottom:1px solid #222;gap:4px}.ls-content .leaderboard-item .team{display:flex;align-items:center;gap:5px;flex:1;min-width:0}.ls-content .leaderboard-item .team span{color:#888;font-size:10px;min-width:16px}.ls-content .leaderboard-item .team .link{display:flex;align-items:center;gap:4px;text-decoration:none}.ls-content .leaderboard-item .team p{color:#ddd;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ls-content .leaderboard-item .team img{width:16px;height:16px}.ls-content .leaderboard-item .copy{display:flex;gap:6px;font-size:10px;color:#aaa}.ls-content .leaderboard-item .copy p{min-width:16px;text-align:center}.ls-content .leaderboard-item .copy strong{color:#5cb87a}.ls-content .leaderboard-item .copy .form{display:flex;gap:2px}.ls-content .leaderboard-item .copy .form span{width:12px;height:12px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:7px;color:#fff;font-weight:700}.ls-content .bg-green{background:#27ae60}.ls-content .bg-red{background:#e74c3c}.ls-content .bg-gray-5{background:#666}.match-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#111;z-index:9999;display:none;flex-direction:column;overflow-y:auto}.match-overlay.active{display:flex}.mo-header{padding:10px;background:#1a1a1a;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:1}.mo-header h3{color:#fff;font-size:13px}.mo-close{background:none;border:none;color:#fff;font-size:22px;cursor:pointer}.mo-tabs{display:flex;gap:4px;padding:8px 10px;background:#1a1a1a}.mo-tab{padding:5px 12px;background:#222;border:1px solid #333;border-radius:10px;color:#999;font-size:10px;cursor:pointer}.mo-tab.active{background:#2d8659;border-color:#2d8659;color:#fff}.mo-body{padding:8px;flex:1;overflow-x:auto}.mo-body .time{color:#5cb87a;font-weight:700;font-size:11px;margin-right:6px}.mo-body .description{color:#ccc;font-size:12px;line-height:1.4}.mo-body li{list-style:none;padding:6px 0;border-bottom:1px solid #222}.mo-body .professional-table{width:100%;font-size:10px;border-collapse:collapse;min-width:500px}.mo-body .professional-table th{color:#888;padding:6px 4px;text-align:center;border-bottom:1px solid #333;white-space:nowrap}.mo-body .professional-table th.sticky-column{text-align:left;position:sticky;left:0;background:#111;z-index:1;min-width:120px}.mo-body .professional-table td{color:#ccc;padding:6px 4px;border-bottom:1px solid #1a1a1a;text-align:center;font-size:11px}.mo-body .professional-table td.sticky-column{text-align:left;position:sticky;left:0;background:#111;z-index:1}.mo-body .player-info{display:flex;align-items:center;gap:6px}.mo-body .player-logo{width:18px;height:18px;border-radius:50%;object-fit:contain}.mo-body .player-name{color:#ddd;text-decoration:none;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100px}.mo-body .score{font-weight:700;border-radius:4px;padding:2px 5px;color:#fff}.mo-body .bg-blue{background:#2563eb}.mo-body .bg-green{background:#16a34a}.mo-body .bg-orange{background:#ea580c}.vp-wrap{background:#000;width:100%;aspect-ratio:1/1;position:relative;overflow:hidden;transition:aspect-ratio .3s}.vp-wrap.wide{aspect-ratio:16/9}.vp-wrap video,.vp-wrap iframe{object-fit:cover!important;width:100%;height:100%;border:none}.vp-ratio-btn{position:absolute;top:8px;right:8px;background:rgba(0,0,0,.6);border:1px solid rgba(255,255,255,.3);color:#fff;font-size:9px;padding:3px 8px;border-radius:12px;cursor:pointer;z-index:5}.vp-title{padding:8px 10px;font-size:13px;font-weight:700;color:#fff;background:#1a1a1a;border-bottom:1px solid #222}.pl-list{padding:4px}.pl-item{display:flex;gap:8px;padding:8px 6px;border-bottom:1px solid #1a1a1a;cursor:pointer;border-radius:6px}.pl-item.active{background:#1a2a1f;border:1px solid #2d8659}.pl-item-thumb{flex:0 0 100px;aspect-ratio:16/9;border-radius:4px;overflow:hidden;background:#333;position:relative}.pl-item-thumb img{width:100%;height:100%;object-fit:cover}.pl-item-body{flex:1;display:flex;align-items:center;min-width:0}.pl-item-title{font-size:11px;color:#ccc;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.pl-item.active .pl-item-title{color:#5cb87a;font-weight:600}.msv{position:fixed;inset:0;background:#000;z-index:99999;overflow:hidden;color:#fff}.msv-stage{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#000}.msv-bg{position:absolute;inset:-30px;background:center/cover no-repeat;filter:blur(28px);transform:scale(1.08);opacity:.28}.msv-phone{position:relative;z-index:1;width:max(100vw,56.25dvh);height:max(100dvh,177.7778vw);max-width:none;max-height:none;aspect-ratio:9/16;background:#000;overflow:hidden}.msv-phone iframe{position:absolute;inset:0;width:100%!important;height:100%!important;border:0;background:#000}.msv-close{position:fixed;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));z-index:8;width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.16);background:rgba(0,0,0,.55);color:#fff;font-size:22px}.msv-info{position:fixed;left:12px;right:58px;bottom:max(18px,env(safe-area-inset-bottom));z-index:6;text-shadow:0 1px 7px #000;pointer-events:none}.msv-count{font-size:11px;color:#6ee78f;font-weight:700;margin-bottom:5px}.msv-title{font-size:13px;line-height:1.35;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.msv-nav{position:fixed;right:10px;top:50%;transform:translateY(-50%);z-index:7;display:flex;flex-direction:column;gap:10px}.msv-nav button{width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:16px}.msv-actions{position:fixed;right:10px;bottom:max(76px,env(safe-area-inset-bottom));z-index:7;display:flex;flex-direction:column;gap:10px}.msv-act{width:42px;min-height:42px;border:0;border-radius:22px;background:rgba(255,255,255,.14);color:#fff;font-size:17px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}.msv-act span{font-size:9px;color:#ddd}.msv-act.liked{background:rgba(231,76,60,.9);color:#fff}.msv-comments{position:fixed;left:8px;right:8px;bottom:0;max-height:48vh;background:rgba(17,17,17,.96);border:1px solid #333;border-radius:12px 12px 0 0;z-index:9;transform:translateY(110%);transition:transform .22s;padding:10px}.msv-comments.show{transform:translateY(0)}.msv-ctitle{font-size:12px;font-weight:700;color:#fff;margin-bottom:8px}.msv-clist{max-height:32vh;overflow:auto}.msv-citem{font-size:11px;color:#ccc;border-bottom:1px solid #222;padding:6px 0}.msv-crow{display:flex;gap:6px;margin-top:8px}.msv-crow input{flex:1;background:#222;border:1px solid #333;color:#fff;border-radius:16px;padding:8px 10px;font-size:12px}.msv-crow button{background:#2d8659;border:0;color:#fff;border-radius:16px;padding:8px 12px;font-size:12px}.msv-swipe{position:absolute;inset:0;z-index:3;background:transparent}.ms-lock{overflow:hidden!important}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
</style>
|
| 15 |
</head>
|
| 16 |
<body>
|
|
@@ -68,6 +72,58 @@ async function buildTikTokPlayer(articles,startIdx,type){const el=document.getEl
|
|
| 68 |
function shareVid(i){const v=_tikData[i];if(!v)return;doShareVideo(v.title,v.link||'',v.poster||v.img||'','highlights');}
|
| 69 |
function initFeed(){const feed=document.getElementById('tiktok-feed');if(!feed)return;const slides=feed.querySelectorAll('.tiktok-slide');let cur=-1;function activate(idx){if(idx===cur)return;slides.forEach((sl,i)=>{const v=sl.querySelector('video');const f=sl.querySelector('iframe');if(i===idx){if(v&&v.dataset.hls){if(!v._hls){const hls=new Hls();hls.loadSource(v.dataset.hls);hls.attachMedia(v);hls.on(Hls.Events.MANIFEST_PARSED,()=>v.play().catch(()=>{}));v._hls=hls;}else v.play().catch(()=>{});}else if(v)v.play().catch(()=>{});if(f&&!f.src&&f.dataset.ytSrc)f.src=f.dataset.ytSrc;}else{if(v){v.pause();if(v._hls){v._hls.destroy();v._hls=null;}}if(f&&f.src)f.src='';}});cur=idx;}let sT;feed.addEventListener('scroll',()=>{clearTimeout(sT);sT=setTimeout(()=>{const rect=feed.getBoundingClientRect();const ctr=rect.top+rect.height/2;let best=-1,bestD=1e9;slides.forEach((sl,i)=>{const d=Math.abs(sl.getBoundingClientRect().top+sl.getBoundingClientRect().height/2-ctr);if(d<bestD){bestD=d;best=i;}});if(best>=0)activate(best);},150);});setTimeout(()=>activate(0),300);}
|
| 70 |
init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
</script>
|
| 72 |
</body>
|
| 73 |
</html>
|
|
|
|
| 11 |
<script src="https://cdn.jsdelivr.net/npm/hls.js@1/dist/hls.min.js"></script>
|
| 12 |
<style>
|
| 13 |
*{box-sizing:border-box;margin:0;padding:0}body{background:#111;color:#eee;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;overflow-x:hidden}.header{background:linear-gradient(135deg,#0d1117,#1a3a2a 50%,#8b7500);padding:12px;text-align:center}.header h1{color:#fff;font-size:18px;font-weight:800}.header p{color:rgba(255,255,255,.6);font-size:10px;margin-top:2px}.cats{display:flex;overflow-x:auto;background:#1a1a1a;border-bottom:1px solid #333;padding:0 4px;scrollbar-width:none;position:sticky;top:0;z-index:50}.cats::-webkit-scrollbar{display:none}.cat{padding:9px 11px;color:#888;font-size:11px;cursor:pointer;white-space:nowrap;border-bottom:2px solid transparent;flex-shrink:0}.cat.active{color:#5cb87a;border-bottom-color:#5cb87a;font-weight:600}.view{display:none}.view.active{display:block}.loading{text-align:center;padding:40px;color:#666;font-size:12px}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;padding:6px 4px}@media(min-width:650px){.grid{grid-template-columns:repeat(3,1fr)}}.card{background:#1a1a1a;border-radius:8px;overflow:hidden;cursor:pointer;border:1px solid #222}.card:active{transform:scale(.98)}.card-img{position:relative;width:100%;aspect-ratio:16/9;background:#333;overflow:hidden}.card-img img{width:100%;height:100%;object-fit:cover}.card-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:30px;height:30px;background:rgba(0,0,0,.55);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:11px}.card-body{padding:6px 8px}.card-title{font-size:11px;font-weight:600;color:#eee;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.badge{font-size:8px;padding:1px 5px;border-radius:3px;font-weight:700;display:inline-block;margin-bottom:2px}.badge-vne{background:#c0392b;color:#fff}.badge-bbc{background:#b80000;color:#fff}.badge-dt{background:#1565c0;color:#fff}.badge-genk{background:#6a1b9a;color:#fff}.badge-fpt{background:#f26522;color:#fff}.slider-wrap{margin:6px 4px;background:#1a1a1a;border-radius:8px;overflow:hidden;border:1px solid #2a2a2a}.slider-header{padding:7px 10px;display:flex;align-items:center;justify-content:space-between}.slider-label{color:#f0c040;font-size:13px;font-weight:700}.slider-track{display:flex;overflow-x:auto;gap:8px;padding:4px 10px 10px;scrollbar-width:none}.slider-track::-webkit-scrollbar{display:none}.slider-item{flex:0 0 160px;cursor:pointer;flex-shrink:0}.slider-thumb{position:relative;width:100%;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:#333}.slider-thumb img{width:100%;height:100%;object-fit:cover}.slider-title{color:#ccc;font-size:10px;margin-top:3px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.shorts-item{flex:0 0 110px!important}.shorts-thumb{aspect-ratio:3/4!important;border-radius:8px!important}.section-title{font-size:13px;font-weight:700;color:#5cb87a;margin:8px 0 4px;padding-left:8px;border-left:3px solid #5cb87a}.back-btn{background:rgba(17,17,17,.95);color:#fff;border:none;padding:10px;font-size:12px;cursor:pointer;width:100%;text-align:center;position:sticky;top:0;z-index:50}.article-view{padding:12px 8px 40px;max-width:760px;margin:0 auto}.article-title{font-size:18px;font-weight:800;color:#f0f0f0;line-height:1.32;margin-bottom:8px}.article-summary{background:#1a2a1f;border-left:3px solid #2d8659;padding:10px;margin-bottom:14px;font-weight:600;color:#ccc;font-size:13px;border-radius:0 6px 6px 0}.article-p{font-size:14px;line-height:1.72;color:#ccc;margin-bottom:10px}.article-img{width:100%;border-radius:6px;margin:10px 0}.article-h2{font-size:16px;font-weight:700;color:#eee;margin:16px 0 8px}.article-actions{display:flex;gap:8px;padding:10px 0;border-top:1px solid #333;margin-top:16px;flex-wrap:wrap}.article-actions button{background:#1a1a1a;border:1px solid #333;color:#ccc;padding:7px 12px;border-radius:14px;font-size:11px;cursor:pointer}.featured-match{margin:6px 4px;background:linear-gradient(135deg,#1a2a1f,#0d1117);border-radius:10px;padding:12px;border:1px solid #2d8659;cursor:pointer}.fm-league{color:#5cb87a;font-size:9px;font-weight:600;text-transform:uppercase;margin-bottom:6px;text-align:center}.fm-teams{display:flex;align-items:center;justify-content:center;gap:10px}.fm-team{display:flex;flex-direction:column;align-items:center;gap:4px;flex:1}.fm-team img{width:32px;height:32px;object-fit:contain}.fm-team span{font-size:10px;color:#ccc;text-align:center}.fm-score{font-size:22px;font-weight:900;color:#fff;min-width:60px;text-align:center}.fm-status{text-align:center;margin-top:6px;font-size:9px;color:#e74c3c;font-weight:600}.fm-status.upcoming{color:#f0c040}.ls-section{margin:6px 4px;background:#1a1a1a;border-radius:8px;overflow:hidden;border:1px solid #2a2a2a}.ls-header{padding:8px 10px}.ls-header h3{color:#fff;font-size:13px;font-weight:700}.ls-tabs{display:flex;gap:4px;padding:0 10px 8px;overflow-x:auto;scrollbar-width:none}.ls-tabs::-webkit-scrollbar{display:none}.ls-tab{padding:4px 10px;background:#222;border:1px solid #333;border-radius:12px;color:#999;font-size:10px;cursor:pointer;white-space:nowrap;flex-shrink:0}.ls-tab.active{background:#2d8659;border-color:#2d8659;color:#fff;font-weight:600}.ls-content{max-height:420px;overflow-y:auto;padding:0 6px 8px;scrollbar-width:thin}.ls-content .matchs-league{list-style:none}.ls-content .matchs-league>li{margin-bottom:8px}.ls-content .title-content{display:flex;align-items:center;gap:6px;padding:4px 6px;background:#222;border-radius:4px;margin-bottom:4px}.ls-content .title-content img{width:16px;height:16px}.ls-content .title-content strong{color:#eee;font-size:11px}.ls-content .match-detail{padding:5px 6px;border-bottom:1px solid #222;cursor:pointer}.ls-content .match-detail:active{background:#222}.ls-content .match{display:flex;flex-wrap:wrap;align-items:center;gap:4px}.ls-content .datetime{width:100%;display:flex;gap:8px;margin-bottom:2px}.ls-content .datetime .round{color:#666;font-size:9px}.ls-content .datetime .match-time{color:#aaa;font-size:9px}.ls-content .teams{display:flex;align-items:center;gap:4px;width:100%}.ls-content .team{display:flex;align-items:center;gap:4px;flex:1;min-width:0;text-decoration:none}.ls-content .team .name{font-size:11px;color:#ddd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ls-content .team .logo img{width:18px;height:18px;object-fit:contain}.ls-content .home-team{justify-content:flex-end;text-align:right}.ls-content .home-team .name{order:-1}.ls-content .away-team{justify-content:flex-start}.ls-content .status{flex:0 0 50px;text-align:center}.ls-content .status a{text-decoration:none;color:#fff;font-weight:700;font-size:12px}.ls-content .status .label{font-size:8px;display:block;color:#888}.ls-content .status .label.live{color:#e74c3c;font-weight:700}.ls-content .status .vs{color:#888;font-size:11px}.ls-content .status .blink{animation:blink 1s infinite}@keyframes blink{50%{opacity:0}}.ls-content .info,.ls-content .btns{display:none}.ls-content .leaderboard-item{display:flex;align-items:center;padding:5px 6px;border-bottom:1px solid #222;gap:4px}.ls-content .leaderboard-item .team{display:flex;align-items:center;gap:5px;flex:1;min-width:0}.ls-content .leaderboard-item .team span{color:#888;font-size:10px;min-width:16px}.ls-content .leaderboard-item .team .link{display:flex;align-items:center;gap:4px;text-decoration:none}.ls-content .leaderboard-item .team p{color:#ddd;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ls-content .leaderboard-item .team img{width:16px;height:16px}.ls-content .leaderboard-item .copy{display:flex;gap:6px;font-size:10px;color:#aaa}.ls-content .leaderboard-item .copy p{min-width:16px;text-align:center}.ls-content .leaderboard-item .copy strong{color:#5cb87a}.ls-content .leaderboard-item .copy .form{display:flex;gap:2px}.ls-content .leaderboard-item .copy .form span{width:12px;height:12px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:7px;color:#fff;font-weight:700}.ls-content .bg-green{background:#27ae60}.ls-content .bg-red{background:#e74c3c}.ls-content .bg-gray-5{background:#666}.match-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#111;z-index:9999;display:none;flex-direction:column;overflow-y:auto}.match-overlay.active{display:flex}.mo-header{padding:10px;background:#1a1a1a;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:1}.mo-header h3{color:#fff;font-size:13px}.mo-close{background:none;border:none;color:#fff;font-size:22px;cursor:pointer}.mo-tabs{display:flex;gap:4px;padding:8px 10px;background:#1a1a1a}.mo-tab{padding:5px 12px;background:#222;border:1px solid #333;border-radius:10px;color:#999;font-size:10px;cursor:pointer}.mo-tab.active{background:#2d8659;border-color:#2d8659;color:#fff}.mo-body{padding:8px;flex:1;overflow-x:auto}.mo-body .time{color:#5cb87a;font-weight:700;font-size:11px;margin-right:6px}.mo-body .description{color:#ccc;font-size:12px;line-height:1.4}.mo-body li{list-style:none;padding:6px 0;border-bottom:1px solid #222}.mo-body .professional-table{width:100%;font-size:10px;border-collapse:collapse;min-width:500px}.mo-body .professional-table th{color:#888;padding:6px 4px;text-align:center;border-bottom:1px solid #333;white-space:nowrap}.mo-body .professional-table th.sticky-column{text-align:left;position:sticky;left:0;background:#111;z-index:1;min-width:120px}.mo-body .professional-table td{color:#ccc;padding:6px 4px;border-bottom:1px solid #1a1a1a;text-align:center;font-size:11px}.mo-body .professional-table td.sticky-column{text-align:left;position:sticky;left:0;background:#111;z-index:1}.mo-body .player-info{display:flex;align-items:center;gap:6px}.mo-body .player-logo{width:18px;height:18px;border-radius:50%;object-fit:contain}.mo-body .player-name{color:#ddd;text-decoration:none;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100px}.mo-body .score{font-weight:700;border-radius:4px;padding:2px 5px;color:#fff}.mo-body .bg-blue{background:#2563eb}.mo-body .bg-green{background:#16a34a}.mo-body .bg-orange{background:#ea580c}.vp-wrap{background:#000;width:100%;aspect-ratio:1/1;position:relative;overflow:hidden;transition:aspect-ratio .3s}.vp-wrap.wide{aspect-ratio:16/9}.vp-wrap video,.vp-wrap iframe{object-fit:cover!important;width:100%;height:100%;border:none}.vp-ratio-btn{position:absolute;top:8px;right:8px;background:rgba(0,0,0,.6);border:1px solid rgba(255,255,255,.3);color:#fff;font-size:9px;padding:3px 8px;border-radius:12px;cursor:pointer;z-index:5}.vp-title{padding:8px 10px;font-size:13px;font-weight:700;color:#fff;background:#1a1a1a;border-bottom:1px solid #222}.pl-list{padding:4px}.pl-item{display:flex;gap:8px;padding:8px 6px;border-bottom:1px solid #1a1a1a;cursor:pointer;border-radius:6px}.pl-item.active{background:#1a2a1f;border:1px solid #2d8659}.pl-item-thumb{flex:0 0 100px;aspect-ratio:16/9;border-radius:4px;overflow:hidden;background:#333;position:relative}.pl-item-thumb img{width:100%;height:100%;object-fit:cover}.pl-item-body{flex:1;display:flex;align-items:center;min-width:0}.pl-item-title{font-size:11px;color:#ccc;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.pl-item.active .pl-item-title{color:#5cb87a;font-weight:600}.msv{position:fixed;inset:0;background:#000;z-index:99999;overflow:hidden;color:#fff}.msv-stage{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#000}.msv-bg{position:absolute;inset:-30px;background:center/cover no-repeat;filter:blur(28px);transform:scale(1.08);opacity:.28}.msv-phone{position:relative;z-index:1;width:max(100vw,56.25dvh);height:max(100dvh,177.7778vw);max-width:none;max-height:none;aspect-ratio:9/16;background:#000;overflow:hidden}.msv-phone iframe{position:absolute;inset:0;width:100%!important;height:100%!important;border:0;background:#000}.msv-close{position:fixed;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));z-index:8;width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.16);background:rgba(0,0,0,.55);color:#fff;font-size:22px}.msv-info{position:fixed;left:12px;right:58px;bottom:max(18px,env(safe-area-inset-bottom));z-index:6;text-shadow:0 1px 7px #000;pointer-events:none}.msv-count{font-size:11px;color:#6ee78f;font-weight:700;margin-bottom:5px}.msv-title{font-size:13px;line-height:1.35;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.msv-nav{position:fixed;right:10px;top:50%;transform:translateY(-50%);z-index:7;display:flex;flex-direction:column;gap:10px}.msv-nav button{width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:16px}.msv-actions{position:fixed;right:10px;bottom:max(76px,env(safe-area-inset-bottom));z-index:7;display:flex;flex-direction:column;gap:10px}.msv-act{width:42px;min-height:42px;border:0;border-radius:22px;background:rgba(255,255,255,.14);color:#fff;font-size:17px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}.msv-act span{font-size:9px;color:#ddd}.msv-act.liked{background:rgba(231,76,60,.9);color:#fff}.msv-comments{position:fixed;left:8px;right:8px;bottom:0;max-height:48vh;background:rgba(17,17,17,.96);border:1px solid #333;border-radius:12px 12px 0 0;z-index:9;transform:translateY(110%);transition:transform .22s;padding:10px}.msv-comments.show{transform:translateY(0)}.msv-ctitle{font-size:12px;font-weight:700;color:#fff;margin-bottom:8px}.msv-clist{max-height:32vh;overflow:auto}.msv-citem{font-size:11px;color:#ccc;border-bottom:1px solid #222;padding:6px 0}.msv-crow{display:flex;gap:6px;margin-top:8px}.msv-crow input{flex:1;background:#222;border:1px solid #333;color:#fff;border-radius:16px;padding:8px 10px;font-size:12px}.msv-crow button{background:#2d8659;border:0;color:#fff;border-radius:16px;padding:8px 12px;font-size:12px}.msv-swipe{position:absolute;inset:0;z-index:3;background:transparent}.ms-lock{overflow:hidden!important}
|
| 14 |
+
|
| 15 |
+
/* AI wall slide - append only */
|
| 16 |
+
.aiw-wrap{margin:6px 4px;background:#1a1a1a;border-radius:8px;overflow:hidden;border:1px solid #2a2a2a}.aiw-item{flex:0 0 260px;background:#141414;border:1px solid #2b2b2b;border-radius:10px;padding:8px}.aiw-thumb{width:100%;aspect-ratio:16/9;border-radius:8px;background:#222;overflow:hidden;margin-bottom:6px}.aiw-thumb img{width:100%;height:100%;object-fit:cover}.aiw-title{font-size:12px;color:#5cb87a;font-weight:800;line-height:1.3;margin-bottom:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.aiw-text{font-size:11px;color:#bbb;line-height:1.4;white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}.aiw-actions{display:flex;gap:6px;margin-top:8px}.aiw-actions button,.aiw-rewrite-btn{border:1px solid #333;background:#222;color:#ddd;border-radius:14px;padding:6px 9px;font-size:10px;cursor:pointer}.aiw-actions button.primary,.aiw-rewrite-btn{background:#2d8659;border-color:#2d8659;color:#fff}
|
| 17 |
+
|
| 18 |
</style>
|
| 19 |
</head>
|
| 20 |
<body>
|
|
|
|
| 72 |
function shareVid(i){const v=_tikData[i];if(!v)return;doShareVideo(v.title,v.link||'',v.poster||v.img||'','highlights');}
|
| 73 |
function initFeed(){const feed=document.getElementById('tiktok-feed');if(!feed)return;const slides=feed.querySelectorAll('.tiktok-slide');let cur=-1;function activate(idx){if(idx===cur)return;slides.forEach((sl,i)=>{const v=sl.querySelector('video');const f=sl.querySelector('iframe');if(i===idx){if(v&&v.dataset.hls){if(!v._hls){const hls=new Hls();hls.loadSource(v.dataset.hls);hls.attachMedia(v);hls.on(Hls.Events.MANIFEST_PARSED,()=>v.play().catch(()=>{}));v._hls=hls;}else v.play().catch(()=>{});}else if(v)v.play().catch(()=>{});if(f&&!f.src&&f.dataset.ytSrc)f.src=f.dataset.ytSrc;}else{if(v){v.pause();if(v._hls){v._hls.destroy();v._hls=null;}}if(f&&f.src)f.src='';}});cur=idx;}let sT;feed.addEventListener('scroll',()=>{clearTimeout(sT);sT=setTimeout(()=>{const rect=feed.getBoundingClientRect();const ctr=rect.top+rect.height/2;let best=-1,bestD=1e9;slides.forEach((sl,i)=>{const d=Math.abs(sl.getBoundingClientRect().top+sl.getBoundingClientRect().height/2-ctr);if(d<bestD){bestD=d;best=i;}});if(best>=0)activate(best);},150);});setTimeout(()=>activate(0),300);}
|
| 74 |
init();
|
| 75 |
+
|
| 76 |
+
/* AI wall + rewrite - append only, keeps existing features */
|
| 77 |
+
(function(){
|
| 78 |
+
if(window.__AI_WALL_PATCH__) return; window.__AI_WALL_PATCH__=true;
|
| 79 |
+
function esc(s){return String(s||'').replace(/[&<>"']/g,function(m){return {'&':'&','<':'<','>':'>','"':'"',"'":'''}[m]})}
|
| 80 |
+
async function j(url,ms){const c=new AbortController();const t=setTimeout(()=>c.abort(),ms||8000);try{return await fetch(url,{signal:c.signal}).then(r=>r.json())}finally{clearTimeout(t)}}
|
| 81 |
+
window.aiWallLoad = async function(){
|
| 82 |
+
try{
|
| 83 |
+
const home=document.getElementById('view-home'); if(!home || home.querySelector('[data-aiwall="1"]')) return;
|
| 84 |
+
const data=await j('/api/wall',6000); const posts=(data&&data.posts)||[]; if(!posts.length) return;
|
| 85 |
+
const wrap=document.createElement('div'); wrap.className='slider-wrap aiw-wrap'; wrap.dataset.aiwall='1';
|
| 86 |
+
let h='<div class="slider-header"><span class="slider-label">🧱 Tường AI</span><span style="font-size:10px;color:#777">Bài viết AI viết lại</span></div><div class="slider-track">';
|
| 87 |
+
posts.slice(0,30).forEach(function(p){
|
| 88 |
+
h+='<div class="aiw-item"><div class="aiw-thumb">'+(p.img?'<img loading="lazy" src="'+p.img+'">':'')+'</div><div class="aiw-title">'+esc(p.title)+'</div><div class="aiw-text">'+esc(p.text)+'</div><div class="aiw-actions"><button class="primary" onclick="readArticle(\''+String(p.url||'').replace(/'/g,"\\'")+'\')">Đọc</button><button onclick="window.open(\''+String(p.url||'').replace(/'/g,"\\'")+'\',\'_blank\')">Gốc</button></div></div>';
|
| 89 |
+
});
|
| 90 |
+
h+='</div>'; wrap.innerHTML=h;
|
| 91 |
+
const target=document.getElementById('home-lazy')||home; target.insertBefore(wrap,target.firstChild);
|
| 92 |
+
}catch(e){console.warn('aiWallLoad failed',e)}
|
| 93 |
+
};
|
| 94 |
+
window.aiRewriteAndShare = async function(url){
|
| 95 |
+
if(!url) return; if(!confirm('Dùng AI viết lại bài này và đăng lên Tường AI?')) return;
|
| 96 |
+
try{
|
| 97 |
+
const r=await fetch('/api/rewrite_share',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({url:url})});
|
| 98 |
+
const d=await r.json();
|
| 99 |
+
if(d&&d.post){alert('Đã đăng lên Tường AI'); const old=document.querySelector('[data-aiwall="1"]'); if(old) old.remove(); if(typeof aiWallLoad==='function') setTimeout(aiWallLoad,300);} else alert((d&&d.error)||'Không tạo được bài AI');
|
| 100 |
+
}catch(e){alert('Lỗi tạo bài AI')}
|
| 101 |
+
};
|
| 102 |
+
function attachRewriteButton(){
|
| 103 |
+
try{
|
| 104 |
+
const view=document.getElementById('view-article'); if(!view||!view.classList.contains('active')) return;
|
| 105 |
+
const actions=view.querySelector('.article-actions'); if(!actions||actions.querySelector('.aiw-rewrite-btn')) return;
|
| 106 |
+
let url=''; const originBtn=[...actions.querySelectorAll('button')].find(b=>/Gốc|Mở gốc/i.test(b.textContent||''));
|
| 107 |
+
if(originBtn){const m=(originBtn.getAttribute('onclick')||'').match(/window\.open\('([^']+)'/); if(m) url=m[1];}
|
| 108 |
+
if(!url){const a=view.querySelector('a[href^="http"]'); if(a) url=a.href;}
|
| 109 |
+
if(!url && window.__lastArticleUrl) url=window.__lastArticleUrl;
|
| 110 |
+
if(!url) return;
|
| 111 |
+
const b=document.createElement('button'); b.className='aiw-rewrite-btn'; b.textContent='🤖 AI viết lại & đăng tường'; b.onclick=function(){aiRewriteAndShare(url)};
|
| 112 |
+
actions.insertBefore(b,actions.firstChild);
|
| 113 |
+
}catch(e){}
|
| 114 |
+
}
|
| 115 |
+
const oldRead=window.readArticle;
|
| 116 |
+
if(typeof oldRead==='function'){
|
| 117 |
+
window.readArticle=async function(url,source){window.__lastArticleUrl=url; const ret=await oldRead.apply(this,arguments); setTimeout(attachRewriteButton,250); return ret;}
|
| 118 |
+
}
|
| 119 |
+
const oldLoadHome=window.loadHome;
|
| 120 |
+
if(typeof oldLoadHome==='function'){
|
| 121 |
+
window.loadHome=async function(){const ret=await oldLoadHome.apply(this,arguments); setTimeout(aiWallLoad,500); return ret;}
|
| 122 |
+
}
|
| 123 |
+
document.addEventListener('DOMContentLoaded',function(){setTimeout(aiWallLoad,1200);});
|
| 124 |
+
setTimeout(aiWallLoad,2000);
|
| 125 |
+
})();
|
| 126 |
+
|
| 127 |
</script>
|
| 128 |
</body>
|
| 129 |
</html>
|