Disable browser cache: Add no-cache headers to HTML and fetch requests
This commit is contained in:
parent
0db9ad896d
commit
d74328959e
@ -1,141 +1,144 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="zh-CN">
|
<html lang="zh-CN">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>章节目录 - 阿拉德:剑之回响</title>
|
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
<meta http-equiv="Pragma" content="no-cache">
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
<meta http-equiv="Expires" content="0">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
<title>章节目录 - 阿拉德:剑之回响</title>
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
</head>
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
<body class="chapters-page">
|
<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
||||||
<!-- 导航栏 -->
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<nav class="navbar">
|
</head>
|
||||||
<div class="nav-container">
|
<body class="chapters-page">
|
||||||
<a href="index.html" class="logo">
|
<!-- 导航栏 -->
|
||||||
<span class="logo-icon">⚔️</span>
|
<nav class="navbar">
|
||||||
<span class="logo-text">阿拉德文库</span>
|
<div class="nav-container">
|
||||||
</a>
|
<a href="index.html" class="logo">
|
||||||
<div class="nav-links">
|
<span class="logo-icon">⚔️</span>
|
||||||
<a href="index.html">首页</a>
|
<span class="logo-text">阿拉德文库</span>
|
||||||
<a href="chapters.html" class="active">目录</a>
|
</a>
|
||||||
<a href="wiki.html">设定集</a>
|
<div class="nav-links">
|
||||||
<a href="index.html#about">关于</a>
|
<a href="index.html">首页</a>
|
||||||
</div>
|
<a href="chapters.html" class="active">目录</a>
|
||||||
<div class="nav-actions">
|
<a href="wiki.html">设定集</a>
|
||||||
<button class="theme-toggle" id="themeToggle">
|
<a href="index.html#about">关于</a>
|
||||||
<span class="theme-icon">🌙</span>
|
</div>
|
||||||
</button>
|
<div class="nav-actions">
|
||||||
<button class="menu-toggle" id="menuToggle">
|
<button class="theme-toggle" id="themeToggle">
|
||||||
<span></span>
|
<span class="theme-icon">🌙</span>
|
||||||
<span></span>
|
</button>
|
||||||
<span></span>
|
<button class="menu-toggle" id="menuToggle">
|
||||||
</button>
|
<span></span>
|
||||||
</div>
|
<span></span>
|
||||||
</div>
|
<span></span>
|
||||||
</nav>
|
</button>
|
||||||
|
</div>
|
||||||
<!-- 章节列表头部 -->
|
</div>
|
||||||
<section class="chapters-header">
|
</nav>
|
||||||
<div class="container">
|
|
||||||
<div class="chapters-header-content">
|
<!-- 章节列表头部 -->
|
||||||
<div class="book-mini">
|
<section class="chapters-header">
|
||||||
<div class="mini-cover" style="background: url('images/cover.png') center/cover no-repeat;">
|
<div class="container">
|
||||||
</div>
|
<div class="chapters-header-content">
|
||||||
</div>
|
<div class="book-mini">
|
||||||
<div class="chapters-title">
|
<div class="mini-cover" style="background: url('images/cover.png') center/cover no-repeat;">
|
||||||
<h1>阿拉德:剑之回响</h1>
|
</div>
|
||||||
<p>共 <span id="totalChapters">39</span> 章 · 连载中</p>
|
</div>
|
||||||
</div>
|
<div class="chapters-title">
|
||||||
</div>
|
<h1>阿拉德:剑之回响</h1>
|
||||||
<div class="reading-progress">
|
<p>共 <span id="totalChapters">39</span> 章 · 连载中</p>
|
||||||
<div class="progress-bar">
|
</div>
|
||||||
<div class="progress-fill" id="progressFill"></div>
|
</div>
|
||||||
</div>
|
<div class="reading-progress">
|
||||||
<span class="progress-text" id="progressText">阅读进度 0%</span>
|
<div class="progress-bar">
|
||||||
</div>
|
<div class="progress-fill" id="progressFill"></div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
<span class="progress-text" id="progressText">阅读进度 0%</span>
|
||||||
|
</div>
|
||||||
<!-- 章节列表 -->
|
</div>
|
||||||
<section class="chapters-list">
|
</section>
|
||||||
<div class="container">
|
|
||||||
<div class="chapters-filter">
|
<!-- 章节列表 -->
|
||||||
<div class="filter-tabs">
|
<section class="chapters-list">
|
||||||
<button class="filter-tab active" data-filter="all">全部章节</button>
|
<div class="container">
|
||||||
<button class="filter-tab" data-filter="latest">最近更新</button>
|
<div class="chapters-filter">
|
||||||
<button class="filter-tab" data-filter="unread">未读章节</button>
|
<div class="filter-tabs">
|
||||||
</div>
|
<button class="filter-tab active" data-filter="all">全部章节</button>
|
||||||
<div class="search-box">
|
<button class="filter-tab" data-filter="latest">最近更新</button>
|
||||||
<input type="text" placeholder="搜索章节..." id="searchInput">
|
<button class="filter-tab" data-filter="unread">未读章节</button>
|
||||||
<svg class="search-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
</div>
|
||||||
<circle cx="11" cy="11" r="8"/>
|
<div class="search-box">
|
||||||
<path d="M21 21l-4.35-4.35"/>
|
<input type="text" placeholder="搜索章节..." id="searchInput">
|
||||||
</svg>
|
<svg class="search-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||||
</div>
|
<circle cx="11" cy="11" r="8"/>
|
||||||
</div>
|
<path d="M21 21l-4.35-4.35"/>
|
||||||
|
</svg>
|
||||||
<div class="chapters-timeline" id="chaptersList">
|
</div>
|
||||||
<!-- 章节列表将通过JS动态生成 -->
|
</div>
|
||||||
</div>
|
|
||||||
|
<div class="chapters-timeline" id="chaptersList">
|
||||||
<div class="chapters-pagination">
|
<!-- 章节列表将通过JS动态生成 -->
|
||||||
<button class="btn btn-secondary" disabled>上一页</button>
|
</div>
|
||||||
<div class="page-numbers">
|
|
||||||
<span class="page-current">1</span>
|
<div class="chapters-pagination">
|
||||||
<span class="page-total">/ 1</span>
|
<button class="btn btn-secondary" disabled>上一页</button>
|
||||||
</div>
|
<div class="page-numbers">
|
||||||
<button class="btn btn-secondary" disabled>下一页</button>
|
<span class="page-current">1</span>
|
||||||
</div>
|
<span class="page-total">/ 1</span>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
<button class="btn btn-secondary" disabled>下一页</button>
|
||||||
|
</div>
|
||||||
<!-- 快速操作浮动按钮 -->
|
</div>
|
||||||
<div class="fab-container">
|
</section>
|
||||||
<button class="fab" id="scrollTop" title="回到顶部">
|
|
||||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
<!-- 快速操作浮动按钮 -->
|
||||||
<path d="M18 15l-6-6-6 6"/>
|
<div class="fab-container">
|
||||||
</svg>
|
<button class="fab" id="scrollTop" title="回到顶部">
|
||||||
</button>
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||||
</div>
|
<path d="M18 15l-6-6-6 6"/>
|
||||||
|
</svg>
|
||||||
<!-- 页脚 -->
|
</button>
|
||||||
<footer class="footer">
|
</div>
|
||||||
<div class="container">
|
|
||||||
<div class="footer-content">
|
<!-- 页脚 -->
|
||||||
<div class="footer-brand">
|
<footer class="footer">
|
||||||
<span class="logo-icon">⚔️</span>
|
<div class="container">
|
||||||
<span class="logo-text">阿拉德文库</span>
|
<div class="footer-content">
|
||||||
</div>
|
<div class="footer-brand">
|
||||||
<p class="footer-desc">为《阿拉德:剑之回响》打造的专属阅读平台</p>
|
<span class="logo-icon">⚔️</span>
|
||||||
<div class="footer-links">
|
<span class="logo-text">阿拉德文库</span>
|
||||||
<a href="index.html">首页</a>
|
</div>
|
||||||
<a href="chapters.html">目录</a>
|
<p class="footer-desc">为《阿拉德:剑之回响》打造的专属阅读平台</p>
|
||||||
<a href="index.html#about">关于</a>
|
<div class="footer-links">
|
||||||
</div>
|
<a href="index.html">首页</a>
|
||||||
<p class="footer-copyright">© 2026 阿拉德:剑之回响 · 李策 著</p>
|
<a href="chapters.html">目录</a>
|
||||||
</div>
|
<a href="index.html#about">关于</a>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
<p class="footer-copyright">© 2026 阿拉德:剑之回响 · 李策 著</p>
|
||||||
|
</div>
|
||||||
<script src="js/app.js?v=4"></script>
|
</div>
|
||||||
<script>
|
</footer>
|
||||||
// 页面加载完成后更新总章节数显示
|
|
||||||
document.addEventListener('DOMContentLoaded', async function() {
|
<script src="js/app.js?v=4"></script>
|
||||||
// 等待章节数据加载完成
|
<script>
|
||||||
await loadChaptersData();
|
// 页面加载完成后更新总章节数显示
|
||||||
// 更新总章节数显示
|
document.addEventListener('DOMContentLoaded', async function() {
|
||||||
const totalEl = document.getElementById('totalChapters');
|
// 等待章节数据加载完成
|
||||||
if (totalEl && window.chaptersData) {
|
await loadChaptersData();
|
||||||
totalEl.textContent = window.chaptersData.length;
|
// 更新总章节数显示
|
||||||
}
|
const totalEl = document.getElementById('totalChapters');
|
||||||
});
|
if (totalEl && window.chaptersData) {
|
||||||
|
totalEl.textContent = window.chaptersData.length;
|
||||||
// 章节页面特定逻辑
|
}
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
});
|
||||||
loadChaptersData();
|
|
||||||
});
|
// 章节页面特定逻辑
|
||||||
</script>
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
</body>
|
loadChaptersData();
|
||||||
</html>
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|||||||
@ -1,230 +1,233 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="zh-CN">
|
<html lang="zh-CN">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>阿拉德:剑之回响 - 沉浸式阅读体验</title>
|
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
<meta http-equiv="Pragma" content="no-cache">
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
<meta http-equiv="Expires" content="0">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
<title>阿拉德:剑之回响 - 沉浸式阅读体验</title>
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
</head>
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
<body>
|
<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
||||||
<!-- 导航栏 -->
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<nav class="navbar">
|
</head>
|
||||||
<div class="nav-container">
|
<body>
|
||||||
<a href="index.html" class="logo">
|
<!-- 导航栏 -->
|
||||||
<span class="logo-icon">⚔️</span>
|
<nav class="navbar">
|
||||||
<span class="logo-text">阿拉德文库</span>
|
<div class="nav-container">
|
||||||
</a>
|
<a href="index.html" class="logo">
|
||||||
<div class="nav-links">
|
<span class="logo-icon">⚔️</span>
|
||||||
<a href="index.html" class="active">首页</a>
|
<span class="logo-text">阿拉德文库</span>
|
||||||
<a href="chapters.html">目录</a>
|
</a>
|
||||||
<a href="wiki.html">设定集</a>
|
<div class="nav-links">
|
||||||
<a href="#about">关于</a>
|
<a href="index.html" class="active">首页</a>
|
||||||
</div>
|
<a href="chapters.html">目录</a>
|
||||||
<div class="nav-actions">
|
<a href="wiki.html">设定集</a>
|
||||||
<button class="theme-toggle" id="themeToggle">
|
<a href="#about">关于</a>
|
||||||
<span class="theme-icon">🌙</span>
|
</div>
|
||||||
</button>
|
<div class="nav-actions">
|
||||||
<button class="menu-toggle" id="menuToggle">
|
<button class="theme-toggle" id="themeToggle">
|
||||||
<span></span>
|
<span class="theme-icon">🌙</span>
|
||||||
<span></span>
|
</button>
|
||||||
<span></span>
|
<button class="menu-toggle" id="menuToggle">
|
||||||
</button>
|
<span></span>
|
||||||
</div>
|
<span></span>
|
||||||
</div>
|
<span></span>
|
||||||
</nav>
|
</button>
|
||||||
|
</div>
|
||||||
<!-- 英雄区域 -->
|
</div>
|
||||||
<section class="hero">
|
</nav>
|
||||||
<div class="hero-bg"></div>
|
|
||||||
<div class="hero-particles" id="particles"></div>
|
<!-- 英雄区域 -->
|
||||||
<div class="hero-content">
|
<section class="hero">
|
||||||
<div class="book-showcase">
|
<div class="hero-bg"></div>
|
||||||
<div class="book-cover">
|
<div class="hero-particles" id="particles"></div>
|
||||||
<div class="book-spine"></div>
|
<div class="hero-content">
|
||||||
<div class="book-front" style="background: url('images/cover.png') center/cover no-repeat;">
|
<div class="book-showcase">
|
||||||
<div class="cover-overlay"></div>
|
<div class="book-cover">
|
||||||
<div class="cover-title">
|
<div class="book-spine"></div>
|
||||||
<h1>阿拉德</h1>
|
<div class="book-front" style="background: url('images/cover.png') center/cover no-repeat;">
|
||||||
<h2>剑之回响</h2>
|
<div class="cover-overlay"></div>
|
||||||
</div>
|
<div class="cover-title">
|
||||||
<div class="cover-author">作者:李策</div>
|
<h1>阿拉德</h1>
|
||||||
</div>
|
<h2>剑之回响</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="book-shadow"></div>
|
<div class="cover-author">作者:李策</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="hero-info">
|
</div>
|
||||||
<div class="badge">🔥 热门连载</div>
|
<div class="book-shadow"></div>
|
||||||
<h1 class="hero-title">阿拉德:剑之回响</h1>
|
</div>
|
||||||
<p class="hero-subtitle">DNF同人 · 热血冒险 · 剑魂传说</p>
|
<div class="hero-info">
|
||||||
<p class="hero-description">
|
<div class="badge">🔥 热门连载</div>
|
||||||
跟随林克的脚步,从洛兰小村庄出发,一路成长为剑魂大师。<br>
|
<h1 class="hero-title">阿拉德:剑之回响</h1>
|
||||||
格兰之森的危机、天空之城的秘密、使徒的阴谋……<br>
|
<p class="hero-subtitle">DNF同人 · 热血冒险 · 剑魂传说</p>
|
||||||
一段波澜壮阔的冒险传奇正在展开!
|
<p class="hero-description">
|
||||||
</p>
|
跟随林克的脚步,从洛兰小村庄出发,一路成长为剑魂大师。<br>
|
||||||
<div class="hero-stats">
|
格兰之森的危机、天空之城的秘密、使徒的阴谋……<br>
|
||||||
<div class="stat">
|
一段波澜壮阔的冒险传奇正在展开!
|
||||||
<span class="stat-number">14</span>
|
</p>
|
||||||
<span class="stat-label">已更新章节</span>
|
<div class="hero-stats">
|
||||||
</div>
|
<div class="stat">
|
||||||
<div class="stat">
|
<span class="stat-number">14</span>
|
||||||
<span class="stat-number">50k+</span>
|
<span class="stat-label">已更新章节</span>
|
||||||
<span class="stat-label">总字数</span>
|
</div>
|
||||||
</div>
|
<div class="stat">
|
||||||
<div class="stat">
|
<span class="stat-number">50k+</span>
|
||||||
<span class="stat-number">⭐⭐⭐⭐⭐</span>
|
<span class="stat-label">总字数</span>
|
||||||
<span class="stat-label">读者评分</span>
|
</div>
|
||||||
</div>
|
<div class="stat">
|
||||||
</div>
|
<span class="stat-number">⭐⭐⭐⭐⭐</span>
|
||||||
<div class="hero-actions">
|
<span class="stat-label">读者评分</span>
|
||||||
<a href="reader.html?id=1" class="btn btn-primary">
|
</div>
|
||||||
<span>开始阅读</span>
|
</div>
|
||||||
<svg class="btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
<div class="hero-actions">
|
||||||
<path d="M5 12h14M12 5l7 7-7 7"/>
|
<a href="reader.html?id=1" class="btn btn-primary">
|
||||||
</svg>
|
<span>开始阅读</span>
|
||||||
</a>
|
<svg class="btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||||
<a href="chapters.html" class="btn btn-secondary">
|
<path d="M5 12h14M12 5l7 7-7 7"/>
|
||||||
<span>查看目录</span>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
<a href="chapters.html" class="btn btn-secondary">
|
||||||
</div>
|
<span>查看目录</span>
|
||||||
</div>
|
</a>
|
||||||
</section>
|
</div>
|
||||||
|
</div>
|
||||||
<!-- 最新章节 -->
|
</div>
|
||||||
<section class="latest-chapters">
|
</section>
|
||||||
<div class="container">
|
|
||||||
<div class="section-header">
|
<!-- 最新章节 -->
|
||||||
<h2 class="section-title">
|
<section class="latest-chapters">
|
||||||
<span class="title-icon">📖</span>
|
<div class="container">
|
||||||
最新章节
|
<div class="section-header">
|
||||||
</h2>
|
<h2 class="section-title">
|
||||||
<a href="chapters.html" class="view-all">
|
<span class="title-icon">📖</span>
|
||||||
查看全部
|
最新章节
|
||||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
</h2>
|
||||||
<path d="M9 18l6-6-6-6"/>
|
<a href="chapters.html" class="view-all">
|
||||||
</svg>
|
查看全部
|
||||||
</a>
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||||
</div>
|
<path d="M9 18l6-6-6-6"/>
|
||||||
<div class="chapters-grid" id="latestChapters">
|
</svg>
|
||||||
<!-- 章节卡片将通过JS动态生成 -->
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="chapters-grid" id="latestChapters">
|
||||||
</section>
|
<!-- 章节卡片将通过JS动态生成 -->
|
||||||
|
</div>
|
||||||
<!-- 故事简介 -->
|
</div>
|
||||||
<section class="story-intro" id="about">
|
</section>
|
||||||
<div class="container">
|
|
||||||
<div class="intro-content">
|
<!-- 故事简介 -->
|
||||||
<div class="intro-text">
|
<section class="story-intro" id="about">
|
||||||
<h2 class="section-title">故事简介</h2>
|
<div class="container">
|
||||||
<div class="intro-block">
|
<div class="intro-content">
|
||||||
<h3>🎮 基于DNF60版本经典地图</h3>
|
<div class="intro-text">
|
||||||
<p>严格按照DNF 60版本地图等级推进,从洛兰到格兰之森,从天空之城到天帷巨兽,带你重温经典游戏场景,体验原汁原味的阿拉德大陆。</p>
|
<h2 class="section-title">故事简介</h2>
|
||||||
</div>
|
<div class="intro-block">
|
||||||
<div class="intro-block">
|
<h3>🎮 基于DNF60版本经典地图</h3>
|
||||||
<h3>⚔️ 剑魂的成长之路</h3>
|
<p>严格按照DNF 60版本地图等级推进,从洛兰到格兰之森,从天空之城到天帷巨兽,带你重温经典游戏场景,体验原汁原味的阿拉德大陆。</p>
|
||||||
<p>主角林克从鬼剑士成长为剑魂,掌握武器大师特性,灵活切换五种武器应对不同敌人。太刀、巨剑、短剑、钝器、光剑——在战斗中体验策略与技巧的完美结合。</p>
|
</div>
|
||||||
</div>
|
<div class="intro-block">
|
||||||
<div class="intro-block">
|
<h3>⚔️ 剑魂的成长之路</h3>
|
||||||
<h3>🔥 热血冒险与深度剧情</h3>
|
<p>主角林克从鬼剑士成长为剑魂,掌握武器大师特性,灵活切换五种武器应对不同敌人。太刀、巨剑、短剑、钝器、光剑——在战斗中体验策略与技巧的完美结合。</p>
|
||||||
<p>不只是打怪升级,更是一段关于成长、友情与守护的传奇。赛丽亚的身世之谜、GSD的往事、天空之城的秘密……层层递进的剧情让你欲罢不能。</p>
|
</div>
|
||||||
</div>
|
<div class="intro-block">
|
||||||
</div>
|
<h3>🔥 热血冒险与深度剧情</h3>
|
||||||
<div class="intro-visual">
|
<p>不只是打怪升级,更是一段关于成长、友情与守护的传奇。赛丽亚的身世之谜、GSD的往事、天空之城的秘密……层层递进的剧情让你欲罢不能。</p>
|
||||||
<div class="world-map">
|
</div>
|
||||||
<div class="map-region" style="--delay: 0s">
|
</div>
|
||||||
<span class="region-icon">🌲</span>
|
<div class="intro-visual">
|
||||||
<span class="region-name">洛兰</span>
|
<div class="world-map">
|
||||||
</div>
|
<div class="map-region" style="--delay: 0s">
|
||||||
<div class="map-region" style="--delay: 0.1s">
|
<span class="region-icon">🌲</span>
|
||||||
<span class="region-icon">🏰</span>
|
<span class="region-name">洛兰</span>
|
||||||
<span class="region-name">赫顿玛尔</span>
|
</div>
|
||||||
</div>
|
<div class="map-region" style="--delay: 0.1s">
|
||||||
<div class="map-region" style="--delay: 0.2s">
|
<span class="region-icon">🏰</span>
|
||||||
<span class="region-icon">☁️</span>
|
<span class="region-name">赫顿玛尔</span>
|
||||||
<span class="region-name">天空之城</span>
|
</div>
|
||||||
</div>
|
<div class="map-region" style="--delay: 0.2s">
|
||||||
<div class="map-region" style="--delay: 0.3s">
|
<span class="region-icon">☁️</span>
|
||||||
<span class="region-icon">🐋</span>
|
<span class="region-name">天空之城</span>
|
||||||
<span class="region-name">天帷巨兽</span>
|
</div>
|
||||||
</div>
|
<div class="map-region" style="--delay: 0.3s">
|
||||||
<div class="map-line"></div>
|
<span class="region-icon">🐋</span>
|
||||||
</div>
|
<span class="region-name">天帷巨兽</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="map-line"></div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</div>
|
||||||
|
</div>
|
||||||
<!-- 角色展示 -->
|
</div>
|
||||||
<section class="characters">
|
</section>
|
||||||
<div class="container">
|
|
||||||
<h2 class="section-title center">
|
<!-- 角色展示 -->
|
||||||
<span class="title-icon">👥</span>
|
<section class="characters">
|
||||||
主要角色
|
<div class="container">
|
||||||
</h2>
|
<h2 class="section-title center">
|
||||||
<div class="characters-grid">
|
<span class="title-icon">👥</span>
|
||||||
<div class="character-card">
|
主要角色
|
||||||
<div class="character-avatar">
|
</h2>
|
||||||
<div class="avatar-bg"></div>
|
<div class="characters-grid">
|
||||||
<span class="avatar-icon">🗡️</span>
|
<div class="character-card">
|
||||||
</div>
|
<div class="character-avatar">
|
||||||
<h3>林克</h3>
|
<div class="avatar-bg"></div>
|
||||||
<p class="character-role">主角 · 剑魂</p>
|
<span class="avatar-icon">🗡️</span>
|
||||||
<p class="character-desc">从虚祖出发的鬼剑士,Lv.50剑魂,追求极致剑术,掌握五种武器切换。</p>
|
</div>
|
||||||
</div>
|
<h3>林克</h3>
|
||||||
<div class="character-card">
|
<p class="character-role">主角 · 剑魂</p>
|
||||||
<div class="character-avatar">
|
<p class="character-desc">从虚祖出发的鬼剑士,Lv.50剑魂,追求极致剑术,掌握五种武器切换。</p>
|
||||||
<div class="avatar-bg" style="--hue: 120"></div>
|
</div>
|
||||||
<span class="avatar-icon">✨</span>
|
<div class="character-card">
|
||||||
</div>
|
<div class="character-avatar">
|
||||||
<h3>赛丽亚</h3>
|
<div class="avatar-bg" style="--hue: 120"></div>
|
||||||
<p class="character-role">正宫 · 元素师</p>
|
<span class="avatar-icon">✨</span>
|
||||||
<p class="character-desc">精灵族最后的血脉,林克的正宫女友,温柔善良,与林克在艾尔文防线相遇。</p>
|
</div>
|
||||||
</div>
|
<h3>赛丽亚</h3>
|
||||||
<div class="character-card">
|
<p class="character-role">正宫 · 元素师</p>
|
||||||
<div class="character-avatar">
|
<p class="character-desc">精灵族最后的血脉,林克的正宫女友,温柔善良,与林克在艾尔文防线相遇。</p>
|
||||||
<div class="avatar-bg" style="--hue: 200"></div>
|
</div>
|
||||||
<span class="avatar-icon">📖</span>
|
<div class="character-card">
|
||||||
</div>
|
<div class="character-avatar">
|
||||||
<h3>奥菲利亚</h3>
|
<div class="avatar-bg" style="--hue: 200"></div>
|
||||||
<p class="character-role">侧室 · GBL教</p>
|
<span class="avatar-icon">📖</span>
|
||||||
<p class="character-desc">GBL教幸存者,天帷巨兽篇加入后宫,与赛丽亚姐妹相称,共同侍奉林克。</p>
|
</div>
|
||||||
</div>
|
<h3>奥菲利亚</h3>
|
||||||
<div class="character-card">
|
<p class="character-role">侧室 · GBL教</p>
|
||||||
<div class="character-avatar">
|
<p class="character-desc">GBL教幸存者,天帷巨兽篇加入后宫,与赛丽亚姐妹相称,共同侍奉林克。</p>
|
||||||
<div class="avatar-bg" style="--hue: 280"></div>
|
</div>
|
||||||
<span class="avatar-icon">🔮</span>
|
<div class="character-card">
|
||||||
</div>
|
<div class="character-avatar">
|
||||||
<h3>莎兰</h3>
|
<div class="avatar-bg" style="--hue: 280"></div>
|
||||||
<p class="character-role">暧昧 · 大魔导师</p>
|
<span class="avatar-icon">🔮</span>
|
||||||
<p class="character-desc">西海岸魔法师公会会长,与林克暧昧互动,暗精灵委托篇的重要角色。</p>
|
</div>
|
||||||
</div>
|
<h3>莎兰</h3>
|
||||||
</div>
|
<p class="character-role">暧昧 · 大魔导师</p>
|
||||||
</div>
|
<p class="character-desc">西海岸魔法师公会会长,与林克暧昧互动,暗精灵委托篇的重要角色。</p>
|
||||||
</section>
|
</div>
|
||||||
|
</div>
|
||||||
<!-- 页脚 -->
|
</div>
|
||||||
<footer class="footer">
|
</section>
|
||||||
<div class="container">
|
|
||||||
<div class="footer-content">
|
<!-- 页脚 -->
|
||||||
<div class="footer-brand">
|
<footer class="footer">
|
||||||
<span class="logo-icon">⚔️</span>
|
<div class="container">
|
||||||
<span class="logo-text">阿拉德文库</span>
|
<div class="footer-content">
|
||||||
</div>
|
<div class="footer-brand">
|
||||||
<p class="footer-desc">为《阿拉德:剑之回响》打造的专属阅读平台</p>
|
<span class="logo-icon">⚔️</span>
|
||||||
<div class="footer-links">
|
<span class="logo-text">阿拉德文库</span>
|
||||||
<a href="index.html">首页</a>
|
</div>
|
||||||
<a href="chapters.html">目录</a>
|
<p class="footer-desc">为《阿拉德:剑之回响》打造的专属阅读平台</p>
|
||||||
<a href="#about">关于</a>
|
<div class="footer-links">
|
||||||
</div>
|
<a href="index.html">首页</a>
|
||||||
<p class="footer-copyright">© 2026 阿拉德:剑之回响 · 李策 著</p>
|
<a href="chapters.html">目录</a>
|
||||||
</div>
|
<a href="#about">关于</a>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
<p class="footer-copyright">© 2026 阿拉德:剑之回响 · 李策 著</p>
|
||||||
|
</div>
|
||||||
<script src="js/app.js?v=4"></script>
|
</div>
|
||||||
</body>
|
</footer>
|
||||||
</html>
|
|
||||||
|
<script src="js/app.js?v=4"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -1,448 +1,451 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="zh-CN">
|
<html lang="zh-CN">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>{{CHAPTER_TITLE}} - 阿拉德:剑之回响</title>
|
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
<meta http-equiv="Pragma" content="no-cache">
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
<meta http-equiv="Expires" content="0">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
|
<title>{{CHAPTER_TITLE}} - 阿拉德:剑之回响</title>
|
||||||
<style>
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
:root {
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
--bg-primary: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
|
<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
|
||||||
--text-primary: #e0e0e0;
|
<style>
|
||||||
--text-secondary: #888;
|
:root {
|
||||||
--accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
--bg-primary: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
|
||||||
--border-color: rgba(255,255,255,0.1);
|
--text-primary: #e0e0e0;
|
||||||
--btn-bg: rgba(255,255,255,0.1);
|
--text-secondary: #888;
|
||||||
--btn-hover: rgba(255,255,255,0.2);
|
--accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||||
}
|
--border-color: rgba(255,255,255,0.1);
|
||||||
|
--btn-bg: rgba(255,255,255,0.1);
|
||||||
[data-theme="light"] {
|
--btn-hover: rgba(255,255,255,0.2);
|
||||||
--bg-primary: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
}
|
||||||
--text-primary: #333;
|
|
||||||
--text-secondary: #666;
|
[data-theme="light"] {
|
||||||
--border-color: rgba(0,0,0,0.1);
|
--bg-primary: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
||||||
--btn-bg: rgba(0,0,0,0.05);
|
--text-primary: #333;
|
||||||
--btn-hover: rgba(0,0,0,0.1);
|
--text-secondary: #666;
|
||||||
}
|
--border-color: rgba(0,0,0,0.1);
|
||||||
|
--btn-bg: rgba(0,0,0,0.05);
|
||||||
* {
|
--btn-hover: rgba(0,0,0,0.1);
|
||||||
margin: 0;
|
}
|
||||||
padding: 0;
|
|
||||||
box-sizing: border-box;
|
* {
|
||||||
}
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
body {
|
box-sizing: border-box;
|
||||||
font-family: 'Noto Serif SC', serif;
|
}
|
||||||
background: var(--bg-primary);
|
|
||||||
color: var(--text-primary);
|
body {
|
||||||
line-height: 1.8;
|
font-family: 'Noto Serif SC', serif;
|
||||||
min-height: 100vh;
|
background: var(--bg-primary);
|
||||||
transition: all 0.3s ease;
|
color: var(--text-primary);
|
||||||
}
|
line-height: 1.8;
|
||||||
|
min-height: 100vh;
|
||||||
.container {
|
transition: all 0.3s ease;
|
||||||
max-width: 800px;
|
}
|
||||||
margin: 0 auto;
|
|
||||||
padding: 20px;
|
.container {
|
||||||
padding-bottom: 120px;
|
max-width: 800px;
|
||||||
}
|
margin: 0 auto;
|
||||||
|
padding: 20px;
|
||||||
/* 顶部导航 */
|
padding-bottom: 120px;
|
||||||
.top-nav {
|
}
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
/* 顶部导航 */
|
||||||
left: 0;
|
.top-nav {
|
||||||
right: 0;
|
position: fixed;
|
||||||
background: rgba(0,0,0,0.3);
|
top: 0;
|
||||||
backdrop-filter: blur(10px);
|
left: 0;
|
||||||
border-bottom: 1px solid var(--border-color);
|
right: 0;
|
||||||
z-index: 1000;
|
background: rgba(0,0,0,0.3);
|
||||||
padding: 10px 20px;
|
backdrop-filter: blur(10px);
|
||||||
}
|
border-bottom: 1px solid var(--border-color);
|
||||||
|
z-index: 1000;
|
||||||
.top-nav-content {
|
padding: 10px 20px;
|
||||||
max-width: 800px;
|
}
|
||||||
margin: 0 auto;
|
|
||||||
display: flex;
|
.top-nav-content {
|
||||||
justify-content: space-between;
|
max-width: 800px;
|
||||||
align-items: center;
|
margin: 0 auto;
|
||||||
}
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
.nav-link {
|
align-items: center;
|
||||||
color: var(--text-primary);
|
}
|
||||||
text-decoration: none;
|
|
||||||
font-family: 'Noto Sans SC', sans-serif;
|
.nav-link {
|
||||||
font-size: 14px;
|
color: var(--text-primary);
|
||||||
padding: 8px 16px;
|
text-decoration: none;
|
||||||
background: var(--btn-bg);
|
font-family: 'Noto Sans SC', sans-serif;
|
||||||
border: 1px solid var(--border-color);
|
font-size: 14px;
|
||||||
border-radius: 8px;
|
padding: 8px 16px;
|
||||||
transition: all 0.3s ease;
|
background: var(--btn-bg);
|
||||||
}
|
border: 1px solid var(--border-color);
|
||||||
|
border-radius: 8px;
|
||||||
.nav-link:hover {
|
transition: all 0.3s ease;
|
||||||
background: var(--btn-hover);
|
}
|
||||||
}
|
|
||||||
|
.nav-link:hover {
|
||||||
.chapter-header {
|
background: var(--btn-hover);
|
||||||
text-align: center;
|
}
|
||||||
padding: 80px 0 40px;
|
|
||||||
border-bottom: 1px solid var(--border-color);
|
.chapter-header {
|
||||||
margin-bottom: 40px;
|
text-align: center;
|
||||||
}
|
padding: 80px 0 40px;
|
||||||
|
border-bottom: 1px solid var(--border-color);
|
||||||
.chapter-number {
|
margin-bottom: 40px;
|
||||||
font-size: 14px;
|
}
|
||||||
color: var(--text-secondary);
|
|
||||||
letter-spacing: 4px;
|
.chapter-number {
|
||||||
text-transform: uppercase;
|
font-size: 14px;
|
||||||
margin-bottom: 10px;
|
color: var(--text-secondary);
|
||||||
}
|
letter-spacing: 4px;
|
||||||
|
text-transform: uppercase;
|
||||||
.chapter-title {
|
margin-bottom: 10px;
|
||||||
font-size: 32px;
|
}
|
||||||
font-weight: 700;
|
|
||||||
background: var(--accent-gradient);
|
.chapter-title {
|
||||||
-webkit-background-clip: text;
|
font-size: 32px;
|
||||||
-webkit-text-fill-color: transparent;
|
font-weight: 700;
|
||||||
background-clip: text;
|
background: var(--accent-gradient);
|
||||||
margin-bottom: 20px;
|
-webkit-background-clip: text;
|
||||||
}
|
-webkit-text-fill-color: transparent;
|
||||||
|
background-clip: text;
|
||||||
.chapter-meta {
|
margin-bottom: 20px;
|
||||||
font-size: 14px;
|
}
|
||||||
color: var(--text-secondary);
|
|
||||||
}
|
.chapter-meta {
|
||||||
|
font-size: 14px;
|
||||||
.chapter-content {
|
color: var(--text-secondary);
|
||||||
font-size: 18px;
|
}
|
||||||
line-height: 2;
|
|
||||||
text-align: justify;
|
.chapter-content {
|
||||||
}
|
font-size: 18px;
|
||||||
|
line-height: 2;
|
||||||
.chapter-content p {
|
text-align: justify;
|
||||||
margin-bottom: 1.5em;
|
}
|
||||||
text-indent: 2em;
|
|
||||||
}
|
.chapter-content p {
|
||||||
|
margin-bottom: 1.5em;
|
||||||
.chapter-content p:first-of-type::first-letter {
|
text-indent: 2em;
|
||||||
font-size: 3em;
|
}
|
||||||
float: left;
|
|
||||||
line-height: 1;
|
.chapter-content p:first-of-type::first-letter {
|
||||||
margin-right: 8px;
|
font-size: 3em;
|
||||||
margin-top: -5px;
|
float: left;
|
||||||
background: var(--accent-gradient);
|
line-height: 1;
|
||||||
-webkit-background-clip: text;
|
margin-right: 8px;
|
||||||
-webkit-text-fill-color: transparent;
|
margin-top: -5px;
|
||||||
background-clip: text;
|
background: var(--accent-gradient);
|
||||||
font-weight: 700;
|
-webkit-background-clip: text;
|
||||||
}
|
-webkit-text-fill-color: transparent;
|
||||||
|
background-clip: text;
|
||||||
/* 固定底部导航 */
|
font-weight: 700;
|
||||||
.fixed-nav {
|
}
|
||||||
position: fixed;
|
|
||||||
bottom: 0;
|
/* 固定底部导航 */
|
||||||
left: 0;
|
.fixed-nav {
|
||||||
right: 0;
|
position: fixed;
|
||||||
background: rgba(0,0,0,0.3);
|
bottom: 0;
|
||||||
backdrop-filter: blur(10px);
|
left: 0;
|
||||||
border-top: 1px solid var(--border-color);
|
right: 0;
|
||||||
z-index: 1000;
|
background: rgba(0,0,0,0.3);
|
||||||
padding: 15px 20px;
|
backdrop-filter: blur(10px);
|
||||||
}
|
border-top: 1px solid var(--border-color);
|
||||||
|
z-index: 1000;
|
||||||
.fixed-nav-content {
|
padding: 15px 20px;
|
||||||
max-width: 800px;
|
}
|
||||||
margin: 0 auto;
|
|
||||||
display: flex;
|
.fixed-nav-content {
|
||||||
justify-content: space-between;
|
max-width: 800px;
|
||||||
align-items: center;
|
margin: 0 auto;
|
||||||
}
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
.nav-btn {
|
align-items: center;
|
||||||
padding: 12px 24px;
|
}
|
||||||
background: var(--btn-bg);
|
|
||||||
border: 1px solid var(--border-color);
|
.nav-btn {
|
||||||
border-radius: 8px;
|
padding: 12px 24px;
|
||||||
color: var(--text-primary);
|
background: var(--btn-bg);
|
||||||
text-decoration: none;
|
border: 1px solid var(--border-color);
|
||||||
transition: all 0.3s ease;
|
border-radius: 8px;
|
||||||
font-family: 'Noto Sans SC', sans-serif;
|
color: var(--text-primary);
|
||||||
font-size: 14px;
|
text-decoration: none;
|
||||||
cursor: pointer;
|
transition: all 0.3s ease;
|
||||||
}
|
font-family: 'Noto Sans SC', sans-serif;
|
||||||
|
font-size: 14px;
|
||||||
.nav-btn:hover {
|
cursor: pointer;
|
||||||
background: var(--btn-hover);
|
}
|
||||||
transform: translateY(-2px);
|
|
||||||
}
|
.nav-btn:hover {
|
||||||
|
background: var(--btn-hover);
|
||||||
.nav-btn.disabled {
|
transform: translateY(-2px);
|
||||||
opacity: 0.3;
|
}
|
||||||
cursor: not-allowed;
|
|
||||||
pointer-events: none;
|
.nav-btn.disabled {
|
||||||
}
|
opacity: 0.3;
|
||||||
|
cursor: not-allowed;
|
||||||
/* 右侧滚动按钮 */
|
pointer-events: none;
|
||||||
.scroll-buttons {
|
}
|
||||||
position: fixed;
|
|
||||||
right: 20px;
|
/* 右侧滚动按钮 */
|
||||||
bottom: 90px;
|
.scroll-buttons {
|
||||||
display: flex;
|
position: fixed;
|
||||||
flex-direction: column;
|
right: 20px;
|
||||||
gap: 10px;
|
bottom: 90px;
|
||||||
z-index: 1001;
|
display: flex;
|
||||||
}
|
flex-direction: column;
|
||||||
|
gap: 10px;
|
||||||
.scroll-btn {
|
z-index: 1001;
|
||||||
width: 40px;
|
}
|
||||||
height: 40px;
|
|
||||||
border-radius: 8px;
|
.scroll-btn {
|
||||||
background: var(--btn-bg);
|
width: 40px;
|
||||||
border: 1px solid var(--border-color);
|
height: 40px;
|
||||||
color: var(--text-primary);
|
border-radius: 8px;
|
||||||
cursor: pointer;
|
background: var(--btn-bg);
|
||||||
display: flex;
|
border: 1px solid var(--border-color);
|
||||||
align-items: center;
|
color: var(--text-primary);
|
||||||
justify-content: center;
|
cursor: pointer;
|
||||||
font-size: 16px;
|
display: flex;
|
||||||
transition: all 0.3s ease;
|
align-items: center;
|
||||||
font-family: 'Noto Sans SC', sans-serif;
|
justify-content: center;
|
||||||
}
|
font-size: 16px;
|
||||||
|
transition: all 0.3s ease;
|
||||||
.scroll-btn:hover {
|
font-family: 'Noto Sans SC', sans-serif;
|
||||||
background: var(--btn-hover);
|
}
|
||||||
}
|
|
||||||
|
.scroll-btn:hover {
|
||||||
/* 侧边栏 - 标题固定,内容滚动 */
|
background: var(--btn-hover);
|
||||||
.sidebar {
|
}
|
||||||
position: fixed;
|
|
||||||
right: 20px;
|
/* 侧边栏 - 标题固定,内容滚动 */
|
||||||
top: 50%;
|
.sidebar {
|
||||||
transform: translateY(-50%);
|
position: fixed;
|
||||||
background: rgba(0,0,0,0.5);
|
right: 20px;
|
||||||
backdrop-filter: blur(10px);
|
top: 50%;
|
||||||
border-radius: 12px;
|
transform: translateY(-50%);
|
||||||
border: 1px solid var(--border-color);
|
background: rgba(0,0,0,0.5);
|
||||||
width: 200px;
|
backdrop-filter: blur(10px);
|
||||||
max-height: 70vh;
|
border-radius: 12px;
|
||||||
z-index: 999;
|
border: 1px solid var(--border-color);
|
||||||
display: flex;
|
width: 200px;
|
||||||
flex-direction: column;
|
max-height: 70vh;
|
||||||
}
|
z-index: 999;
|
||||||
|
display: flex;
|
||||||
.sidebar-title {
|
flex-direction: column;
|
||||||
font-size: 14px;
|
}
|
||||||
color: var(--text-secondary);
|
|
||||||
text-transform: uppercase;
|
.sidebar-title {
|
||||||
letter-spacing: 2px;
|
font-size: 14px;
|
||||||
padding: 15px 20px;
|
color: var(--text-secondary);
|
||||||
border-bottom: 1px solid var(--border-color);
|
text-transform: uppercase;
|
||||||
flex-shrink: 0;
|
letter-spacing: 2px;
|
||||||
}
|
padding: 15px 20px;
|
||||||
|
border-bottom: 1px solid var(--border-color);
|
||||||
.sidebar-content {
|
flex-shrink: 0;
|
||||||
overflow-y: auto;
|
}
|
||||||
padding: 10px 20px 20px;
|
|
||||||
flex: 1;
|
.sidebar-content {
|
||||||
scrollbar-width: thin;
|
overflow-y: auto;
|
||||||
scrollbar-color: transparent transparent;
|
padding: 10px 20px 20px;
|
||||||
transition: scrollbar-color 0.3s ease;
|
flex: 1;
|
||||||
}
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: transparent transparent;
|
||||||
.sidebar-content:hover {
|
transition: scrollbar-color 0.3s ease;
|
||||||
scrollbar-color: rgba(255,255,255,0.3) transparent;
|
}
|
||||||
}
|
|
||||||
|
.sidebar-content:hover {
|
||||||
.sidebar-content::-webkit-scrollbar {
|
scrollbar-color: rgba(255,255,255,0.3) transparent;
|
||||||
width: 6px;
|
}
|
||||||
}
|
|
||||||
|
.sidebar-content::-webkit-scrollbar {
|
||||||
.sidebar-content::-webkit-scrollbar-track {
|
width: 6px;
|
||||||
background: transparent;
|
}
|
||||||
}
|
|
||||||
|
.sidebar-content::-webkit-scrollbar-track {
|
||||||
.sidebar-content::-webkit-scrollbar-thumb {
|
background: transparent;
|
||||||
background: transparent;
|
}
|
||||||
border-radius: 3px;
|
|
||||||
transition: background 0.3s ease;
|
.sidebar-content::-webkit-scrollbar-thumb {
|
||||||
}
|
background: transparent;
|
||||||
|
border-radius: 3px;
|
||||||
.sidebar-content:hover::-webkit-scrollbar-thumb {
|
transition: background 0.3s ease;
|
||||||
background: rgba(255,255,255,0.3);
|
}
|
||||||
}
|
|
||||||
|
.sidebar-content:hover::-webkit-scrollbar-thumb {
|
||||||
.sidebar-content:hover::-webkit-scrollbar-thumb:hover {
|
background: rgba(255,255,255,0.3);
|
||||||
background: rgba(255,255,255,0.5);
|
}
|
||||||
}
|
|
||||||
|
.sidebar-content:hover::-webkit-scrollbar-thumb:hover {
|
||||||
[data-theme="light"] .sidebar-content:hover {
|
background: rgba(255,255,255,0.5);
|
||||||
scrollbar-color: rgba(0,0,0,0.3) transparent;
|
}
|
||||||
}
|
|
||||||
|
[data-theme="light"] .sidebar-content:hover {
|
||||||
[data-theme="light"] .sidebar-content:hover::-webkit-scrollbar-thumb {
|
scrollbar-color: rgba(0,0,0,0.3) transparent;
|
||||||
background: rgba(0,0,0,0.3);
|
}
|
||||||
}
|
|
||||||
|
[data-theme="light"] .sidebar-content:hover::-webkit-scrollbar-thumb {
|
||||||
[data-theme="light"] .sidebar-content:hover::-webkit-scrollbar-thumb:hover {
|
background: rgba(0,0,0,0.3);
|
||||||
background: rgba(0,0,0,0.5);
|
}
|
||||||
}
|
|
||||||
|
[data-theme="light"] .sidebar-content:hover::-webkit-scrollbar-thumb:hover {
|
||||||
.sidebar-chapter {
|
background: rgba(0,0,0,0.5);
|
||||||
display: block;
|
}
|
||||||
padding: 8px 0;
|
|
||||||
color: #aaa;
|
.sidebar-chapter {
|
||||||
text-decoration: none;
|
display: block;
|
||||||
font-size: 13px;
|
padding: 8px 0;
|
||||||
border-bottom: 1px solid rgba(255,255,255,0.05);
|
color: #aaa;
|
||||||
transition: all 0.3s ease;
|
text-decoration: none;
|
||||||
line-height: 1.5;
|
font-size: 13px;
|
||||||
}
|
border-bottom: 1px solid rgba(255,255,255,0.05);
|
||||||
|
transition: all 0.3s ease;
|
||||||
.sidebar-chapter:hover {
|
line-height: 1.5;
|
||||||
color: #667eea;
|
}
|
||||||
}
|
|
||||||
|
.sidebar-chapter:hover {
|
||||||
.sidebar-chapter.current {
|
color: #667eea;
|
||||||
color: #667eea;
|
}
|
||||||
font-weight: 600;
|
|
||||||
}
|
.sidebar-chapter.current {
|
||||||
|
color: #667eea;
|
||||||
@media (max-width: 1200px) {
|
font-weight: 600;
|
||||||
.sidebar {
|
}
|
||||||
display: none;
|
|
||||||
}
|
@media (max-width: 1200px) {
|
||||||
}
|
.sidebar {
|
||||||
|
display: none;
|
||||||
@media (max-width: 600px) {
|
}
|
||||||
.chapter-title {
|
}
|
||||||
font-size: 24px;
|
|
||||||
}
|
@media (max-width: 600px) {
|
||||||
|
.chapter-title {
|
||||||
.chapter-content {
|
font-size: 24px;
|
||||||
font-size: 16px;
|
}
|
||||||
}
|
|
||||||
|
.chapter-content {
|
||||||
.fixed-nav-content {
|
font-size: 16px;
|
||||||
gap: 10px;
|
}
|
||||||
}
|
|
||||||
|
.fixed-nav-content {
|
||||||
.nav-btn {
|
gap: 10px;
|
||||||
padding: 10px 15px;
|
}
|
||||||
font-size: 12px;
|
|
||||||
}
|
.nav-btn {
|
||||||
|
padding: 10px 15px;
|
||||||
.scroll-buttons {
|
font-size: 12px;
|
||||||
right: 10px;
|
}
|
||||||
bottom: 80px;
|
|
||||||
}
|
.scroll-buttons {
|
||||||
|
right: 10px;
|
||||||
.scroll-btn {
|
bottom: 80px;
|
||||||
width: 36px;
|
}
|
||||||
height: 36px;
|
|
||||||
}
|
.scroll-btn {
|
||||||
}
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
/* 滚动条样式 */
|
}
|
||||||
.sidebar::-webkit-scrollbar {
|
}
|
||||||
width: 4px;
|
|
||||||
}
|
/* 滚动条样式 */
|
||||||
|
.sidebar::-webkit-scrollbar {
|
||||||
.sidebar::-webkit-scrollbar-track {
|
width: 4px;
|
||||||
background: transparent;
|
}
|
||||||
}
|
|
||||||
|
.sidebar::-webkit-scrollbar-track {
|
||||||
.sidebar::-webkit-scrollbar-thumb {
|
background: transparent;
|
||||||
background: rgba(255,255,255,0.2);
|
}
|
||||||
border-radius: 2px;
|
|
||||||
}
|
.sidebar::-webkit-scrollbar-thumb {
|
||||||
</style>
|
background: rgba(255,255,255,0.2);
|
||||||
</head>
|
border-radius: 2px;
|
||||||
<body>
|
}
|
||||||
<!-- 顶部导航 -->
|
</style>
|
||||||
<nav class="top-nav">
|
</head>
|
||||||
<div class="top-nav-content">
|
<body>
|
||||||
<a href="../index.html" class="nav-link">返回首页</a>
|
<!-- 顶部导航 -->
|
||||||
<button class="nav-link" id="themeToggle">切换主题</button>
|
<nav class="top-nav">
|
||||||
</div>
|
<div class="top-nav-content">
|
||||||
</nav>
|
<a href="../index.html" class="nav-link">返回首页</a>
|
||||||
|
<button class="nav-link" id="themeToggle">切换主题</button>
|
||||||
<div class="container">
|
</div>
|
||||||
<header class="chapter-header">
|
</nav>
|
||||||
<div class="chapter-number">{{CHAPTER_NUMBER}}</div>
|
|
||||||
<h1 class="chapter-title">{{CHAPTER_TITLE}}</h1>
|
<div class="container">
|
||||||
</header>
|
<header class="chapter-header">
|
||||||
|
<div class="chapter-number">{{CHAPTER_NUMBER}}</div>
|
||||||
<article class="chapter-content">
|
<h1 class="chapter-title">{{CHAPTER_TITLE}}</h1>
|
||||||
{{CHAPTER_CONTENT}}
|
</header>
|
||||||
</article>
|
|
||||||
</div>
|
<article class="chapter-content">
|
||||||
|
{{CHAPTER_CONTENT}}
|
||||||
<!-- 固定底部导航 -->
|
</article>
|
||||||
<nav class="fixed-nav">
|
</div>
|
||||||
<div class="fixed-nav-content">
|
|
||||||
<a href="{{PREV_CHAPTER}}" class="nav-btn {{PREV_DISABLED}}">上一章</a>
|
<!-- 固定底部导航 -->
|
||||||
<a href="../chapters.html" class="nav-btn">目录</a>
|
<nav class="fixed-nav">
|
||||||
<a href="{{NEXT_CHAPTER}}" class="nav-btn {{NEXT_DISABLED}}">下一章</a>
|
<div class="fixed-nav-content">
|
||||||
</div>
|
<a href="{{PREV_CHAPTER}}" class="nav-btn {{PREV_DISABLED}}">上一章</a>
|
||||||
</nav>
|
<a href="../chapters.html" class="nav-btn">目录</a>
|
||||||
|
<a href="{{NEXT_CHAPTER}}" class="nav-btn {{NEXT_DISABLED}}">下一章</a>
|
||||||
<!-- 右侧滚动按钮 -->
|
</div>
|
||||||
<div class="scroll-buttons">
|
</nav>
|
||||||
<button class="scroll-btn" id="scrollTop" title="回到顶部">顶</button>
|
|
||||||
<button class="scroll-btn" id="scrollBottom" title="回到底部">底</button>
|
<!-- 右侧滚动按钮 -->
|
||||||
</div>
|
<div class="scroll-buttons">
|
||||||
|
<button class="scroll-btn" id="scrollTop" title="回到顶部">顶</button>
|
||||||
<!-- 侧边栏章节导航 -->
|
<button class="scroll-btn" id="scrollBottom" title="回到底部">底</button>
|
||||||
<aside class="sidebar">
|
</div>
|
||||||
<div class="sidebar-title">章节导航</div>
|
|
||||||
<div class="sidebar-content" id="sidebarContent">
|
<!-- 侧边栏章节导航 -->
|
||||||
{{SIDEBAR_CHAPTERS}}
|
<aside class="sidebar">
|
||||||
</div>
|
<div class="sidebar-title">章节导航</div>
|
||||||
</aside>
|
<div class="sidebar-content" id="sidebarContent">
|
||||||
|
{{SIDEBAR_CHAPTERS}}
|
||||||
<script>
|
</div>
|
||||||
// 记录阅读进度
|
</aside>
|
||||||
let readChapters = JSON.parse(localStorage.getItem('readChapters') || '[]');
|
|
||||||
if (!readChapters.includes({{CHAPTER_ID}})) {
|
<script>
|
||||||
readChapters.push({{CHAPTER_ID}});
|
// 记录阅读进度
|
||||||
localStorage.setItem('readChapters', JSON.stringify(readChapters));
|
let readChapters = JSON.parse(localStorage.getItem('readChapters') || '[]');
|
||||||
}
|
if (!readChapters.includes({{CHAPTER_ID}})) {
|
||||||
|
readChapters.push({{CHAPTER_ID}});
|
||||||
// 主题切换
|
localStorage.setItem('readChapters', JSON.stringify(readChapters));
|
||||||
const themeToggle = document.getElementById('themeToggle');
|
}
|
||||||
const savedTheme = localStorage.getItem('theme') || 'dark';
|
|
||||||
document.documentElement.setAttribute('data-theme', savedTheme);
|
// 主题切换
|
||||||
themeToggle.textContent = savedTheme === 'dark' ? '浅色' : '深色';
|
const themeToggle = document.getElementById('themeToggle');
|
||||||
|
const savedTheme = localStorage.getItem('theme') || 'dark';
|
||||||
themeToggle.addEventListener('click', () => {
|
document.documentElement.setAttribute('data-theme', savedTheme);
|
||||||
const currentTheme = document.documentElement.getAttribute('data-theme');
|
themeToggle.textContent = savedTheme === 'dark' ? '浅色' : '深色';
|
||||||
const newTheme = currentTheme === 'dark' ? 'light' : 'dark';
|
|
||||||
document.documentElement.setAttribute('data-theme', newTheme);
|
themeToggle.addEventListener('click', () => {
|
||||||
localStorage.setItem('theme', newTheme);
|
const currentTheme = document.documentElement.getAttribute('data-theme');
|
||||||
themeToggle.textContent = newTheme === 'dark' ? '浅色' : '深色';
|
const newTheme = currentTheme === 'dark' ? 'light' : 'dark';
|
||||||
});
|
document.documentElement.setAttribute('data-theme', newTheme);
|
||||||
|
localStorage.setItem('theme', newTheme);
|
||||||
// 滚动到顶部
|
themeToggle.textContent = newTheme === 'dark' ? '浅色' : '深色';
|
||||||
document.getElementById('scrollTop').addEventListener('click', () => {
|
});
|
||||||
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
||||||
});
|
// 滚动到顶部
|
||||||
|
document.getElementById('scrollTop').addEventListener('click', () => {
|
||||||
// 滚动到底部
|
window.scrollTo({ top: 0, behavior: 'smooth' });
|
||||||
document.getElementById('scrollBottom').addEventListener('click', () => {
|
});
|
||||||
window.scrollTo({ top: document.body.scrollHeight, behavior: 'smooth' });
|
|
||||||
});
|
// 滚动到底部
|
||||||
|
document.getElementById('scrollBottom').addEventListener('click', () => {
|
||||||
// 页面加载时,侧边栏自动滚动到当前章节
|
window.scrollTo({ top: document.body.scrollHeight, behavior: 'smooth' });
|
||||||
window.addEventListener('load', () => {
|
});
|
||||||
const sidebarContent = document.getElementById('sidebarContent');
|
|
||||||
const currentChapter = sidebarContent.querySelector('.current');
|
// 页面加载时,侧边栏自动滚动到当前章节
|
||||||
if (currentChapter) {
|
window.addEventListener('load', () => {
|
||||||
currentChapter.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
const sidebarContent = document.getElementById('sidebarContent');
|
||||||
}
|
const currentChapter = sidebarContent.querySelector('.current');
|
||||||
});
|
if (currentChapter) {
|
||||||
</script>
|
currentChapter.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
||||||
</body>
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in New Issue
Block a user