-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
82 lines (75 loc) · 1.55 KB
/
popup.html
File metadata and controls
82 lines (75 loc) · 1.55 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
body {
width: 300px;
padding: 20px;
font-family: Arial, sans-serif;
}
h1 {
font-size: 18px;
margin-bottom: 15px;
color: #333;
}
.instruction {
margin-bottom: 10px;
font-size: 14px;
line-height: 1.4;
}
.shortcut {
background-color: #f5f5f5;
padding: 8px;
border-radius: 4px;
font-family: monospace;
margin: 5px 0;
}
button {
background-color: #4CAF50;
color: white;
padding: 8px 16px;
border: none;
border-radius: 4px;
cursor: pointer;
width: 100%;
margin-top: 10px;
}
button:hover {
background-color: #45a049;
}
#status {
margin-top: 10px;
padding: 8px;
border-radius: 4px;
font-size: 12px;
}
.success {
background-color: #dff0d8;
color: #3c763d;
}
.error {
background-color: #f2dede;
color: #a94442;
}
</style>
</head>
<body>
<h1>Text Reader Extension</h1>
<div class="instruction">
<strong>How to use:</strong>
</div>
<div class="instruction">
• Hover over text to hear it read aloud
</div>
<div class="instruction">
• Right-click and select "Read from here to end of page"
</div>
<div class="instruction">
• Press <span class="shortcut">Escape</span> to stop reading
</div>
<button id="stopButton">Stop Reading</button>
<div id="status"></div>
<script src="popup.js"></script>
</body>
</html>