-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
138 lines (130 loc) · 2.95 KB
/
popup.html
File metadata and controls
138 lines (130 loc) · 2.95 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Subtitle Blocker</title>
<style>
body {
width: 280px;
padding: 15px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: #f9f9f9;
color: #333;
}
h1 {
font-size: 16px;
margin: 0 0 15px 0;
text-align: center;
color: #2c3e50;
}
.control-group {
margin-bottom: 15px;
background: white;
padding: 10px;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.control-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.control-row:last-child {
margin-bottom: 0;
}
label {
font-size: 13px;
font-weight: 500;
}
/* Switch Toggle */
.switch {
position: relative;
display: inline-block;
width: 40px;
height: 20px;
}
.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: 20px;
}
.slider:before {
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 2px;
bottom: 2px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #2196F3;
}
input:checked + .slider:before {
transform: translateX(20px);
}
/* Range Slider */
input[type=range] {
width: 100%;
margin-top: 5px;
}
.status-text {
font-size: 12px;
color: #666;
text-align: center;
margin-top: 10px;
}
.footer {
text-align: center;
font-size: 11px;
color: #999;
margin-top: 15px;
border-top: 1px solid #eee;
padding-top: 10px;
}
</style>
</head>
<body>
<h1>Subtitle Blocker</h1>
<div class="control-group">
<div class="control-row">
<label for="enableToggle">启用遮挡</label>
<label class="switch">
<input type="checkbox" id="enableToggle" checked>
<span class="slider"></span>
</label>
</div>
</div>
<div class="control-group">
<div class="control-row">
<label for="blurRange">模糊程度</label>
<span id="blurValue">15px</span>
</div>
<input type="range" id="blurRange" min="0" max="50" value="15">
</div>
<div class="status-text">
提示:播放视频时自动生效。<br>
拖动遮挡条顶部调整高度。<br>
<b>按住 Shift 键</b>并拖动遮挡条调整位置。
</div>
<div class="footer">
Designed for immersive viewing
</div>
<script src="popup.js"></script>
</body>
</html>