-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdictation.html
More file actions
104 lines (101 loc) · 5.09 KB
/
dictation.html
File metadata and controls
104 lines (101 loc) · 5.09 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dictation Practice</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="dictation.css">
<script src="https://cdn.jsdelivr.net/npm/diff/dist/diff.min.js"></script>
</head>
<body>
<header class="top-bar">
<h1>Dictation Practice</h1>
<div class="top-bar-controls">
<button id="menu-toggle-btn" class="menu-toggle-btn">☰</button>
</div>
</header>
<div class="dictation-page-container">
<div id="dictation-container">
<main id="main-content">
<div id="text-display-container">
<div id="text-display" class="text-display-styling">
<!-- Spans will be generated here -->
</div>
</div>
<textarea id="writing-input" class="text-display-styling" autocomplete="off" placeholder="Start typing here..."></textarea>
<div id="hotkey-bar">
<button id="toggle-hidden-btn">Toggle Hidden Text (Esc)</button>
<button id="repeat-word-btn">Repeat Word (Tab)</button>
</div>
</main>
</div>
<div id="config-panel">
<h2>Settings</h2>
<div class="config-section">
<h3>Appearance</h3>
<div class="config-grid">
<label for="font-size-select">Font Size:</label>
<select id="font-size-select">
<option value="font-size-20">20px</option>
<option value="font-size-24">24px</option>
<option value="font-size-28">28px</option>
<option value="font-size-32">32px</option>
<option value="font-size-40">40px</option>
</select>
<label for="font-family-select">Font Family:</label>
<select id="font-family-select">
<option value="font-family-arial">Arial</option>
<option value="font-family-verdana">Verdana</option>
<option value="font-family-times-new-roman">Times New Roman</option>
<option value="font-family-courier-new">Courier New</option>
</select>
</div>
</div>
<div class="config-section">
<h3>Practice</h3>
<div class="config-grid">
<label for="speed-slider">Read Aloud Speed:</label>
<input type="range" id="speed-slider" min="0.5" max="2" value="1" step="0.1">
<label for="hide-text-checkbox">Hide Text Mode (Esc):</label>
<input type="checkbox" id="hide-text-checkbox">
<label for="read-next-checkbox">Read next word aloud after current word finished:</label>
<input type="checkbox" id="read-next-checkbox" checked>
<label for="read-on-correct-checkbox">Read current word aloud when completed:</label>
<input type="checkbox" id="read-on-correct-checkbox" checked>
<label for="ignore-accents-checkbox">Ignore accents:</label>
<input type="checkbox" id="ignore-accents-checkbox" checked>
<label for="ignore-punctuation-checkbox">Ignore punctuation:</label>
<input type="checkbox" id="ignore-punctuation-checkbox" checked>
<label for="ignore-case-checkbox">Ignore case:</label>
<input type="checkbox" id="ignore-case-checkbox" checked>
<label for="wait-for-space-checkbox">Wait for space before correction:</label>
<input type="checkbox" id="wait-for-space-checkbox" checked>
</div>
</div>
<div class="config-section">
<h3>My Texts</h3>
<div class="master-detail-container">
<div id="text-list-container">
<select id="text-select" size="8"></select>
</div>
<div id="text-editor-container">
<input type="text" id="text-title-input" placeholder="Title">
<textarea id="text-content-textarea" rows="8" placeholder="Content..."></textarea>
<div class="editor-buttons">
<button id="new-text-btn">New</button>
<button id="save-text-btn">Save</button>
<button id="delete-text-btn">Delete</button>
</div>
</div>
</div>
</div>
<div class="config-section">
<button id="reset-settings-btn">Reset Display Settings</button>
</div>
</div>
</div>
<div id="notification-area" class="hidden"></div>
<script type="module" src="dictation.js"></script>
</body>
</html>