HTML5 在线漫画阅读器 (index.html)
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=3,user-scalable=yes">
<title>放学后桌游俱乐部 - 在线漫画阅读器</title>
<style>
*{box-sizing:border-box;margin:0;padding:0}
body{background:#0d0f17;color:#f1f5f9;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;min-height:100vh;display:flex;flex-direction:column}
header{position:sticky;top:0;z-index:50;background:rgba(13,15,23,0.92);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,0.09);padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px}
.badge{background:linear-gradient(135deg,#ec4899,#8b5cf6);color:#fff;font-size:11px;font-weight:700;padding:3px 8px;border-radius:99px}
.title{font-size:16px;font-weight:700;color:#fff}
.controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
button{background:rgba(255,255,255,0.08);color:#e2e8f0;border:1px solid rgba(255,255,255,0.14);padding:6px 12px;border-radius:8px;font-size:12px;cursor:pointer;transition:.18s}
button:hover,button.active{background:#ec4899;color:#fff;border-color:#ec4899}
.hero{max-width:920px;margin:16px auto;padding:18px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:14px;display:flex;gap:18px;align-items:flex-start}
.hero img{width:120px;height:160px;object-fit:cover;border-radius:10px;flex-shrink:0;box-shadow:0 8px 24px rgba(0,0,0,0.45)}
.hero-meta h1{font-size:20px;margin-bottom:6px}
.hero-meta .sub{font-size:13px;color:#94a3b8;margin-bottom:8px}
.tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.tag{background:rgba(236,72,153,0.16);color:#f472b6;padding:2px 8px;border-radius:6px;font-size:11px}
.desc{font-size:13px;line-height:1.6;color:#cbd5e1}
.reader-wrap{max-width:860px;width:100%;margin:0 auto 40px;padding:0 8px;flex:1}
.scroll-mode .page-card{margin-bottom:10px;background:#161925;border-radius:8px;overflow:hidden;box-shadow:0 6px 20px rgba(0,0,0,0.4)}
.scroll-mode .page-card img{width:100%;height:auto;display:block}
.page-footer{text-align:center;font-size:11px;color:#64748b;padding:4px 0}
.flip-controls{display:none;justify-content:center;align-items:center;gap:14px;margin:14px 0}
.flip-mode .flip-controls{display:flex}
.drawer{display:none;max-width:920px;margin:0 auto 20px;padding:16px;background:rgba(255,255,255,0.04);border-radius:12px;border:1px solid rgba(255,255,255,0.1)}
.drawer.open{display:block}
.chap-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px;margin-top:10px}
.chap-item{padding:8px 10px;background:rgba(255,255,255,0.06);border-radius:8px;font-size:12px;color:#e2e8f0;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chap-item:hover{background:rgba(236,72,153,0.28)}
@media(max-width:600px){.hero{flex-direction:column;align-items:center;text-align:center}.tags{justify-content:center}}
</style>
</head>
<body>
<header>
<div class="brand">
<span class="badge">BILIMANGA · 统一媒体库</span>
<span class="title" id="hdrTitle"></span>
</div>
<div class="controls">
<button id="btnScroll" class="active" onclick="setMode('scroll')">条漫下拉模式</button>
<button id="btnFlip" onclick="setMode('flip')">单页翻页模式</button>
<button onclick="toggleCatalog()">章节目录 (<span id="chapCount">0</span>)</button>
<button onclick="cycleLang()" id="btnLang">繁/簡/EN</button>
</div>
</header>
<section class="hero">
<img id="heroCover" src="" alt="cover">
<div class="hero-meta">
<h1 id="heroTitle"></h1>
<div class="sub" id="heroSub"></div>
<div class="tags" id="heroTags"></div>
<p class="desc" id="heroDesc"></p>
</div>
</section>
<section class="drawer" id="catDrawer">
<h3 style="font-size:14px;margin-bottom:6px">全卷章节目录 (点击切换预览章节)</h3>
<div class="chap-grid" id="chapGrid"></div>
</section>
<div class="reader-wrap scroll-mode" id="readerWrap">
<div class="flip-controls">
<button onclick="stepPage(-1)">◀ 上一页</button>
<span id="pageIndicator" style="font-size:13px;color:#cbd5e1">1 / 1</span>
<button onclick="stepPage(1)">下一页 ▶</button>
</div>
<div id="pagesContainer"></div>
</div>
<script>
const COMIC = {"slug": "bilimanga-793", "mangaid": "793", "zh_title": "放学后桌游俱乐部", "hant_title": "放學後桌遊俱樂部", "en_title": "放学后桌游俱乐部 (Bilimanga #793)", "author": "中道裕大", "tags": ["校园", "日常", "竞技", "欢乐", "恋爱", "校园青春", "日本漫画", "漫画"], "zh_desc": "身在京都却鲜少出门的少女,遇见了骑车掉到河里的少女,两人一起玩「迷路过家家」的游戏,却意外发现了自己不知道的世界。\n\n📚 作品信息:作者 中道裕大 · 评分 10 · 共收录 19 卷 / 102 话章节目录与高清彩页/条漫预览。", "hant_desc": "身在京都卻鮮少出門的少女,遇見了騎車掉到河裡的少女,兩人一起玩「迷路過家家」的遊戲,卻意外發現了自己不知道的世界。\n\n📚 作品資訊:作者 中道裕大 · 評分 10 · 共收錄 19 卷 / 102 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '放学后桌游俱乐部' (放學後桌遊俱樂部) by 中道裕大. Includes 19 volumes and 102 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-793/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-793/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-793/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-793/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-793/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-793/page_06.jpg"], "volumes": [{"title_hant": "放學後桌遊俱樂部 1", "title_zh": "放学后桌游俱乐部 1", "cover_id": 1350257, "first_chap_id": 61869, "cover_url": "https://i.motiezw.com/cover/793/1350257.jpg"}, {"title_hant": "放學後桌遊俱樂部 2", "title_zh": "放学后桌游俱乐部 2", "cover_id": 1350467, "first_chap_id": 61880, "cover_url": "https://i.motiezw.com/cover/793/1350467.jpg"}, {"title_hant": "放學後桌遊俱樂部 3", "title_zh": "放学后桌游俱乐部 3", "cover_id": 1350657, "first_chap_id": 61889, "cover_url": "https://i.motiezw.com/cover/793/1350657.jpg"}, {"title_hant": "放學後桌遊俱樂部 4", "title_zh": "放学后桌游俱乐部 4", "cover_id": 1350853, "first_chap_id": 61897, "cover_url": "https://i.motiezw.com/cover/793/1350853.jpg"}, {"title_hant": "放學後桌遊俱樂部 5", "title_zh": "放学后桌游俱乐部 5", "cover_id": 1351047, "first_chap_id": 61903, "cover_url": "https://i.motiezw.com/cover/793/1351047.jpg"}, {"title_hant": "放學後桌遊俱樂部 6", "title_zh": "放学后桌游俱乐部 6", "cover_id": 1351239, "first_chap_id": 61909, "cover_url": "https://i.motiezw.com/cover/793/1351239.jpg"}, {"title_hant": "放學後桌遊俱樂部 7", "title_zh": "放学后桌游俱乐部 7", "cover_id": 1351440, "first_chap_id": 61916, "cover_url": "https://i.motiezw.com/cover/793/1351440.jpg"}, {"title_hant": "放學後桌遊俱樂部 8", "title_zh": "放学后桌游俱乐部 8", "cover_id": 1351632, "first_chap_id": 61922, "cover_url": "https://i.motiezw.com/cover/793/1351632.jpg"}, {"title_hant": "放學後桌遊俱樂部 9", "title_zh": "放学后桌游俱乐部 9", "cover_id": 1351826, "first_chap_id": 61928, "cover_url": "https://i.motiezw.com/cover/793/1351826.jpg"}, {"title_hant": "放學後桌遊俱樂部 10", "title_zh": "放学后桌游俱乐部 10", "cover_id": 1352020, "first_chap_id": 61934, "cover_url": "https://i.motiezw.com/cover/793/1352020.jpg"}, {"title_hant": "放學後桌遊俱樂部 11", "title_zh": "放学后桌游俱乐部 11", "cover_id": 1352212, "first_chap_id": 61940, "cover_url": "https://i.motiezw.com/cover/793/1352212.jpg"}, {"title_hant": "放學後桌遊俱樂部 12", "title_zh": "放学后桌游俱乐部 12", "cover_id": 1352420, "first_chap_id": 61947, "cover_url": "https://i.motiezw.com/cover/793/1352420.jpg"}], "chapters": [{"cid": "61869", "title": "第1話 你不知道的世界", "title_zh": "第1话 你不知道的世界"}, {"cid": "61870", "title": "第2話 班長的秘密", "title_zh": "第2话 班长的秘密"}, {"cid": "61871", "title": "第3話 馬拉喀什第一的地毯商人", "title_zh": "第3话 马拉喀什第一的地毯商人"}, {"cid": "61872", "title": "第4話 這是蟑螂!", "title_zh": "第4话 这是蟑螂!"}, {"cid": "61873", "title": "第5話 我知道了……!!", "title_zh": "第5话 我知道了……!!"}, {"cid": "61874", "title": "第6話 兩人和一隻", "title_zh": "第6话 两人和一只"}, {"cid": "61875", "title": "第7話 這種溫暖", "title_zh": "第7话 这种温暖"}, {"cid": "61876", "title": "第8話 就只玩一局", "title_zh": "第8话 就只玩一局"}, {"cid": "61877", "title": "第9話 因為是夢想!", "title_zh": "第9话 因为是梦想!"}, {"cid": "61878", "title": "第10話 誰是狼?!", "title_zh": "第10话 谁是狼?!"}, {"cid": "61880", "title": "第11話 哪個更好玩?!", "title_zh": "第11话 哪个更好玩?!"}, {"cid": "61881", "title": "第12話 小孩子的玩具?", "title_zh": "第12话 小孩子的玩具?"}, {"cid": "61882", "title": "第13話 我們是不是在哪裡見過?", "title_zh": "第13话 我们是不是在哪里见过?"}, {"cid": "61883", "title": "第14話 才不是一個人呢", "title_zh": "第14话 才不是一个人呢"}, {"cid": "61884", "title": "第15話 快樂的回憶", "title_zh": "第15话 快乐的回忆"}, {"cid": "61885", "title": "第16話 我沒興趣……", "title_zh": "第16话 我没兴趣……"}, {"cid": "61886", "title": "第17話 她是否明白了呢?", "title_zh": "第17话 她是否明白了呢?"}, {"cid": "61887", "title": "第18話 小綾的真正力量?!", "title_zh": "第18话 小绫的真正力量?!"}, {"cid": "61889", "title": "第19話 翠的正確使用方法", "title_zh": "第19话 翠的正确使用方法"}, {"cid": "61890", "title": "第20話 根本是小菜一碟?!", "title_zh": "第20话 根本是小菜一碟?!"}, {"cid": "61891", "title": "第21話 夏天來了!", "title_zh": "第21话 夏天来了!"}, {"cid": "61893", "title": "第23話 遊戲是一種信息", "title_zh": "第23话 游戏是一种信息"}, {"cid": "61894", "title": "第24話 這是什麼?!", "title_zh": "第24话 这是什么?!"}, {"cid": "61895", "title": "第25話 真讓人不爽!", "title_zh": "第25话 真让人不爽!"}, {"cid": "61897", "title": "第26話 翠的遊戲", "title_zh": "第26话 翠的游戏"}, {"cid": "61898", "title": "第27話 送出Q書!!", "title_zh": "第27话 送出Q书!!"}, {"cid": "61899", "title": "第28話 決一勝負,相親相愛……?!", "title_zh": "第28话 决一胜负,相亲相爱……?!"}, {"cid": "61900", "title": "第29話 祭典……?!", "title_zh": "第29话 祭典……?!"}, {"cid": "61901", "title": "第30話 桌游咖啡廳❤", "title_zh": "第30话 桌游咖啡厅❤"}, {"cid": "61903", "title": "第31話 大家的文化祭", "title_zh": "第31话 大家的文化祭"}, {"cid": "61904", "title": "第32話 惡夢", "title_zh": "第32话 恶梦"}, {"cid": "61905", "title": "第33話 對了!去旅行吧!!", "title_zh": "第33话 对了!去旅行吧!!"}, {"cid": "61906", "title": "第34話 最重要的是開心!", "title_zh": "第34话 最重要的是开心!"}, {"cid": "61907", "title": "第35話 拯救世界吧!!", "title_zh": "第35话 拯救世界吧!!"}, {"cid": "61909", "title": "第36話 資本遊戲是大人的最愛?", "title_zh": "第36话 资本游戏是大人的最爱?"}, {"cid": "61910", "title": "第37話 爸爸教會我的事", "title_zh": "第37话 爸爸教会我的事"}, {"cid": "61911", "title": "第38話 平安夜快樂", "title_zh": "第38话 平安夜快乐"}, {"cid": "61912", "title": "第39話 多告訴我一點大家的事Q吧?", "title_zh": "第39话 多告诉我一点大家的事Q吧?"}, {"cid": "61913", "title": "第40話 姐弟心思", "title_zh": "第40话 姐弟心思"}, {"cid": "61914", "title": "番外 對了!來玩桌游吧", "title_zh": "番外 对了!来玩桌游吧"}, {"cid": "61916", "title": "第41話 所有想做的事。", "title_zh": "第41话 所有想做的事。"}, {"cid": "61918", "title": "第43話 桌游極客", "title_zh": "第43话 桌游极客"}, {"cid": "61919", "title": "第44話 既親近又遙遠的人", "title_zh": "第44话 既亲近又遥远的人"}, {"cid": "61920", "title": "第45話 我最喜歡的地方", "title_zh": "第45话 我最喜欢的地方"}, {"cid": "61922", "title": "第46話 黑貓和毛毛蟲", "title_zh": "第46话 黑猫和毛毛虫"}, {"cid": "61923", "title": "第47話 流浪貓的憂鬱", "title_zh": "第47话 流浪猫的忧郁"}, {"cid": "61924", "title": "第48話 Memorial Lovers", "title_zh": "第48话 Memorial Lovers"}, {"cid": "61925", "title": "第49話 君子入虎穴", "title_zh": "第49话 君子入虎穴"}, {"cid": "61926", "title": "第50話 連接兩人的魔法", "title_zh": "第50话 连接两人的魔法"}, {"cid": "61928", "title": "第51話 學姐x學妹with桌游", "title_zh": "第51话 学姐x学妹with桌游"}, {"cid": "61929", "title": "第52話 孤獨的公主", "title_zh": "第52话 孤独的公主"}, {"cid": "61930", "title": "第53話 傳說中的勇者們", "title_zh": "第53话 传说中的勇者们"}, {"cid": "61931", "title": "第54話 提示為【孤獨一人】", "title_zh": "第54话 提示为【孤独一人】"}, {"cid": "61932", "title": "第55話 傳達心意", "title_zh": "第55话 传达心意"}, {"cid": "61934", "title": "第56話 快樂之前的東西", "title_zh": "第56话 快乐之前的东西"}, {"cid": "61935", "title": "第57話 了不起的學長們", "title_zh": "第57话 了不起的学长们"}, {"cid": "61936", "title": "第58話 我是第一次。", "title_zh": "第58话 我是第一次。"}, {"cid": "61937", "title": "第59話 戀愛勇往直前", "title_zh": "第59话 恋爱勇往直前"}, {"cid": "61938", "title": "第60話 這次輪到我了", "title_zh": "第60话 这次轮到我了"}, {"cid": "61940", "title": "第61話 真心所向", "title_zh": "第61话 真心所向"}]};
let lang = 'zh';
let mode = 'scroll';
let curPage = 0;
function renderMeta() {
const t = lang === 'zh' ? COMIC.zh_title : (lang === 'hant' ? COMIC.hant_title : COMIC.en_title);
const d = lang === 'zh' ? COMIC.zh_desc : (lang === 'hant' ? COMIC.hant_desc : COMIC.en_desc);
document.getElementById('hdrTitle').textContent = t;
document.getElementById('heroTitle').textContent = t;
document.getElementById('heroSub').textContent = `${COMIC.author} · 共 ${COMIC.volumes.length} 卷 / ${COMIC.chapters.length} 话`;
document.getElementById('heroDesc').textContent = d;
document.getElementById('heroCover').src = COMIC.pages[0] || '';
document.getElementById('chapCount').textContent = COMIC.chapters.length;
const tg = document.getElementById('heroTags');
tg.innerHTML = '';
(COMIC.tags || []).forEach(x => {
const s = document.createElement('span');
s.className = 'tag';
s.textContent = x;
tg.appendChild(s);
});
}
function renderCatalog() {
const g = document.getElementById('chapGrid');
g.innerHTML = '';
(COMIC.chapters || []).forEach((c, idx) => {
const d = document.createElement('div');
d.className = 'chap-item';
d.textContent = c.title_zh || c.title;
d.onclick = () => {
curPage = idx % COMIC.pages.length;
if (mode === 'flip') renderPages();
else document.querySelectorAll('.page-card')[curPage]?.scrollIntoView({behavior:'smooth'});
document.getElementById('catDrawer').classList.remove('open');
};
g.appendChild(d);
});
}
function renderPages() {
const wrap = document.getElementById('readerWrap');
wrap.className = 'reader-wrap ' + (mode === 'scroll' ? 'scroll-mode' : 'flip-mode');
const box = document.getElementById('pagesContainer');
box.innerHTML = '';
const list = mode === 'scroll' ? COMIC.pages : [COMIC.pages[curPage]];
list.forEach((url, i) => {
const idx = mode === 'scroll' ? i : curPage;
const card = document.createElement('div');
card.className = 'page-card';
card.innerHTML = `<img src="${url}" loading="lazy" alt="Page ${idx+1}"><div class="page-footer">第 ${idx+1} / ${COMIC.pages.length} 页 · ${COMIC.zh_title}</div>`;
if (mode === 'flip') card.onclick = () => stepPage(1);
box.appendChild(card);
});
document.getElementById('pageIndicator').textContent = `${curPage + 1} / ${COMIC.pages.length}`;
}
function setMode(m) {
mode = m;
document.getElementById('btnScroll').classList.toggle('active', m === 'scroll');
document.getElementById('btnFlip').classList.toggle('active', m === 'flip');
renderPages();
}
function stepPage(delta) {
curPage = (curPage + delta + COMIC.pages.length) % COMIC.pages.length;
renderPages();
}
function toggleCatalog() {
document.getElementById('catDrawer').classList.toggle('open');
}
function cycleLang() {
lang = lang === 'zh' ? 'hant' : (lang === 'hant' ? 'en' : 'zh');
renderMeta();
}
renderMeta();
renderCatalog();
renderPages();
</script>
</body>
</html>