-
Notifications
You must be signed in to change notification settings - Fork 1
/
popup.html
259 lines (210 loc) · 5.83 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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Video Speed Controller</title>
<style>
:root {
--primary-100: #4285f4;
--primary-200: #002fa7;
--primary-300: #dffffd;
--accent-100: #8a2be2;
--accent-200: #ccccff;
--text-100: #1f305e;
--text-200: #4d598c;
--bg-100: #d7e8f9;
--bg-200: #afdbf5;
--bg-300: #191970;
}
body {
width: 300px;
font-family: "Google Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
padding: 20px;
margin: 0;
color: var(--text-100);
background-color: var(--bg-100);
border: 1px solid var(--bg-200);
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s, color 0.3s;
}
h3 {
color: var(--primary-100);
margin-bottom: 20px;
text-align: center;
}
.section {
margin-bottom: 20px;
}
input,
button {
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
margin-bottom: 10px;
font-size: 16px;
width: 100%;
box-sizing: border-box;
transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus,
button:focus {
outline: none;
border-color: var(--primary-100);
box-shadow: 0 0 3px rgba(66, 133, 244, 0.3);
}
button {
background-color: var(--primary-100);
color: white;
cursor: pointer;
transition: background-color 0.2s ease-in-out, box-shadow 0.2s;
}
button:hover {
background-color: var(--primary-200);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.preset-buttons {
display: flex;
flex-wrap: wrap;
gap: 5px;
}
.preset-buttons button {
flex: 1 1 calc(33.33% - 10px);
margin: 5px 0;
}
.feedback {
color: var(--primary-100);
font-size: 14px;
margin-top: 10px;
text-align: center;
min-height: 20px;
transition: color 0.3s;
}
.error {
color: red;
}
</style>
</head>
<body>
<h3>Video Speed Controller</h3>
<div class="section speed-input">
<input type="number" id="speed" placeholder="Set Speed (e.g., 1.0)" step="0.1" />
<button id="setSpeed">Set Speed</button>
</div>
<div class="section preset-buttons">
<button data-speed="0.5">0.5x</button>
<button data-speed="1.0">1.0x</button>
<button data-speed="1.5">1.5x</button>
<button data-speed="2.0">2.0x</button>
<button data-speed="2.5">2.5x</button>
<button data-speed="3.0">3.0x</button>
</div>
<div class="section default-speed">
<input type="number" id="defaultSpeed" placeholder="Default Speed (e.g., 1.0)" step="0.1" />
<button id="setDefaultSpeed">Set Default</button>
<button id="resetDefaultSpeed" style="background-color: #ff6b6b;">Reset to Default</button>
</div>
<p id="currentSpeed" style="text-align: center;">Current Speed: N/A</p>
<div id="feedback" class="feedback"></div>
<script src="popup.js"></script>
<style>
/* CSS styles */
#badgeContainer {
position: fixed;
bottom: 10px;
left: 0;
width: 100%;
display: flex;
justify-content: center; /* Center horizontally */
align-items: flex-end; /* Align at the bottom */
z-index: 1000;
}
#badge_843219 {
display: flex;
align-items: center;
padding: 2px;
background-color: #4285f4;
border: 1px solid #4285f4;
border-radius: 3px;
font-size: 10px;
color: #fff;
width: auto; /* Adjust as needed */
height: auto; /* Adjust as needed */
cursor: pointer; /* Change cursor to pointer on hover */
}
#logo_982134 {
width: 50px;
height: 50px;
border-radius: 25%;
border: 2px solid #fff;
border-bottom: 2px solid #4285f4;
border-radius: 50% 50% 50% 50%/60% 60% 40% 40%;
transition: transform 0.2s ease-in-out;
}
#logo_982134:hover {
transform: rotate(360deg) scale(1.1);
}
#text_654321 {
display: flex;
flex-direction: column;
align-items: flex-start;
margin-left: 10px; /* Adjust as needed */
}
#partner_765432 {
color: #fff;
font-weight: bold;
display: block;
}
#fullName_987654 {
display: none;
}
#developedByText_456789 {
display: block;
}
#badge_843219:hover #developedByText_456789 {
display: none;
}
#badge_843219:hover #fullName_987654 {
display: block;
}
@keyframes trending {
0% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
}
</style>
<!-- Badge Container -->
<div id="badgeContainer">
<!-- Badge (Wrapped with anchor tag for redirection) -->
<a href="https://harshitj183.eu.org/profile" target="_blank" rel="noopener noreferrer">
<div id="badge_843219" class="badge_219843">
<!-- Logo -->
<img id="logo_982134" class="logo_412983" src="https://cdn.githubraw.com/harshitj183/harshitj183/main/badge/profileLOgo.png" alt="Google logo">
<!-- Text -->
<div id="text_654321" class="text_123654">
<!-- Partner -->
<span id="partner_765432" class="partner_345678">@harshitj183</span>
<!-- Full Name -->
<span id="fullName_987654" class="full-name_567890">Harshit Jaiswal</span>
<!-- Developed By Text -->
<span id="developedByText_456789" class="developed-by-text_890123">Developed by</span>
</div>
</div>
</a>
</div>
<script>
// JavaScript to append styles dynamically
const styleSheet = document.createElement('style');
styleSheet.textContent = `
/* Additional styles go here */
`;
document.head.appendChild(styleSheet);
</script>
</body>
</html>