-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
80 lines (67 loc) · 2.02 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
<!DOCTYPE html>
<html>
<head>
<title>Text-to-Speech Extension</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
line-height: 1.6;
width: 350px;
background-color: #f5f5f5;
color: #333;
}
h1 {
margin-bottom: 20px;
color: #4a4a4a;
}
label {
display: block;
margin-bottom: 10px;
}
input[type='checkbox'] {
margin-right: 5px;
}
select {
width: 100%;
height: 35px;
margin-bottom: 20px;
border: 1px solid #ccc;
background-color: #fff;
}
h3 {
margin-top: 30px;
margin-bottom: 10px;
color: #4a4a4a;
}
.settings-section {
background-color: #fff;
padding: 15px;
margin-bottom: 15px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
</style>
</head>
<body>
<h1>Text-to-Speech Extension</h1>
<div class="settings-section">
<label for="useApi">
<input type="checkbox" id="useApi" name="useApi" /> Use TTS API
</label>
<h3>Text-to-Speech using API Voice</h3>
<label for="voiceSelection">Select Voice:</label>
<select id="voiceSelection"></select>
<p>Open Google Colab:</p>
<a href="https://colab.research.google.com/drive/1v1gmWYPe6LX3my13LbSo8i8zWM9LYmkV?usp=sharing" target="_blank" id="colabLink">https://colab.research.google.com</a>
<label for="urlInput">Enter URL:</label>
<input type="text" id="urlInput" name="urlInput" />
<button id="submitUrl">Submit URL</button>
</div>
<div class="settings-section">
<h3>Text-to-Speech using normal voices</h3>
<label for="voice-selection-browser">Browser TTS Voice:</label>
<select id="voice-selection-browser"></select>
</div>
<script src="popup.js"></script>
</body>
</html>