forked from iChochy/NCE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·222 lines (211 loc) · 10.8 KB
/
Copy pathindex.html
File metadata and controls
executable file
·222 lines (211 loc) · 10.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<!-- Author: Qim -->
<!-- Blog: https://ichochy.com -->
<!-- Email: Qim.it@icloud.com -->
<!-- FileName: iReader:index.html -->
<!-- Update: 2025/12/6 23:28 -->
<!-- Copyright (c) 2025. -->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
<meta name="description" content="新概念英语 New Concept English 听力与课文播放器,支持课本选择、课程列表、逐句播放与中英对照。" />
<meta name="robots" content="index,follow,max-image-preview:large" />
<link rel="canonical" href="https://nce.ichochy.com/" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="theme-color" content="#f7f3ee" media="(prefers-color-scheme: light)" />
<meta name="theme-color" content="#0f1317" media="(prefers-color-scheme: dark)" />
<link rel="icon" href="favicon.png" type="image/png">
<link rel="apple-touch-icon" href="favicon.png">
<meta property="og:locale" content="zh_CN" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="新概念英语 NCE" />
<meta property="og:title" content="新概念英语 NCE 听力播放器 | New Concept English" />
<meta property="og:description" content="新概念英语 New Concept English 听力与课文播放器,支持课本选择、课程列表、逐句播放与中英对照。" />
<meta property="og:url" content="https://nce.ichochy.com/" />
<meta property="og:image" content="https://nce.ichochy.com/screenshot/pc.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="新概念英语 NCE 听力播放器 | New Concept English" />
<meta name="twitter:description" content="新概念英语 New Concept English 听力与课文播放器,支持课本选择、课程列表、逐句播放与中英对照。" />
<meta name="twitter:image" content="https://nce.ichochy.com/screenshot/pc.png" />
<title>新概念英语 NCE 听力播放器 | New Concept English</title>
<link rel="stylesheet" href="css/style.css" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "新概念英语 NCE",
"url": "https://nce.ichochy.com/",
"description": "新概念英语 New Concept English 听力与课文播放器,支持课本选择、课程列表、逐句播放与中英对照。",
"inLanguage": "zh-CN"
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "新概念英语 NCE 听力播放器",
"url": "https://nce.ichochy.com/",
"applicationCategory": "EducationApplication",
"operatingSystem": "All",
"isAccessibleForFree": true,
"description": "新概念英语 New Concept English 听力与课文播放器,支持课本选择、课程列表、逐句播放与中英对照。",
"inLanguage": "zh-CN",
"image": "https://nce.ichochy.com/screenshot/pc.png"
}
</script>
</head>
<body>
<div id="app">
<header class="app-header">
<div class="header-content">
<h1>新概念英语</h1>
<p class="subtitle">New Concept English</p>
</div>
<!-- 课本选择器已移至下方播放器区域 -->
<div class="header-actions">
<span class="status-pill"><a href="https://ichochy.com" target="_blank">Blog</a></span>
<button id="themeToggle" class="theme-toggle" aria-label="切换主题">
<svg class="sun-icon" width="20" height="20" viewBox="0 0 20 20" fill="none">
<circle cx="10" cy="10" r="4" stroke="currentColor" stroke-width="1.5" />
<path
d="M10 2V4M10 16V18M18 10H16M4 10H2M15.66 15.66L14.24 14.24M5.76 5.76L4.34 4.34M15.66 4.34L14.24 5.76M5.76 14.24L4.34 15.66"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
</svg>
<svg class="moon-icon" width="20" height="20" viewBox="0 0 20 20" fill="none">
<path
d="M17.5 11.18C16.82 11.39 16.11 11.5 15.37 11.5C11.47 11.5 8.31 8.34 8.31 4.44C8.31 3.7 8.42 2.99 8.63 2.31C5.46 3.07 3 5.92 3 9.37C3 13.27 6.16 16.43 10.06 16.43C13.51 16.43 16.36 13.97 17.12 10.8"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</svg>
</button>
</div>
</header>
<div class="container">
<!-- 左侧:Unit列表(桌面端) -->
<aside class="unit-list desktop-only">
<h2>课程列表</h2>
<div id="unitListContainer"></div>
</aside>
<!-- 右侧:课本选择 + 播放器和歌词 -->
<div class="player-column">
<main class="player-section">
<div class="book-info">
<img id="bookCover" src="" alt="课本封面" class="book-cover" />
<div class="unit-info">
<div class="unit-title-group">
<label>
<select class="book-select" id="bookSelect">
<option value="">选择课本</option>
</select>
</label>
<label>
<select id="unitSelect" class="unit-select">
<option value="">选择 Unit</option>
</select>
</label>
</div>
</div>
</div>
<!-- 上一课/下一课导航按钮 -->
<section class="control-panel" aria-label="课程与播放控制区">
<div class="navigation-buttons">
<button id="prevUnitBtn" class="nav-btn prev-btn" title="上一课">
<svg width="16" height="16" viewBox="0 0 20 20" fill="none">
<path d="M12 16L7 11L12 6" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
</svg>
</button>
<button id="playPauseBtn" class="play-btn" aria-label="播放或暂停" disabled>
<svg class="play-icon" width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
<path d="M8 5v14l11-7z" />
</svg>
<svg class="pause-icon" width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
<path d="M6 4h4v16H6V4zm8 0h4v16h-4V4z" />
</svg>
</button>
<button id="nextUnitBtn" class="nav-btn next-btn" title="下一课">
<svg width="16" height="16" viewBox="0 0 20 20" fill="none">
<path d="M8 4L13 9L8 14" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
</svg>
</button>
<button id="speedBtn" class="speed-btn" title="播放速度">
<span id="speedText">1.0x</span>
</button>
<button id="loopToggleBtn" class="loop-toggle-btn" type="button" title="循环播放" aria-label="循环播放" aria-pressed="false">
<!-- 标准循环图标 (off / list 模式) -->
<svg class="loop-icon" width="18" height="18" viewBox="0 0 20 20" fill="none" aria-hidden="true">
<path d="M4.5 7.5a5.5 5.5 0 0 1 9.5-3.3" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M12.5 2.5L15.5 5.5L12.5 8.5" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M15.5 12.5a5.5 5.5 0 0 1-9.5 3.3" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M7.5 17.5L4.5 14.5L7.5 11.5" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<!-- 单句循环图标 (sentence 模式) -->
<svg class="repeat-one-icon" width="18" height="18" viewBox="0 0 20 20" fill="none" aria-hidden="true">
<path d="M4.5 7.5a5.5 5.5 0 0 1 9.5-3.3" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M12.5 2.5L15.5 5.5L12.5 8.5" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M15.5 12.5a5.5 5.5 0 0 1-9.5 3.3" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M7.5 17.5L4.5 14.5L7.5 11.5" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/>
<text x="10" y="12.2" text-anchor="middle" font-size="9" font-weight="800" fill="currentColor" stroke="none">1</text>
</svg>
</button>
<button id="toggleTranslationBtn" class="toggle-translation-btn" type="button" aria-pressed="false">
中
</button>
</div>
<!-- 音频播放器 -->
<div class="audio-player">
<audio id="audioPlayer"></audio>
<div class="progress-container">
<div class="progress-bar" id="progressBar">
<div class="progress-fill" id="progressFill"></div>
<div class="progress-handle" id="progressHandle"></div>
</div>
</div>
</div>
</section>
<!-- 歌词显示区域 -->
<section class="lyrics-container" aria-label="双语歌词区">
<div id="lyricsDisplay" class="lyrics-display">
<p class="placeholder">选择一个Unit开始学习...</p>
</div>
<div class="like-and-support">
<p>--nce.ichochy.com--</p>
<p>❤️❤️❤️</p>
<button id="supportBtn" class="support-btn" type="button">打赏支持</button>
</div>
</section>
</main>
</div>
</div>
<footer class="footer">
<a target="_blank" href="https://ichochy.com"><span>©2026 iChochy.</span></a>
<a href="mailto:me@ichochy.com"><span>邮箱反馈</span></a>
<a target="_blank" href="https://github.com/iChochy/NCE"><span>GitHub</span></a>
<a target="_blank" href="https://github.com/iChochy/NCE/issues"><span>issues</span></a>
</footer>
</div>
<div id="supportModal" class="support-modal" aria-hidden="true" role="dialog" aria-labelledby="supportModalTitle">
<div class="support-modal-card">
<button id="supportCloseBtn" class="support-close-btn" type="button" aria-label="关闭弹窗">×</button>
<h3 id="supportModalTitle">🙏🙏🙏</h3>
<div class="support-text">
<h3>请帮忙点赞、收藏和转发</h3>
<h4>如果内容帮到过您,求打赏一点生命值(可选)</h4>
<h6>工作已停,药费没停</h6>
<h6>80后码农×白血病(CMML)</h6>
<img
class="support-qr"
src="sponsor.jpg"
alt="赞助二维码"
loading="lazy"
/>
<h5>感谢您的善意</h5>
</div>
</div>
</div>
<script type="module" src="js/main.js"></script>
</body>
</html>