-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathindex.html
48 lines (36 loc) · 1.85 KB
/
index.html
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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>语音控制笔记应用</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/shoelace-css/1.0.0-beta16/shoelace.css">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<h1>语音控制笔记应用</h1>
<p class="page-description">可通过语音记笔记的小应用</p>
<h3 class="no-browser-support">您的浏览器不支持Web Speech API,请使用Chrome浏览器打开此应用。</h3>
<div class="app">
<h3>添加新笔记</h3>
<div class="input-single">
<textarea id="note-textarea" placeholder="通过语音或者键盘输入来创建新笔记..." rows="6"></textarea>
</div>
<button id="start-record-btn" title="Start Recording">开始识别语音</button>
<button id="pause-record-btn" title="Pause Recording">暂停识别</button>
<button id="save-note-btn" title="Save Note">保存笔记</button>
<p id="recording-instructions">按下 <strong>开始识别语音</strong> 按钮并按提示给予相关权限。</p>
<h3>历史笔记</h3>
<ul id="notes">
<li>
<p class="no-notes">暂无笔记</p>
</li>
</ul>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="script.js"></script>
</body>
</html>