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>肌肉魔法使 ─MASHLE─ - 在线漫画阅读器</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-1268", "mangaid": "1268", "zh_title": "肌肉魔法使 ─MASHLE─", "hant_title": "肌肉魔法使 ─MASHLE─", "en_title": "肌肉魔法使 ─MASHLE─ (Bilimanga #1268)", "author": "甲本一", "tags": ["奇幻", "魔法", "战斗", "热血", "校园", "龙傲天", "欢乐", "奇幻冒险"], "zh_desc": "魔法界是个任何人都会使用魔法,并且以使用魔法技术优劣决定地位高低的世界。然而马修是个异类,因为他天生就不会使用魔法。将襁褓中的他捡回家的老爷爷生怕他因此被别人伤害,便从小教他重训,希望他可以用体魄来保护自己……意想不到的是在不断的锻炼之下,马修的肌肉不只能保护自己,更足以粉碎绝大多数的魔法!不正常的奇幻故事就此开始!本作品是非常轻松幽默的奇幻故事,看著马修用肌肉痛电魔法师的感觉真的相当爽快,喜欢搞笑漫画的人应该都会喜欢。\n\n📚 作品信息:作者 甲本一 · 评分 10 · 共收录 18 卷 / 162 话章节目录与高清彩页/条漫预览。", "hant_desc": "魔法界是個任何人都會使用魔法,並且以使用魔法技術優劣決定地位高低的世界。然而馬修是個異類,因為他天生就不會使用魔法。將襁褓中的他撿回家的老爺爺生怕他因此被別人傷害,便從小教他重訓,希望他可以用體魄來保護自己……意想不到的是在不斷的鍛鍊之下,馬修的肌肉不只能保護自己,更足以粉碎絕大多數的魔法!不正常的奇幻故事就此開始!本作品是非常輕鬆幽默的奇幻故事,看著馬修用肌肉痛電魔法師的感覺真的相當爽快,喜歡搞笑漫畫的人應該都會喜歡。\n\n📚 作品資訊:作者 甲本一 · 評分 10 · 共收錄 18 卷 / 162 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '肌肉魔法使 ─MASHLE─' (肌肉魔法使 ─MASHLE─) by 甲本一. Includes 18 volumes and 162 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-1268/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1268/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1268/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1268/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1268/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1268/page_06.jpg"], "volumes": [{"title_hant": "肌肉魔法使 ─MASHLE─ 1", "title_zh": "肌肉魔法使 ─MASHLE─ 1", "cover_id": 2275693, "first_chap_id": 105255, "cover_url": "https://i.motiezw.com/cover/1268/2275693.jpg"}, {"title_hant": "肌肉魔法使 ─MASHLE─ 2", "title_zh": "肌肉魔法使 ─MASHLE─ 2", "cover_id": 2275898, "first_chap_id": 105265, "cover_url": "https://i.motiezw.com/cover/1268/2275898.jpg"}, {"title_hant": "肌肉魔法使 ─MASHLE─ 3", "title_zh": "肌肉魔法使 ─MASHLE─ 3", "cover_id": 2276089, "first_chap_id": 105276, "cover_url": "https://i.motiezw.com/cover/1268/2276089.jpg"}, {"title_hant": "肌肉魔法使 ─MASHLE─ 4", "title_zh": "肌肉魔法使 ─MASHLE─ 4", "cover_id": 2276292, "first_chap_id": 105287, "cover_url": "https://i.motiezw.com/cover/1268/2276292.jpg"}, {"title_hant": "肌肉魔法使 ─MASHLE─ 5", "title_zh": "肌肉魔法使 ─MASHLE─ 5", "cover_id": 2276491, "first_chap_id": 105298, "cover_url": "https://i.motiezw.com/cover/1268/2276491.jpg"}, {"title_hant": "肌肉魔法使 ─MASHLE─ 6", "title_zh": "肌肉魔法使 ─MASHLE─ 6", "cover_id": 2276683, "first_chap_id": 105309, "cover_url": "https://i.motiezw.com/cover/1268/2276683.jpg"}, {"title_hant": "肌肉魔法使 ─MASHLE─ 7", "title_zh": "肌肉魔法使 ─MASHLE─ 7", "cover_id": 2276882, "first_chap_id": 105319, "cover_url": "https://i.motiezw.com/cover/1268/2276882.jpg"}, {"title_hant": "肌肉魔法使 ─MASHLE─ 8", "title_zh": "肌肉魔法使 ─MASHLE─ 8", "cover_id": 2277070, "first_chap_id": 105329, "cover_url": "https://i.motiezw.com/cover/1268/2277070.jpg"}, {"title_hant": "肌肉魔法使 ─MASHLE─ 9", "title_zh": "肌肉魔法使 ─MASHLE─ 9", "cover_id": 2277280, "first_chap_id": 105340, "cover_url": "https://i.motiezw.com/cover/1268/2277280.jpg"}, {"title_hant": "肌肉魔法使 ─MASHLE─ 10", "title_zh": "肌肉魔法使 ─MASHLE─ 10", "cover_id": 2277490, "first_chap_id": 105351, "cover_url": "https://i.motiezw.com/cover/1268/2277490.jpg"}, {"title_hant": "肌肉魔法使 ─MASHLE─ 11", "title_zh": "肌肉魔法使 ─MASHLE─ 11", "cover_id": 2963360, "first_chap_id": 105361, "cover_url": "https://i.motiezw.com/cover/1268/2963360.jpg"}, {"title_hant": "肌肉魔法使 ─MASHLE─ 12", "title_zh": "肌肉魔法使 ─MASHLE─ 12", "cover_id": 2963548, "first_chap_id": 105371, "cover_url": "https://i.motiezw.com/cover/1268/2963548.jpg"}], "chapters": [{"cid": "105255", "title": "第1話 馬修•班地德與不可思議的迷宮", "title_zh": "第1话 马修•班地德与不可思议的迷宫"}, {"cid": "105256", "title": "第2話 馬修•班地德與掃帚競技", "title_zh": "第2话 马修•班地德与扫帚竞技"}, {"cid": "105257", "title": "第3話 馬修•班地德與死之人偶", "title_zh": "第3话 马修•班地德与死之人偶"}, {"cid": "105258", "title": "第4話 馬修•班地德與掃帚對決", "title_zh": "第4话 马修•班地德与扫帚对决"}, {"cid": "105259", "title": "第5話 馬修•班地德與不能惹的人", "title_zh": "第5话 马修•班地德与不能惹的人"}, {"cid": "105260", "title": "第6話 馬修•班地德與學校的規則", "title_zh": "第6话 马修•班地德与学校的规则"}, {"cid": "105261", "title": "第7話 馬修•班地德與千錘百鍊的肌禸", "title_zh": "第7话 马修•班地德与千锤百炼的肌禸"}, {"cid": "105262", "title": "第8話 馬修•班地德與有點強的魔法師", "title_zh": "第8话 马修•班地德与有点强的魔法师"}, {"cid": "105263", "title": "附錄", "title_zh": "附录"}, {"cid": "105265", "title": "第9話 馬修•班地德與哥哥", "title_zh": "第9话 马修•班地德与哥哥"}, {"cid": "105266", "title": "第10話 馬修•班地德與魔藥學的課題", "title_zh": "第10话 马修•班地德与魔药学的课题"}, {"cid": "105267", "title": "第11話 馬修•班地德與沒N人緣的同學", "title_zh": "第11话 马修•班地德与没N人缘的同学"}, {"cid": "105268", "title": "第12話 馬修•班地德與複雜的戀Q", "title_zh": "第12话 马修•班地德与复杂的恋Q"}, {"cid": "105269", "title": "第13話 馬修•班地德與不懷疑的男人", "title_zh": "第13话 马修•班地德与不怀疑的男人"}, {"cid": "105270", "title": "第14話 馬修•班地德與鐵之魔法", "title_zh": "第14话 马修•班地德与铁之魔法"}, {"cid": "105271", "title": "第15話 馬修•班地德與巨大森蠍", "title_zh": "第15话 马修•班地德与巨大森蝎"}, {"cid": "105272", "title": "第16話 馬修•班地德與獨角獸之骨", "title_zh": "第16话 马修•班地德与独角兽之骨"}, {"cid": "105273", "title": "第17話 馬修•班地德與人偶魔法師", "title_zh": "第17话 马修•班地德与人偶魔法师"}, {"cid": "105274", "title": "附錄", "title_zh": "附录"}, {"cid": "105276", "title": "第18話 馬修•班地德與魔法之秤", "title_zh": "第18话 马修•班地德与魔法之秤"}, {"cid": "105277", "title": "第19話 蘭斯•克勞恩與飛刀魔法師", "title_zh": "第19话 兰斯•克劳恩与飞刀魔法师"}, {"cid": "105279", "title": "第21話 馬修•班地德與泡芙護身符", "title_zh": "第21话 马修•班地德与泡芙护身符"}, {"cid": "105280", "title": "第22話 多德•巴雷特與荊棘魔法師", "title_zh": "第22话 多德•巴雷特与荆棘魔法师"}, {"cid": "105281", "title": "第23話 馬修•班地德與狼之魔法師們", "title_zh": "第23话 马修•班地德与狼之魔法师们"}, {"cid": "105282", "title": "第24話 蘭斯•克勞恩與泥之魔法師", "title_zh": "第24话 兰斯•克劳恩与泥之魔法师"}, {"cid": "105283", "title": "第25話 蘭斯•克勞恩與高等魔法", "title_zh": "第25话 兰斯•克劳恩与高等魔法"}, {"cid": "105284", "title": "第26話 馬修•班地德與加速魔法師", "title_zh": "第26话 马修•班地德与加速魔法师"}, {"cid": "105285", "title": "附錄", "title_zh": "附录"}, {"cid": "105287", "title": "第27話 馬修•班地德與速度的高等魔法", "title_zh": "第27话 马修•班地德与速度的高等魔法"}, {"cid": "105288", "title": "第28話 馬修•班地德與破掉的面具", "title_zh": "第28话 马修•班地德与破掉的面具"}, {"cid": "105289", "title": "第29話 多德•巴雷特與龍捲風魔法師", "title_zh": "第29话 多德•巴雷特与龙卷风魔法师"}, {"cid": "105290", "title": "第30話 多德•巴雷特與超強的魔法師", "title_zh": "第30话 多德•巴雷特与超强的魔法师"}, {"cid": "105291", "title": "第31話 馬修•班地德與神覺者男子", "title_zh": "第31话 马修•班地德与神觉者男子"}, {"cid": "105292", "title": "第32話 馬修•班地德與強行滾球", "title_zh": "第32话 马修•班地德与强行滚球"}, {"cid": "105293", "title": "第33話 馬修•班地德與膝頂", "title_zh": "第33话 马修•班地德与膝顶"}, {"cid": "105294", "title": "第34話 馬修•班地德與弱禸強食", "title_zh": "第34话 马修•班地德与弱禸强食"}, {"cid": "105295", "title": "第35話 馬修•班地德與勝利之舞", "title_zh": "第35话 马修•班地德与胜利之舞"}, {"cid": "105296", "title": "附錄", "title_zh": "附录"}, {"cid": "105298", "title": "第36話 馬修•班地德與砂之神覺者", "title_zh": "第36话 马修•班地德与砂之神觉者"}, {"cid": "105299", "title": "第37話 馬修• 班地德與黑雨", "title_zh": "第37话 马修• 班地德与黑雨"}, {"cid": "105300", "title": "第38話 馬修•班地德與魔鏡", "title_zh": "第38话 马修•班地德与魔镜"}, {"cid": "105301", "title": "第39話 馬修•班地德與慶功宴", "title_zh": "第39话 马修•班地德与庆功宴"}, {"cid": "105302", "title": "第40話 馬修•班地德與燭火", "title_zh": "第40话 马修•班地德与烛火"}, {"cid": "105304", "title": "第42話 馬修•班地德與泡芙派對", "title_zh": "第42话 马修•班地德与泡芙派对"}, {"cid": "105305", "title": "第43話 馬修•班地德與魔杖專賣店", "title_zh": "第43话 马修•班地德与魔杖专卖店"}, {"cid": "105306", "title": "第44話 馬修•班地德與老家", "title_zh": "第44话 马修•班地德与老家"}, {"cid": "105307", "title": "附錄", "title_zh": "附录"}, {"cid": "105309", "title": "第45話 雷恩•艾姆斯與刺激的魔法師", "title_zh": "第45话 雷恩•艾姆斯与刺激的魔法师"}, {"cid": "105310", "title": "第46話 雷恩•艾姆斯與被神選上的力量", "title_zh": "第46话 雷恩•艾姆斯与被神选上的力量"}, {"cid": "105311", "title": "第47話 馬修•班地德與選拔測驗", "title_zh": "第47话 马修•班地德与选拔测验"}, {"cid": "105312", "title": "第48話 馬修•班地德與羊之死靈", "title_zh": "第48话 马修•班地德与羊之死灵"}, {"cid": "105313", "title": "第49話 馬修•班地德與強韌的氣球", "title_zh": "第49话 马修•班地德与强韧的气球"}, {"cid": "105314", "title": "第50話 馬修•班地德與蛋白粉", "title_zh": "第50话 马修•班地德与蛋白粉"}, {"cid": "105315", "title": "第51話 馬修•班地德與破掉的水晶", "title_zh": "第51话 马修•班地德与破掉的水晶"}, {"cid": "105316", "title": "第52話 芬恩•艾姆斯與朋友", "title_zh": "第52话 芬恩•艾姆斯与朋友"}, {"cid": "105317", "title": "第53話 馬修•班地德與治癒之杖", "title_zh": "第53话 马修•班地德与治愈之杖"}, {"cid": "105319", "title": "第54話 馬修•班地德與失控的網球", "title_zh": "第54话 马修•班地德与失控的网球"}, {"cid": "105320", "title": "第55話 瑪格麗特•馬卡龍與兩個考生", "title_zh": "第55话 玛格丽特•马卡龙与两个考生"}, {"cid": "105321", "title": "第56話 馬修•班地德與炎之神覺者", "title_zh": "第56话 马修•班地德与炎之神觉者"}, {"cid": "105322", "title": "第57話 馬修•班地德與危險的男生N生配", "title_zh": "第57话 马修•班地德与危险的男生N生配"}]};
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>