Skip to content

Commit 51b33f2

Browse files
committed
Format code with Prettier
1 parent 509f545 commit 51b33f2

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed
Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,43 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<title>Speech Synthesis</title>
6-
<link href='https://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'>
7-
<link rel="stylesheet" href="style.css">
8-
</head>
9-
<body>
10-
3+
<head>
4+
<meta charset="UTF-8" />
5+
<title>Speech Synthesis</title>
6+
<link
7+
href="https://fonts.googleapis.com/css?family=Pacifico"
8+
rel="stylesheet"
9+
type="text/css"
10+
/>
11+
<link rel="stylesheet" href="style.css" />
12+
</head>
13+
<body>
1114
<div class="voiceinator">
12-
1315
<h1>The Voiceinator 5000</h1>
1416

1517
<select name="voice" id="voices">
1618
<option value="">Select A Voice</option>
1719
</select>
1820

1921
<label for="rate">Rate:</label>
20-
<input name="rate" type="range" min="0" max="3" value="1" step="0.1">
22+
<input name="rate" type="range" min="0" max="3" value="1" step="0.1" />
2123

2224
<label for="pitch">Pitch:</label>
2325

24-
<input name="pitch" type="range" min="0" max="2" step="0.1">
26+
<input name="pitch" type="range" min="0" max="2" step="0.1" />
2527
<textarea name="text">Hello! I love JavaScript 👍</textarea>
2628
<button id="stop">Stop!</button>
2729
<button id="speak">Speak</button>
28-
2930
</div>
3031

31-
<script>
32-
const msg = new SpeechSynthesisUtterance();
33-
let voices = [];
34-
const voicesDropdown = document.querySelector('[name="voice"]');
35-
const options = document.querySelectorAll('[type="range"], [name="text"]');
36-
const speakButton = document.querySelector('#speak');
37-
const stopButton = document.querySelector('#stop');
38-
</script>
39-
40-
</body>
32+
<script>
33+
const msg = new SpeechSynthesisUtterance();
34+
let voices = [];
35+
const voicesDropdown = document.querySelector('[name="voice"]');
36+
const options = document.querySelectorAll(
37+
'[type="range"], [name="text"]'
38+
);
39+
const speakButton = document.querySelector('#speak');
40+
const stopButton = document.querySelector('#stop');
41+
</script>
42+
</body>
4143
</html>

0 commit comments

Comments
 (0)