-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
84 lines (83 loc) · 2.08 KB
/
popup.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<style>
body {
width: 200px;
padding: 12px;
font-family: Arial, sans-serif;
}
p {
font-size: 14px;
color: #454545;
}
button {
margin-top: 10px;
width: 48%;
height: 40px;
display: flex;
align-items: center;
justify-content: space-evenly;
font-size: 16px;
background: transparent;
border: 1px solid #bbb;
border-radius: 12px;
cursor: pointer;
color: #454545;
margin-right: 12px;
}
button:hover {
box-shadow: 3px 2px 11px 0px #bbb;
border: none;
}
.controls {
border-radius: 8px;
border: 1px solid #eee;
padding: 12px;
margin-bottom: 12px;
}
.single-control {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.volume-label {
border: 1px solid #888;
padding: 8px;
border-radius: 30%;
}
.rate-label {
border: 1px solid #888;
padding: 8px;
border-radius: 30%;
}
</style>
</head>
<body>
<h1>Text to Speech</h1>
<p>Read articles out loud</p>
<div class="controls">
<div class="single-control" title="volume">
<img src="images/volume.svg" alt="Volume" />
<input type="range" min="0" max="1" value="1" step="0.1" id="volume" />
</div>
<div class="single-control" title="playback speed">
<img src="images/speed2.svg" alt="Play" />
<!-- <span id="rate-label">1</span> -->
<input type="range" min="0.1" max="10" value="1" id="rate" step="0.1" />
</div>
</div>
<div style="display: flex">
<button id="playButton">
<img src="images/play2.svg" alt="Play" />
<span>Play</span>
</button>
<button id="stopButton">
<img src="images/stop.svg" alt="Stop" />
<span>Stop</span>
</button>
</div>
</body>
<script src="popup.js"></script>
</html>