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>JOJO的奇妙冒险 PART7 飙马野郎 - 在线漫画阅读器</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-1182", "mangaid": "1182", "zh_title": "JOJO的奇妙冒险 PART7 飙马野郎", "hant_title": "JOJO的奇妙冒險 PART7 飆馬野郎", "en_title": "JOJO的奇妙冒险 PART7 飙马野郎 (Bilimanga #1182)", "author": "荒木飞吕彦", "tags": ["奇幻", "冒险", "战斗", "异能", "奇幻冒险", "日本漫画", "漫画", "日漫"], "zh_desc": "1890年,一场世纪大赛「SBR」于美国举开。全长共6000公里,是人类史上第一场骑乘马匹横越北美大陆的比赛!为了拿下高达5千万美元(60亿日元)的冠军奖金,一群强悍的冒险家们正式展开了他们的争战!\n\n📚 作品信息:作者 荒木飞吕彦 · 评分 10 · 共收录 24 卷 / 94 话章节目录与高清彩页/条漫预览。", "hant_desc": "1890年,一場世紀大賽「SBR」於美國舉開。全長共6000公里,是人類史上第一場騎乘馬匹橫越北美大陸的比賽!為了拿下高達5千萬美元(60億日元)的冠軍獎金,一群強悍的冒險家們正式展開了他們的爭戰!\n\n📚 作品資訊:作者 荒木飛呂彥 · 評分 10 · 共收錄 24 卷 / 94 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga 'JOJO的奇妙冒险 PART7 飙马野郎' (JOJO的奇妙冒險 PART7 飆馬野郎) by 荒木飞吕彦. Includes 24 volumes and 94 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-1182/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1182/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1182/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1182/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1182/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1182/page_06.jpg"], "volumes": [{"title_hant": "JOJO的奇妙冒險 PART7 飆馬野郎 1", "title_zh": "JOJO的奇妙冒险 PART7 飙马野郎 1", "cover_id": 2136712, "first_chap_id": 99210, "cover_url": "https://i.motiezw.com/cover/1182/2136712.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART7 飆馬野郎 2", "title_zh": "JOJO的奇妙冒险 PART7 飙马野郎 2", "cover_id": 2136876, "first_chap_id": 99216, "cover_url": "https://i.motiezw.com/cover/1182/2136876.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART7 飆馬野郎 3", "title_zh": "JOJO的奇妙冒险 PART7 飙马野郎 3", "cover_id": 2137049, "first_chap_id": 99224, "cover_url": "https://i.motiezw.com/cover/1182/2137049.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART7 飆馬野郎 4", "title_zh": "JOJO的奇妙冒险 PART7 飙马野郎 4", "cover_id": 2137238, "first_chap_id": 99231, "cover_url": "https://i.motiezw.com/cover/1182/2137238.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART7 飆馬野郎 5", "title_zh": "JOJO的奇妙冒险 PART7 飙马野郎 5", "cover_id": 2137429, "first_chap_id": 99238, "cover_url": "https://i.motiezw.com/cover/1182/2137429.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART7 飆馬野郎 6", "title_zh": "JOJO的奇妙冒险 PART7 飙马野郎 6", "cover_id": 2137624, "first_chap_id": 99243, "cover_url": "https://i.motiezw.com/cover/1182/2137624.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART7 飆馬野郎 7", "title_zh": "JOJO的奇妙冒险 PART7 飙马野郎 7", "cover_id": 2137782, "first_chap_id": 99248, "cover_url": "https://i.motiezw.com/cover/1182/2137782.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART7 飆馬野郎 8", "title_zh": "JOJO的奇妙冒险 PART7 飙马野郎 8", "cover_id": 2137938, "first_chap_id": 99252, "cover_url": "https://i.motiezw.com/cover/1182/2137938.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART7 飆馬野郎 9", "title_zh": "JOJO的奇妙冒险 PART7 飙马野郎 9", "cover_id": 2138099, "first_chap_id": 99256, "cover_url": "https://i.motiezw.com/cover/1182/2138099.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART7 飆馬野郎 10", "title_zh": "JOJO的奇妙冒险 PART7 飙马野郎 10", "cover_id": 2138257, "first_chap_id": 99260, "cover_url": "https://i.motiezw.com/cover/1182/2138257.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART7 飆馬野郎 11", "title_zh": "JOJO的奇妙冒险 PART7 飙马野郎 11", "cover_id": 2138413, "first_chap_id": 99265, "cover_url": "https://i.motiezw.com/cover/1182/2138413.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART7 飆馬野郎 12", "title_zh": "JOJO的奇妙冒险 PART7 飙马野郎 12", "cover_id": 2138580, "first_chap_id": 99269, "cover_url": "https://i.motiezw.com/cover/1182/2138580.jpg"}], "chapters": [{"cid": "99210", "title": "#1『STEEL•BALL•RUN』大賽的記者會", "title_zh": "#1『STEEL•BALL•RUN』大赛的记者会"}, {"cid": "99211", "title": "#2 傑洛•齊貝林", "title_zh": "#2 杰洛•齐贝林"}, {"cid": "99212", "title": "#3 喬尼•喬斯達", "title_zh": "#3 乔尼•乔斯达"}, {"cid": "99213", "title": "#4 1890年9月25日,開始前3小時", "title_zh": "#4 1890年9月25日,开始前3小时"}, {"cid": "99214", "title": "#5 1st. STAGE 15000公尺", "title_zh": "#5 1st. STAGE 15000公尺"}, {"cid": "99216", "title": "#6 乾涸河床;迪亞哥•布蘭多", "title_zh": "#6 干涸河床;迪亚哥•布兰多"}, {"cid": "99217", "title": "#7 上坡路段", "title_zh": "#7 上坡路段"}, {"cid": "99218", "title": "#8 雜木林", "title_zh": "#8 杂木林"}, {"cid": "99219", "title": "#9 下坡路段", "title_zh": "#9 下坡路段"}, {"cid": "99220", "title": "#10 最終直線區!剩2000公尺!", "title_zh": "#10 最终直线区!剩2000公尺!"}, {"cid": "99221", "title": "#11 最終直線區!剩1000公尺!", "title_zh": "#11 最终直线区!剩1000公尺!"}, {"cid": "99222", "title": "番外篇 ~STEEL•BALL•RUN舉辦經過~", "title_zh": "番外篇 ~STEEL•BALL•RUN举办经过~"}, {"cid": "99224", "title": "#12 1st. STAGE優勝無效", "title_zh": "#12 1st. STAGE优胜无效"}, {"cid": "99225", "title": "#13 保安官對曼登•提姆提出的委託", "title_zh": "#13 保安官对曼登•提姆提出的委托"}, {"cid": "99226", "title": "#14 選擇最短路線跨越亞利桑那沙漠", "title_zh": "#14 选择最短路线跨越亚利桑那沙漠"}, {"cid": "99227", "title": "#15 誕生於沙漠的惡棍①", "title_zh": "#15 诞生于沙漠的恶棍①"}, {"cid": "99228", "title": "#16 誕生於沙漠的惡棍②", "title_zh": "#16 诞生于沙漠的恶棍②"}, {"cid": "99229", "title": "#17 誕生於沙漠的惡棍③", "title_zh": "#17 诞生于沙漠的恶棍③"}, {"cid": "99231", "title": "#18 惡魔掌心①", "title_zh": "#18 恶魔掌心①"}, {"cid": "99232", "title": "#19 惡魔掌心②", "title_zh": "#19 恶魔掌心②"}, {"cid": "99234", "title": "#21 傑洛•齊貝林的宿命②", "title_zh": "#21 杰洛•齐贝林的宿命②"}, {"cid": "99235", "title": "#22 來自遙遠國度的恐怖份子①", "title_zh": "#22 来自遥远国度的恐怖份子①"}, {"cid": "99236", "title": "#23 來自遙遠國度的恐怖份子②", "title_zh": "#23 来自遥远国度的恐怖份子②"}, {"cid": "99238", "title": "#24 INTERLUDE(間奏曲)", "title_zh": "#24 INTERLUDE(间奏曲)"}, {"cid": "99239", "title": "#25 牙(TUSK)①", "title_zh": "#25 牙(TUSK)①"}, {"cid": "99240", "title": "#26 牙(TUSK)②", "title_zh": "#26 牙(TUSK)②"}, {"cid": "99241", "title": "#27 牙(TUSK)③", "title_zh": "#27 牙(TUSK)③"}, {"cid": "99243", "title": "#28 駭人惡獸①", "title_zh": "#28 骇人恶兽①"}, {"cid": "99244", "title": "#29 駭人惡獸②", "title_zh": "#29 骇人恶兽②"}, {"cid": "99245", "title": "#30 駭人惡獸③", "title_zh": "#30 骇人恶兽③"}, {"cid": "99246", "title": "附錄", "title_zh": "附录"}, {"cid": "99248", "title": "#31 駭人惡獸④", "title_zh": "#31 骇人恶兽④"}, {"cid": "99249", "title": "#32 3rd. STAGE 終點•卡嫩城", "title_zh": "#32 3rd. STAGE 终点•卡嫩城"}, {"cid": "99250", "title": "#33 男子漢的世界 其①", "title_zh": "#33 男子汉的世界 其①"}, {"cid": "99252", "title": "#34 男子漢的世界 其②", "title_zh": "#34 男子汉的世界 其②"}, {"cid": "99253", "title": "#35 男子漢的世界 其③", "title_zh": "#35 男子汉的世界 其③"}, {"cid": "99254", "title": "#36 綠S墓碑 其①", "title_zh": "#36 绿S墓碑 其①"}, {"cid": "99256", "title": "#37 綠S墓碑 其②", "title_zh": "#37 绿S墓碑 其②"}, {"cid": "99257", "title": "#38 CATCH•THE RAINBOW(在暴風雨之夜)其①", "title_zh": "#38 CATCH•THE RAINBOW(在暴风雨之夜)其①"}, {"cid": "99260", "title": "#40 SLIENT•WAY 其①", "title_zh": "#40 SLIENT•WAY 其①"}, {"cid": "99261", "title": "#41 SLIENT•WAY 其②", "title_zh": "#41 SLIENT•WAY 其②"}, {"cid": "99262", "title": "#42 SLIENT•WAY 其③", "title_zh": "#42 SLIENT•WAY 其③"}, {"cid": "99263", "title": "附錄", "title_zh": "附录"}, {"cid": "99265", "title": "#43 SILENT•WAY 其④", "title_zh": "#43 SILENT•WAY 其④"}, {"cid": "99266", "title": "#44 SILENT•WAY 其⑤", "title_zh": "#44 SILENT•WAY 其⑤"}, {"cid": "99267", "title": "#45 約定之地 甜糖山 其①", "title_zh": "#45 约定之地 甜糖山 其①"}, {"cid": "99269", "title": "#46 約定之地 甜糖山 其②", "title_zh": "#46 约定之地 甜糖山 其②"}, {"cid": "99270", "title": "#47 約定之地 甜糖山 其③", "title_zh": "#47 约定之地 甜糖山 其③"}, {"cid": "99271", "title": "#48 TUBULAR•BELLS 其①", "title_zh": "#48 TUBULAR•BELLS 其①"}, {"cid": "99273", "title": "#49 TUBULAR•BELLS 其②", "title_zh": "#49 TUBULAR•BELLS 其②"}, {"cid": "99274", "title": "#50 TUBULAR•BELLS 其③", "title_zh": "#50 TUBULAR•BELLS 其③"}, {"cid": "99275", "title": "#51 碎裂的鐵球 WRECKING•BALL 其①", "title_zh": "#51 碎裂的铁球 WRECKING•BALL 其①"}, {"cid": "99277", "title": "#52 碎裂的鐵球 WRECKING•BALL 其②", "title_zh": "#52 碎裂的铁球 WRECKING•BALL 其②"}, {"cid": "99278", "title": "#53 碎裂的鐵球 WRECKING•BALL 其③", "title_zh": "#53 碎裂的铁球 WRECKING•BALL 其③"}, {"cid": "99279", "title": "#54 碎裂的鐵球 WRECKING•BALL 其④", "title_zh": "#54 碎裂的铁球 WRECKING•BALL 其④"}, {"cid": "99280", "title": "#55 成為勝利者的資格", "title_zh": "#55 成为胜利者的资格"}, {"cid": "99282", "title": "#56 南北戰爭 其①", "title_zh": "#56 南北战争 其①"}, {"cid": "99284", "title": "#58 南北戰爭 其③", "title_zh": "#58 南北战争 其③"}, {"cid": "99285", "title": "#59 蓋茲堡之夢", "title_zh": "#59 盖兹堡之梦"}, {"cid": "99287", "title": "#60 雙方現況 其①", "title_zh": "#60 双方现况 其①"}]};
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>