83 lines
3.3 KiB
HTML
83 lines
3.3 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Speaking Lab</title>
|
|
<link rel="stylesheet" href="./styles.css?v=20260604-study-toolbar">
|
|
</head>
|
|
<body>
|
|
<header class="topbar">
|
|
<div class="brand">
|
|
<h1>Speaking Lab</h1>
|
|
</div>
|
|
|
|
<div class="top-actions">
|
|
<form id="loginForm" class="login-form">
|
|
<input id="emailInput" type="email" placeholder="邮箱" autocomplete="email" required>
|
|
<input id="passwordInput" type="password" placeholder="密码" autocomplete="current-password" required>
|
|
<button id="loginBtn" type="submit">登录 / 注册</button>
|
|
</form>
|
|
<div id="userMenu" class="user-menu" hidden>
|
|
<span id="userLabel"></span>
|
|
<button id="logoutBtn" type="button">退出</button>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="study-shell">
|
|
<section class="left-stage">
|
|
<section class="video-panel">
|
|
<div class="video-frame">
|
|
<video id="video" controls preload="metadata" crossorigin="anonymous"></video>
|
|
<div id="emptyVideo" class="empty-video">
|
|
<strong>选择或上传一个视频</strong>
|
|
<span>支持本地 MP4/WebM 和 HLS 地址</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tool-row">
|
|
<div class="recording-controls">
|
|
<button id="recordBtn" type="button" title="录音">录音</button>
|
|
<button id="stopRecordBtn" type="button" disabled title="停止">停止</button>
|
|
<button id="playRecordingBtn" type="button" disabled title="回放我的录音">回放</button>
|
|
</div>
|
|
<div class="sentence-controls">
|
|
<button id="previousBtn" type="button" title="上一句">上一句</button>
|
|
<button id="replayBtn" type="button" title="重播">重播</button>
|
|
<button id="nextBtn" type="button" title="下一句">下一句</button>
|
|
</div>
|
|
<div class="study-side-actions">
|
|
<label class="toggle">
|
|
<input id="loopToggle" type="checkbox">
|
|
<span>循环</span>
|
|
</label>
|
|
<button id="favoriteBtn" type="button">收藏</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="recording-line">
|
|
<span id="recordingStatus">麦克风只在当前浏览器会话中使用。</span>
|
|
<audio id="recordingAudio" controls hidden></audio>
|
|
</div>
|
|
</section>
|
|
</section>
|
|
|
|
<aside class="transcript-panel">
|
|
<div class="transcript-toolbar">
|
|
<div class="tabs">
|
|
<button class="tab active" type="button" data-mode="bilingual">双语</button>
|
|
<button class="tab" type="button" data-mode="english">英文</button>
|
|
<button class="tab" type="button" data-mode="chinese">中文</button>
|
|
</div>
|
|
</div>
|
|
<div id="transcriptList" class="transcript-list">
|
|
<div class="empty-state">上传字幕后,每一句都会变成可点击的片段。</div>
|
|
</div>
|
|
</aside>
|
|
</main>
|
|
|
|
<script src="./app.js?v=20260604-study-toolbar"></script>
|
|
</body>
|
|
</html>
|