Skip to content

Commit a0ad992

Browse files
authored
kurt fix. Update index.html
kurt fix.
1 parent d3b8dbd commit a0ad992

File tree

1 file changed

+7
-63
lines changed

1 file changed

+7
-63
lines changed

index.html

Lines changed: 7 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
--brd2: #e0e1e1;
4646
--font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Helvetica Neue, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
4747
}
48-
4948
@media(prefers-color-scheme: light) {
5049
:root {
5150
--arka: var(--la);
@@ -61,7 +60,6 @@
6160
--yesil: var(--ly)
6261
}
6362
}
64-
6563
@media(prefers-color-scheme: dark) {
6664
:root {
6765
color-scheme: dark;
@@ -78,22 +76,19 @@
7876
--yesil: var(--dy)
7977
}
8078
}
81-
8279
html {
8380
font-size: 62.5%;
8481
min-width: 310px;
8582
accent-color: var(--accent);
8683
scroll-behavior: smooth
8784
}
88-
8985
html,
9086
body {
9187
border: none;
9288
margin: 0;
9389
padding: 0;
9490
background-color: var(--hefot);
9591
}
96-
9792
body {
9893
color: var(--renk);
9994
box-sizing: border-box;
@@ -102,18 +97,15 @@
10297
letter-spacing: -.015em;
10398
text-align: left;
10499
}
105-
106100
a {
107101
color: var(--link);
108102
text-decoration-line: underline;
109103
text-decoration-color: var(--col2)
110104
}
111-
112105
a:hover,
113106
a:focus {
114107
text-decoration: none
115108
}
116-
117109
button {
118110
appearance: none;
119111
background: var(--accent);
@@ -134,7 +126,6 @@
134126
text-transform: uppercase;
135127
transition: opacity .15s linear;
136128
}
137-
138129
#trr {
139130
font-family: var(--font-family);
140131
letter-spacing: inherit;
@@ -145,15 +136,13 @@
145136
padding: 0;
146137
width: 100%;
147138
}
148-
149139
#trr .answer-button,
150140
#trr #reset-button {
151141
color: #fff;
152142
cursor: pointer;
153143
flex: auto;
154144
font-size: small;
155145
}
156-
157146
#trr .answer-button {
158147
font-size: initial;
159148
line-height: 1;
@@ -165,26 +154,22 @@
165154
color: var(--renk);
166155
border: 1px dashed var(--col2);
167156
}
168-
169157
#trr .answer-button:hover {
170158
border-color: var(--accent);
171159
}
172-
173160
#trr #reset-button {
174161
font-size: x-small;
175162
background: red;
176163
flex-grow: 0;
177164
margin-right: 10%;
178165
}
179-
180166
#trr #quiz-container img {
181167
margin: auto;
182168
width: 100%;
183169
object-fit: contain;
184170
display: block;
185171
min-height: 300px;
186172
}
187-
188173
#trr .abuttons {
189174
display: flex;
190175
gap: 0.5rem;
@@ -194,25 +179,19 @@
194179
justify-content: center;
195180
align-items: center;
196181
}
197-
198182
#trr #quiz-container {
199-
position: relative;
200183
min-height: 465px;
201184
overflow: hidden;
202185
}
203-
204186
#trr h2 {
205187
margin-top: 0;
206188
}
207-
208189
#trr h3 {
209190
margin: 1rem auto;
210191
}
211-
212192
#trr h4 {
213193
margin: 0;
214194
}
215-
216195
#siviller {
217196
display: flex;
218197
flex-direction: row;
@@ -223,7 +202,6 @@
223202
gap: 1rem;
224203
margin: 2rem auto 3rem;
225204
}
226-
227205
#trr .container {
228206
position: relative;
229207
overflow: hidden;
@@ -236,12 +214,10 @@
236214
border-radius: 1rem;
237215
background: var(--hefot);
238216
}
239-
240217
#trr .image-container img {
241218
height: 300px;
242219
aspect-ratio: 3 / 4;
243220
}
244-
245221
#trr .scoreboard {
246222
margin: 1rem auto;
247223
background: var(--arka);
@@ -256,7 +232,6 @@
256232
justify-content: center;
257233
align-items: center;
258234
}
259-
260235
#trr .switch {
261236
position: relative;
262237
display: inline-block;
@@ -265,13 +240,11 @@
265240
zoom: 0.5;
266241
margin-top: 0.1rem;
267242
}
268-
269243
#trr .switch input {
270244
opacity: 0;
271245
width: 0;
272246
height: 0;
273247
}
274-
275248
#trr .slider {
276249
position: absolute;
277250
cursor: pointer;
@@ -283,7 +256,6 @@
283256
-webkit-transition: 0.4s;
284257
transition: 0.4s;
285258
}
286-
287259
#trr .slider:before {
288260
position: absolute;
289261
content: "";
@@ -295,29 +267,23 @@
295267
-webkit-transition: 0.4s;
296268
transition: 0.4s;
297269
}
298-
299270
#trr input:checked+.slider {
300271
background-color: #2196f3;
301272
}
302-
303273
#trr input:focus+.slider {
304274
box-shadow: 0 0 1px #2196f3;
305275
}
306-
307276
#trr input:checked+.slider:before {
308277
-webkit-transform: translateX(26px);
309278
-ms-transform: translateX(26px);
310279
transform: translateX(26px);
311280
}
312-
313281
#trr .slider.round {
314282
border-radius: 34px;
315283
}
316-
317284
#trr .slider.round:before {
318285
border-radius: 50%;
319286
}
320-
321287
#trr .about {
322288
font-size: small;
323289
float: right;
@@ -330,56 +296,45 @@
330296
background: var(--arka);
331297
padding: 1rem;
332298
}
333-
334299
#trr .about p {
335300
font-size: smaller;
336301
}
337-
338302
#trr .about summary {
339303
cursor: pointer;
340304
}
341-
342305
#trr .about summary:first-of-type {
343306
list-style-type: "❓";
344307
}
345-
346308
#scoreboard>span>strong {
347309
font-size: 2.5rem;
348310
display: inline-block;
349311
vertical-align: text-bottom;
350312
line-height: 1;
351313
}
352-
353314
#scoreboard>span:first-child>strong,
354315
.d0ru>span:first-child>strong {
355316
color: green;
356317
}
357-
358318
#scoreboard>span:not(:first-child)>strong,
359319
.naud0ru>span:not(:first-child)>strong {
360320
color: red;
361321
}
362-
363322
html.swal2-shown,
364323
html.swal2-shown>body {
365324
background: var(--arka);
366325
}
367-
368326
.swal2-show {
369327
transform: scale(1.2);
370328
}
371-
372329
@media (min-width: 700px) {
373330
.swal2-show {
374331
zoom: 1.2;
375332
}
376333
}
377-
378334
div:where(.swal2-container) .swal2-html-container>small {
379335
display: block;
380336
width: 100%;
381337
}
382-
383338
#trr a.opyls {
384339
position: absolute;
385340
left: 0;
@@ -391,18 +346,15 @@
391346
z-index: 19;
392347
border-bottom: 1px solid var(--accent);
393348
}
394-
395349
#trr details.about[open] {
396350
z-index: 20 !important;
397351
}
398-
399352
#trrimg {
400353
background-image: var(--background);
401354
background-size: contain;
402355
background-repeat: no-repeat;
403356
background-position: center;
404357
}
405-
406358
#trr .michaelsikkofield {
407359
position: absolute;
408360
right: 0;
@@ -414,11 +366,9 @@
414366
border-radius: 0 1rem;
415367
font-size: 3rem;
416368
}
417-
418369
#trr .michaelsikkofield:hover {
419370
backdrop-filter: contrast(0.5);
420371
}
421-
422372
#trr .michaelsikkofield:hover:after {
423373
position: absolute;
424374
right: 0;
@@ -438,8 +388,7 @@
438388
<body>
439389
<figure id="trr">
440390
<div class="container">
441-
<h2 class="has-small-font-size">Terrorist Quiz <a class="michaelsikkofield" id="kurt" href="javascript://" title="michaelsikkofield fix">🐺</a>
442-
</h2>
391+
<h2 class="has-small-font-size">Terrorist Quiz</h2>
443392
<div id="quiz-container"></div>
444393
<div id="scoreboard" class="scoreboard">
445394
<span>Doğru: <strong>0</strong>
@@ -456,7 +405,7 @@ <h4 class="has-small-font-size">Sivilleri Ekle</h4>
456405
</div>
457406
<details class="about">
458407
<summary>Hakkında</summary>
459-
<p>Veriler herkese açık olarak yayınlanan <a href="https://web.archive.org/web/20240000000000*/https://www.terorarananlar.pol.tr/tarananlar/" rel="noopener" target="_blank">T.C. İçişleri Bakanlığı Terör Arananlar</a> listesinden alınmaktadır. Sivillerin fotoğrafları yapay zeka ile insan fotoğrafı üreten <a href="https://web.archive.org/web/20240308002349/https://thispersondoesnotexist.com/" rel="noopener" target="_blank">thispersondoesnotexist.com</a> adresinden alınmaktadır.
408+
<p>Veriler herkese açık olarak yayınlanan <a href="https://web.archive.org/web/20240000000000*/https://www.terorarananlar.pol.tr/tarananlar/" rel="noopener" target="_blank">T.C. İçişleri Bakanlığı Terör Arananlar</a> listesinden alınmaktadır. Sivillerin fotoğrafları yapay zeka ile insan fotoğrafı üreten <a href="https://web.archive.org/web/20240308002349/https://thispersondoesnotexist.com/" rel="noopener" target="_blank">thispersondoesnotexist.com</a> adresinden alınmaktadır.</p>
460409
</details>
461410
<a class="opyls" href="https://wolkanca.com/terorist-tanima-terorist-testi-oyunu-terorist-quiz/#paylas">Paylaş</a>
462411
</div>
@@ -493,7 +442,6 @@ <h4 class="has-small-font-size">Sivilleri Ekle</h4>
493442
} else if (localStorage.getItem("Civilians") === "0") {
494443
siviller_ekleme();
495444
}
496-
497445
function toggleIncludeCivilians() {
498446
inpt.classList.toggle('Civilians');
499447
let val = inpt.classList.contains("Civilians") ? "1" : "0";
@@ -566,21 +514,19 @@ <h4 class="has-small-font-size">Sivilleri Ekle</h4>
566514
const o = [e, ...a].sort((() => Math.random() - .5)),
567515
s = document.getElementById("quiz-container");
568516
let l = n.IlkGorselURL,
569-
c = l.replace(/(https?:\/\/)(.*?)(:*)/g, "$1i0.wp.com/$3"),
517+
c = l.replace(/(https?:\/\/)(www\..*?)(:*)/g, "$1i0.wp.com/$3"),
570518
h = l.split("/").pop().split(".")[0];
571519
l.substring(0, l.length - 1);
572-
s.innerHTML = `<div class="image-container">
520+
s.innerHTML = `<a class="michaelsikkofield" onclick="checkAnswer('${e}','${e}')" href="javascript://" title="michaelsikkofield fix">🐺</a>
521+
<div class="image-container">
573522
<a id="oyunlink" data-name="${h}" title="Fotoğraf bozuk ise üsteki 🐺 butonuna tıkla" href="#trr">
574-
<img decoding="async" src="${c}" height="300" width="580" id="trrimg" style="--background: url('${l}')" onerror="this.classList.add('error');this.src='${c}?'"/>
523+
<img decoding="async" src="${c}" height="300" width="580" id="trrimg" style="--background: url('${l}')" onerror="this.classList.add('error');this.src='${c}?';this.onerror=null"/>
575524
</a>
576525
</div>
577526
<h3 class="has-small-font-size">Hangi örgüt?</h3>
578527
<div class="abuttons">${o.map((t=>`
579528
<button class="answer-button" onclick="checkAnswer('${e}','${t}')" id="${t}">${t}</button>`)).join("")}
580529
</div>`;
581-
document.getElementById("kurt").addEventListener("click", function(o) {
582-
checkAnswer(e, e);
583-
});
584530
}
585531
async function checkQuestionCount() {
586532
totalQuestionsAnswered++;
@@ -618,12 +564,11 @@ <h3 class="has-small-font-size">Hangi örgüt?</h3>
618564
displayQuiz();
619565
}
620566
}
621-
622567
function checkAnswer(correctAnswer, selectedAnswer) {
623568
if (selectedAnswer === correctAnswer) {
624569
Swal.fire({
625570
icon: 'success',
626-
html: `<span style="position:absolute;top:0;left:0;width:100%;margin:1rem auto;font-size:.8rem"><strong>${correctAnswer}</strong></span> Bravo! <small class="d0ru"><span>Doğru:<strong>${correctScore+1}</strong></span> | <span>Yanlış: <strong>${incorrectScore}</strong></span></small>`,
571+
html: `<span style="position:absolute;top:0;left:0;width:100%;margin:1rem auto;font-size:.8rem"><strong>${correctAnswer}</strong></span> Bravo! <small class="d0ru"><span>Doğru: <strong>${correctScore+1}</strong></span> | <span>Yanlış: <strong>${incorrectScore}</strong></span></small>`,
627572
confirmButtonText: 'Devam',
628573
}).then((result) => {
629574
correctScore++;
@@ -642,7 +587,6 @@ <h3 class="has-small-font-size">Hangi örgüt?</h3>
642587
});
643588
}
644589
}
645-
646590
function updateScoreboard() {
647591
const scoreboard = document.getElementById('scoreboard');
648592
scoreboard.innerHTML = `<span>Doğru: <strong>${correctScore}</strong></span> | <span>Yanlış: <strong>${incorrectScore}</strong></span>`;

0 commit comments

Comments
 (0)