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-733", "mangaid": "733", "zh_title": "齐木楠雄的灾难", "hant_title": "齊木楠雄的災難", "en_title": "齐木楠雄的灾难 (Bilimanga #733)", "author": "麻生周一", "tags": ["欢乐", "校园", "日常", "超自然", "异能", "奇异幻想", "日本漫画", "漫画"], "zh_desc": "他的名字叫齐木楠雄,是一个超能力者。\n\r\n齐木楠雄拥有著让世人羡慕的超能力才能,但是这对他本人而言却是招致灾难、引来不幸的元凶。\n\r\n因此齐木楠雄会在他人面前隐藏这股力量,打算过著不起眼、不与人有所牵扯的生活,但不知道为什么,某些有隐情的同学就是会跑来纠缠他!?\n\r\n此外还收录了梦幻短篇「超能力者 齐木楠雄的灾难」!!\n\n📚 作品信息:作者 麻生周一 · 评分 10 · 共收录 26 卷 / 282 话章节目录与高清彩页/条漫预览。", "hant_desc": "他的名字叫齊木楠雄,是一個超能力者。\n\r\n齊木楠雄擁有著讓世人羨慕的超能力才能,但是這對他本人而言卻是招致災難、引來不幸的元兇。\n\r\n因此齊木楠雄會在他人面前隱藏這股力量,打算過著不起眼、不與人有所牽扯的生活,但不知道為什麼,某些有隱情的同學就是會跑來糾纏他!?\n\r\n此外還收錄了夢幻短篇「超能力者 齊木楠雄的災難」!!\n\n📚 作品資訊:作者 麻生周一 · 評分 10 · 共收錄 26 卷 / 282 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '齐木楠雄的灾难' (齊木楠雄的災難) by 麻生周一. Includes 26 volumes and 282 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-733/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-733/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-733/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-733/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-733/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-733/page_06.jpg"], "volumes": [{"title_hant": "齊木楠雄的災難 1", "title_zh": "齐木楠雄的灾难 1", "cover_id": 1254744, "first_chap_id": 56893, "cover_url": "https://i.motiezw.com/cover/733/1254744.jpg"}, {"title_hant": "齊木楠雄的災難 2", "title_zh": "齐木楠雄的灾难 2", "cover_id": 1254927, "first_chap_id": 56904, "cover_url": "https://i.motiezw.com/cover/733/1254927.jpg"}, {"title_hant": "齊木楠雄的災難 3", "title_zh": "齐木楠雄的灾难 3", "cover_id": 1255118, "first_chap_id": 56917, "cover_url": "https://i.motiezw.com/cover/733/1255118.jpg"}, {"title_hant": "齊木楠雄的災難 4", "title_zh": "齐木楠雄的灾难 4", "cover_id": 1255307, "first_chap_id": 56929, "cover_url": "https://i.motiezw.com/cover/733/1255307.jpg"}, {"title_hant": "齊木楠雄的災難 5", "title_zh": "齐木楠雄的灾难 5", "cover_id": 1255498, "first_chap_id": 56942, "cover_url": "https://i.motiezw.com/cover/733/1255498.jpg"}, {"title_hant": "齊木楠雄的災難 6", "title_zh": "齐木楠雄的灾难 6", "cover_id": 1258349, "first_chap_id": 57052, "cover_url": "https://i.motiezw.com/cover/733/1258349.jpg"}, {"title_hant": "齊木楠雄的災難 7", "title_zh": "齐木楠雄的灾难 7", "cover_id": 1258539, "first_chap_id": 57065, "cover_url": "https://i.motiezw.com/cover/733/1258539.jpg"}, {"title_hant": "齊木楠雄的災難 8", "title_zh": "齐木楠雄的灾难 8", "cover_id": 1258722, "first_chap_id": 57078, "cover_url": "https://i.motiezw.com/cover/733/1258722.jpg"}, {"title_hant": "齊木楠雄的災難 9", "title_zh": "齐木楠雄的灾难 9", "cover_id": 1258905, "first_chap_id": 57090, "cover_url": "https://i.motiezw.com/cover/733/1258905.jpg"}, {"title_hant": "齊木楠雄的災難 10", "title_zh": "齐木楠雄的灾难 10", "cover_id": 1259088, "first_chap_id": 57102, "cover_url": "https://i.motiezw.com/cover/733/1259088.jpg"}, {"title_hant": "齊木楠雄的災難 11", "title_zh": "齐木楠雄的灾难 11", "cover_id": 1259270, "first_chap_id": 57115, "cover_url": "https://i.motiezw.com/cover/733/1259270.jpg"}, {"title_hant": "齊木楠雄的災難 12", "title_zh": "齐木楠雄的灾难 12", "cover_id": 1259453, "first_chap_id": 57127, "cover_url": "https://i.motiezw.com/cover/733/1259453.jpg"}], "chapters": [{"cid": "56893", "title": "第1x 超能力者的ψ(災)難", "title_zh": "第1x 超能力者的ψ(灾)难"}, {"cid": "56894", "title": "第2x 最糟ψ(最)惡?燃堂力", "title_zh": "第2x 最糟ψ(最)恶?燃堂力"}, {"cid": "56895", "title": "第3x 漆黑之翼海藤瞬", "title_zh": "第3x 漆黑之翼海藤瞬"}, {"cid": "56896", "title": "第4x 三個男人與幼N與警察還有狗", "title_zh": "第4x 三个男人与幼N与警察还有狗"}, {"cid": "56897", "title": "第5x 傳達吧!戀愛的ψgn(Sign)", "title_zh": "第5x 传达吧!恋爱的ψgn(Sign)"}, {"cid": "56898", "title": "第6x 熱血!躲避球(前篇)", "title_zh": "第6x 热血!躲避球(前篇)"}, {"cid": "56899", "title": "第7x 熱血!躲避球(後篇)", "title_zh": "第7x 热血!躲避球(后篇)"}, {"cid": "56900", "title": "第8x 賭上ψ(再)起的戰鬥", "title_zh": "第8x 赌上ψ(再)起的战斗"}, {"cid": "56901", "title": "特別短篇 超能力者齊木楠雄的災難", "title_zh": "特别短篇 超能力者齐木楠雄的灾难"}, {"cid": "56902", "title": "附錄", "title_zh": "附录"}, {"cid": "56904", "title": "第9x 齊木家ψ(再)建?戲劇悻大改造!", "title_zh": "第9x 齐木家ψ(再)建?戏剧悻大改造!"}, {"cid": "56905", "title": "第10x 欺瞞!心靈控制", "title_zh": "第10x 欺瞒!心灵控制"}, {"cid": "56906", "title": "第11x 可疑!暗黑ψ(再)臨!", "title_zh": "第11x 可疑!暗黑ψ(再)临!"}, {"cid": "56907", "title": "第12x 海灘夏季故事", "title_zh": "第12x 海滩夏季故事"}, {"cid": "56908", "title": "第13x ψ(才)貌雙全!照橋心M", "title_zh": "第13x ψ(才)貌双全!照桥心M"}, {"cid": "56909", "title": "第14x 遲來的ψ(再)會!蝶野雨綠", "title_zh": "第14x 迟来的ψ(再)会!蝶野雨绿"}, {"cid": "56910", "title": "第15x 看家的ψ(災)難", "title_zh": "第15x 看家的ψ(灾)难"}, {"cid": "56911", "title": "第16x 學校ψ(再)開!燃堂的憂鬱", "title_zh": "第16x 学校ψ(再)开!燃堂的忧郁"}, {"cid": "56912", "title": "第17x 收我為徒吧!", "title_zh": "第17x 收我为徒吧!"}, {"cid": "56913", "title": "第18x 隔壁班的靈能力者", "title_zh": "第18x 隔壁班的灵能力者"}, {"cid": "56914", "title": "特別短篇 你們家是鬼屋", "title_zh": "特别短篇 你们家是鬼屋"}, {"cid": "56917", "title": "第20x 以無敵的迷ψ(彩)服逃離吧!", "title_zh": "第20x 以无敌的迷ψ(彩)服逃离吧!"}, {"cid": "56918", "title": "第21x 交ψ(往)3個月的危機", "title_zh": "第21x 交ψ(往)3个月的危机"}, {"cid": "56919", "title": "第22x 燃燒吧!PK學園體育ψ(祭)~前篇~", "title_zh": "第22x 燃烧吧!PK学园体育ψ(祭)~前篇~"}, {"cid": "56920", "title": "第23x 燃燒吧!PK學園體育ψ(祭)!~中篇~", "title_zh": "第23x 燃烧吧!PK学园体育ψ(祭)!~中篇~"}, {"cid": "56921", "title": "第24x 燃燒吧!PK學園體育ψ(祭)!! ~後篇~", "title_zh": "第24x 燃烧吧!PK学园体育ψ(祭)!! ~后篇~"}, {"cid": "56922", "title": "第25x 燃燒殆盡的頭髮", "title_zh": "第25x 燃烧殆尽的头发"}, {"cid": "56923", "title": "第26x 不許燃燒!防ψ(災)訓練!", "title_zh": "第26x 不许燃烧!防ψ(灾)训练!"}, {"cid": "56924", "title": "第27x 迷人的ψ(最)高級咖啡凍", "title_zh": "第27x 迷人的ψ(最)高级咖啡冻"}, {"cid": "56925", "title": "第28x 為了不遇上ψ(災)厄…", "title_zh": "第28x 为了不遇上ψ(灾)厄…"}, {"cid": "56926", "title": "第29x 照橋同學ψ(最)大的試煉", "title_zh": "第29x 照桥同学ψ(最)大的试炼"}, {"cid": "56927", "title": "特別短篇 劇團!即興演出", "title_zh": "特别短篇 剧团!即兴演出"}, {"cid": "56929", "title": "第30x 靈能力者鳥束零太的ψ(災)難", "title_zh": "第30x 灵能力者鸟束零太的ψ(灾)难"}, {"cid": "56930", "title": "第31x 阻止!毀滅契機", "title_zh": "第31x 阻止!毁灭契机"}, {"cid": "56931", "title": "第32x 開ψ(催)!JUMP年度祭典", "title_zh": "第32x 开ψ(催)!JUMP年度祭典"}, {"cid": "56932", "title": "第33x 鬧吧!ψ(平)安夜", "title_zh": "第33x 闹吧!ψ(平)安夜"}, {"cid": "56933", "title": "第34x 吵ψ(死人)的新年(前篇)", "title_zh": "第34x 吵ψ(死人)的新年(前篇)"}, {"cid": "56934", "title": "第35x 吵ψ(死人)的新年(後篇)", "title_zh": "第35x 吵ψ(死人)的新年(后篇)"}, {"cid": "56935", "title": "第36x 小ψ(小)王者君臨", "title_zh": "第36x 小ψ(小)王者君临"}, {"cid": "56936", "title": "第37x ψ(最)恐!松崎老師", "title_zh": "第37x ψ(最)恐!松崎老师"}, {"cid": "56937", "title": "第38x 巧克力ψ(祭)典", "title_zh": "第38x 巧克力ψ(祭)典"}, {"cid": "56938", "title": "第39x ψ(最)差最壞?燃堂的父親", "title_zh": "第39x ψ(最)差最坏?燃堂的父亲"}, {"cid": "56939", "title": "第40x 沒有ψ(猜)疑心!齊木久留M", "title_zh": "第40x 没有ψ(猜)疑心!齐木久留M"}, {"cid": "56940", "title": "特別短篇 齊木楠雄的災難&暗殺教室 殺老師VS齊木楠雄~入間市最終決戰~", "title_zh": "特别短篇 齐木楠雄的灾难&暗杀教室 杀老师VS齐木楠雄~入间市最终决战~"}, {"cid": "56942", "title": "第41x 心電感應ψ(消)音器", "title_zh": "第41x 心电感应ψ(消)音器"}, {"cid": "56943", "title": "第42x 擲ψ(骰)吧!波瀾萬丈的期末考", "title_zh": "第42x 掷ψ(骰)吧!波澜万丈的期末考"}, {"cid": "56944", "title": "第43x 超級巨星ψ(再)次登場!", "title_zh": "第43x 超级巨星ψ(再)次登场!"}, {"cid": "56945", "title": "第44x 不得仲ψ(裁)!? 燃堂vs海藤!", "title_zh": "第44x 不得仲ψ(裁)!? 燃堂vs海藤!"}, {"cid": "56946", "title": "第45x 這次一定要ψ(再)會!蝶野雨綠(前篇)", "title_zh": "第45x 这次一定要ψ(再)会!蝶野雨绿(前篇)"}, {"cid": "56947", "title": "第46x 這次一定要ψ(再)會!蝶野雨綠(後篇)", "title_zh": "第46x 这次一定要ψ(再)会!蝶野雨绿(后篇)"}, {"cid": "56948", "title": "第47x 目良同學的ψ(經)濟狀況", "title_zh": "第47x 目良同学的ψ(经)济状况"}, {"cid": "56949", "title": "第48x ψ(再)度燃燒!體能測驗", "title_zh": "第48x ψ(再)度燃烧!体能测验"}, {"cid": "56950", "title": "第49x 小ψ(小)的戀愛故事", "title_zh": "第49x 小ψ(小)的恋爱故事"}, {"cid": "56951", "title": "第50x 垃圾遊戲ψ(最)新作!奧法納斯物語", "title_zh": "第50x 垃圾游戏ψ(最)新作!奥法纳斯物语"}, {"cid": "56952", "title": "第51x 歡迎回ψ(家)!真魔", "title_zh": "第51x 欢迎回ψ(家)!真魔"}, {"cid": "57052", "title": "第52x ψ(最)適合用來告白?通靈之術", "title_zh": "第52x ψ(最)适合用来告白?通灵之术"}, {"cid": "57053", "title": "第53x 飛吧!改造人類ψ(蘇)打人2號", "title_zh": "第53x 飞吧!改造人类ψ(苏)打人2号"}, {"cid": "57054", "title": "第54x ψ(齊)木楠雄的♀難", "title_zh": "第54x ψ(齐)木楠雄的♀难"}, {"cid": "57055", "title": "第55x 勝利的會是哪一方?命運的分組", "title_zh": "第55x 胜利的会是哪一方?命运的分组"}, {"cid": "57056", "title": "第56x 搭ψ(載)超能力者的客機GO!", "title_zh": "第56x 搭ψ(载)超能力者的客机GO!"}]};
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>