-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
114 lines (110 loc) · 4.05 KB
/
index.html
File metadata and controls
114 lines (110 loc) · 4.05 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<title>Sound Buttons - word-building game</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,400;0,500;1,400;1,900" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<form>
<main id="display">
<div class="buttons">
<div id="intro">
<h1>
Sound <br>Buttons
</h1>
<p>
Get started: <a class="settings-link" href="#settings">set some morphemes</a>
</p>
</div>
<div class="button-wrap">
<button class="play" type="submit" disabled="">1</button>
<button class="play" type="submit" disabled="">2</button>
<button class="play" type="submit" disabled="">3</button>
<button class="play" type="submit" disabled="">4</button>
<button class="play" type="submit" disabled="">5</button>
<button class="play" type="submit" disabled="">6</button>
<button class="play" type="submit" disabled="">7</button>
<button class="play" type="submit" disabled="">8</button>
</div>
</div>
</main>
<section id="settings">
<h1>Settings</h1>
<h2>
Set some morphemes
</h2>
<div class="col-wrap">
<div class="col col--halves">
<div class="inputs">
<label>
Button 1: <input type="text" class="sound" autocomplete="off" placeholder="eg. gar">
</label>
<label>
Button 2: <input type="text" class="sound" autocomplete="off" placeholder="eg. den">
</label>
<label>
Button 3: <input type="text" class="sound" autocomplete="off" placeholder="eg. ing">
</label>
<label>
Button 4: <input type="text" class="sound" autocomplete="off">
</label>
<label>
Button 5: <input type="text" class="sound" autocomplete="off">
</label>
<label>
Button 6: <input type="text" class="sound" autocomplete="off">
</label>
<label>
Button 7: <input type="text" class="sound" autocomplete="off">
</label>
<label>
Button 8: <input type="text" class="sound" autocomplete="off">
</label>
</div>
</div>
<div class="col col--halves">
<p>
Write text in these fields then press the buttons above to hear each one spoken.
</p>
<p>
Play around to get the sounds you want. You might need to write phonetically or try different voices:
</p>
<select>
</select>
<p>
(Note: the Google voices are available only when you're online and possibly also only in Chrome.)
</p>
<h2>
Ready?
</h2>
<p>
<a class="display-link" href="#display">Try the buttons</a>.
</p>
</div>
</div>
<h2>
Speed and pitch
</h2>
<div class="sliders">
<label for="rate">
Rate
<input type="range" min="0.5" max="2" value="1" step="0.1" id="rate">
<div class="rate-value">1</div>
</label>
<label for="pitch">
Pitch
<input type="range" min="0" max="2" value="1" step="0.1" id="pitch">
<div class="pitch-value">1</div>
</label>
</div>
</section>
</form>
<script src="script.js"></script>
</body>
</html>