-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
112 lines (94 loc) · 2.11 KB
/
Copy pathpopup.html
File metadata and controls
112 lines (94 loc) · 2.11 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
<!DOCTYPE html>
<html>
<head>
<title>Bionic Reader</title>
<style>
body {
width: 300px;
padding: 10px;
font-family: Arial, sans-serif;
}
.slider-container {
margin: 15px 0;
}
button {
width: 100%;
padding: 8px;
background-color: #0078d7;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
margin-top: 10px;
}
button:hover {
background-color: #006cc1;
}
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 34px;
}
.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked+.slider {
background-color: #0078d7;
}
input:checked+.slider:before {
transform: translateX(26px);
}
.status {
font-size: 12px;
font-style: italic;
color: #555;
margin-top: 8px;
text-align: center;
}
</style>
</head>
<body>
<h2>Bionic Reader</h2>
<p>Toggle to enable/disable Bionic Reading on all pages.</p>
<div style="display: flex; justify-content: space-between; align-items: center;">
<span>Enable Bionic Reading:</span>
<label class="switch">
<input type="checkbox" id="bionicToggle">
<span class="slider"></span>
</label>
</div>
<div class="slider-container">
<label for="boldRatio">Bold Ratio (%):</label>
<input type="range" id="boldRatio" min="30" max="70" value="50">
<span id="boldRatioValue">50%</span>
</div>
<button id="applyBtn">Apply Ratio to Page</button>
<p class="status">Bionic Reading will be applied to all pages by default</p>
<script src="popup.js"></script>
</body>
</html>