-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
341 lines (326 loc) · 9.98 KB
/
index.html
File metadata and controls
341 lines (326 loc) · 9.98 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
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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
<!DOCTYPE html>
<html lang="tr" data-theme="light">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Mi 11 Ultra Bootloader Unlock</title>
<link href="https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;700&display=swap" rel="stylesheet" />
<style>
:root {
--bg-light: #fff;
--text-light: #000;
--bg-dark: #000;
--text-dark: #fff;
--sun-color: #f1a740;
--moon-color: #f1c40f;
--progress-bg-light: #666666;
--progress-bg-dark: #666666;
--progress-fill: #f1a740;
}
[data-theme="light"] {
background-color: var(--bg-light);
color: var(--text-light);
}
[data-theme="dark"] {
background-color: var(--bg-dark);
color: var(--text-dark);
}
html, body {
height: 100%;
margin: 0;
font-family: 'Google Sans', sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
transition: background-color 1s ease, color 1s ease;
overflow-x: hidden;
position: relative;
max-width: 100%;
box-sizing: border-box;
}
body {
padding: 0 1rem;
}
.logo {
width: 200px;
margin-bottom: 20px;
transition: opacity 1s ease, transform 1s ease;
position: relative;
z-index: 10;
max-width: 100%;
}
h1 {
font-size: clamp(1.0rem, 5vw, 2.0rem);
margin: 0 0 20px 0;
transition: opacity 1s ease, transform 1s ease;
position: relative;
z-index: 10;
max-width: 100%;
}
#timeRemaining,
#secondsRemaining {
font-weight: 600;
font-size: 1.5rem;
margin-bottom: 20px;
position: relative;
z-index: 10;
max-width: 100%;
}
#progressContainer {
width: 300px;
height: 20px;
background: var(--progress-bg-light);
border-radius: 12.5px;
overflow: hidden;
margin-bottom: 8px;
transition: background-color 1s ease;
position: relative;
z-index: 10;
max-width: 100%;
}
[data-theme="dark"] #progressContainer {
background: var(--progress-bg-dark);
}
#progressBar {
height: 100%;
width: 100%;
background: var(--progress-fill);
transition: width 0.2s linear;
}
.footer {
position: fixed;
bottom: 15px;
right: 15px;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 8px;
z-index: 10;
}
.link {
font-weight: 700;
font-size: 1.1rem;
color: inherit;
text-decoration: none;
transition: color 0.3s;
}
.link:hover {
text-decoration: underline;
}
.theme-toggle-button {
cursor: pointer;
width: 90px;
height: 35px;
background: transparent;
border: none;
padding: 10px;
touch-action: manipulation;
outline: none;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.3s ease, color 0.3s ease;
color: var(--sun-color);
}
.theme-toggle-button:hover {
transform: scale(1.15);
color: var(--moon-color);
}
svg {
width: 32px;
height: 32px;
stroke-width: 1.8;
stroke: currentColor;
fill: none;
transition: stroke 1s ease, fill 1s ease;
}
#sunIcon circle {
fill: var(--sun-color);
}
#sunIcon g line {
stroke: var(--sun-color);
transform-origin: center;
animation: spin 10s linear infinite;
}
#moonIcon {
stroke: var(--moon-color);
fill: var(--moon-color);
filter: drop-shadow(0 0 3px var(--moon-color));
animation: glow 3s ease-in-out infinite alternate;
}
@keyframes spin {
0% { transform: rotate(0deg);}
100% { transform: rotate(360deg);}
}
@keyframes glow {
0% { filter: drop-shadow(0 0 2px var(--moon-color)); }
100% { filter: drop-shadow(0 0 7px var(--moon-color)); }
}
#stars {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
pointer-events: none;
overflow: hidden;
z-index: 1;
}
.star {
position: absolute;
border-radius: 50%;
opacity: 0.8;
animation-name: twinkleMove;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
}
[data-theme="light"] .star {
background-color: black;
opacity: 0.15;
}
[data-theme="dark"] .star {
background-color: white;
opacity: 0.7;
}
@keyframes twinkleMove {
0% { transform: translate(0, 0); opacity: 0.8; }
50% { transform: translate(2px, 2px); opacity: 0.3; }
100% { transform: translate(0, 0); opacity: 0.8; }
}
/* Mevcut küçük ekran düzeni */
@media (max-width: 480px) {
.logo { width: 110px; margin-bottom: 35px; }
h1 { font-size: clamp(1.2rem, 7vw, 2rem); }
#progressContainer { width: 240px; margin-bottom: 6px; }
#secondsRemaining, #timeRemaining { font-size: 1rem; }
.theme-toggle-button { width: 90px; height: 45px; }
svg { width: 24px; height: 24px; }
.footer { bottom: 10px; }
}
/* Yeni eklenen orta boy ekranlar */
@media (max-width: 768px) {
.logo { width: 130px; }
h1 { font-size: clamp(1.1rem, 6vw, 1.8rem); }
#progressContainer { width: 220px; }
.footer { bottom: 10px; gap: 0px; }
}
</style>
</head>
<body>
<div id="stars"></div>
<img id="logo" class="logo" src="https://i.imgur.com/6OoYS9G.png" alt="Xiaomi Logo" />
<h1>Mi 11 Ultra Bootloader Unlock</h1>
<div id="timeRemaining" aria-live="polite">Kalan süre: --</div>
<div id="progressContainer" role="progressbar" aria-valuemin="0" aria-valuemax="60" aria-valuenow="60" aria-label="Bootloader unlock countdown progress">
<div id="progressBar"></div>
</div>
<div id="secondsRemaining">60 saniye</div>
<div class="footer">
<button class="theme-toggle-button" aria-label="Toggle light/dark theme" id="themeToggleBtn" title="Tema değiştir">
<svg id="sunIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true">
<circle cx="12" cy="12" r="5" />
<g stroke-linecap="round">
<line x1="12" y1="1" x2="12" y2="3"/>
<line x1="12" y1="21" x2="12" y2="23"/>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>
<line x1="1" y1="12" x2="3" y2="12"/>
<line x1="21" y1="12" x2="23" y2="12"/>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>
</g>
</svg>
<svg id="moonIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" style="display:none;">
<path d="M21 12.79A9 9 0 0111.21 3 7 7 0 1012 21a9 9 0 009-8.21z"/>
</svg>
</button>
<a class="link" href="https://t.me/jahnemec" target="_blank" rel="noopener noreferrer">@jahnemec</a>
</div>
<script>
const progressBar = document.getElementById('progressBar');
const progressContainer = document.getElementById('progressContainer');
const secondsRemainingEl = document.getElementById('secondsRemaining');
const timeRemainingEl = document.getElementById('timeRemaining');
const html = document.documentElement;
const logo = document.getElementById('logo');
const themeToggleBtn = document.getElementById('themeToggleBtn');
const sunIcon = document.getElementById('sunIcon');
const moonIcon = document.getElementById('moonIcon');
const h1 = document.querySelector('h1');
const starsContainer = document.getElementById('stars');
const targetDate = new Date();
targetDate.setFullYear(2025, 5, 4); // 5 = Haziran
targetDate.setHours(24, 0, 0, 0);
function msToDHMS(ms) {
const totalSeconds = Math.max(0, Math.floor(ms / 1000));
const days = Math.floor(totalSeconds / 86400);
const hours = Math.floor((totalSeconds % 86400) / 3600);
const minutes = Math.floor((totalSeconds % 3600) / 60);
const seconds = totalSeconds % 60;
return { days, hours, minutes, seconds };
}
function updateProgressBar(secondInMinute) {
const reversePercent = (secondInMinute / 60) * 100;
progressBar.style.width = reversePercent + '%';
progressContainer.setAttribute('aria-valuenow', secondInMinute);
secondsRemainingEl.textContent = secondInMinute + ' saniye';
}
function update() {
const now = new Date();
const diff = targetDate - now;
if (diff <= 0) {
timeRemainingEl.textContent = 'Süre doldu!';
progressBar.style.width = '0%';
secondsRemainingEl.textContent = '0 saniye';
return;
}
const { days, hours, minutes, seconds } = msToDHMS(diff);
timeRemainingEl.textContent = `Kalan süre: ${days} gün ${hours} saat ${minutes} dakika`;
updateProgressBar(seconds);
requestAnimationFrame(update);
}
function setTheme(theme) {
logo.style.opacity = '0';
logo.style.transform = 'scale(0.95)';
h1.style.opacity = '0';
h1.style.transform = 'scale(0.95)';
setTimeout(() => {
html.setAttribute('data-theme', theme);
if (theme === 'dark') {
logo.src = 'https://i.imgur.com/0JCyOT5.png';
sunIcon.style.display = 'none';
moonIcon.style.display = 'inline';
} else {
logo.src = 'https://i.imgur.com/6OoYS9G.png';
sunIcon.style.display = 'inline';
moonIcon.style.display = 'none';
}
logo.style.opacity = '1';
logo.style.transform = 'scale(1)';
h1.style.opacity = '1';
h1.style.transform = 'scale(1)';
}, 350);
}
themeToggleBtn.addEventListener('click', () => {
const currentTheme = html.getAttribute('data-theme');
const newTheme = currentTheme === 'dark' ? 'light' : 'dark';
setTheme(newTheme);
});
function createStars(count) {
for (let i = 0; i < count; i++) {
const star = document.createElement('div');
star.classList.add('star');
const size = Math.random() * 2 + 1;
star.style.width = size + 'px';
star.style.height = size + 'px';
star.style.top = Math.random() * 100 + 'vh';
star.style.left = Math.random() * 100 + 'vw';
star.style.animationDuration = (Math.random() * 3 + 2) + 's';
star.style.animationDelay = (Math.random() * 4) + 's';
starsContainer.appendChild(star);
}
}
createStars(300);
update();
</script>
</body>
</html>