-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
104 lines (96 loc) · 5.53 KB
/
index.html
File metadata and controls
104 lines (96 loc) · 5.53 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
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Valorant Ajan Seçimi</title>
<link rel="stylesheet" href="style.css">
<style>
/* Dil değiştirme düğmeleri için stil */
.language-switcher {
text-align: right; /* Düğmeleri sağa yaslar */
margin-bottom: 20px;
/* Flexbox kullanarak düğmeleri yan yana ve eşit aralıklı yap */
display: flex;
justify-content: flex-end; /* Sağ tarafa yasla */
gap: 10px; /* Düğmeler arasına boşluk bırak */
}
.language-switcher button {
padding: 8px 15px;
cursor: pointer;
/* Mevcut style.css'deki buton renklerini ve stillerini taklit edelim */
background-color: #007bff; /* Mavi tonu (kendi style.css'inizdeki renge göre ayarlayın) */
color: white; /* Yazı rengi */
border: none; /* Kenarlık yok */
border-radius: 5px; /* Köşe yuvarlaklığı */
font-size: 1em; /* Yazı boyutu */
transition: background-color 0.3s ease; /* Hover efekti için geçiş */
}
.language-switcher button:hover {
background-color: #0056b3; /* Koyu mavi (hover rengi) */
}
</style>
</head>
<body>
<div class="language-switcher">
<button onclick="changeLanguage('tr')">Türkçe</button>
<button onclick="changeLanguage('en')">English</button>
</div>
<div class="container">
<h1 id="title">Valorant Ajan Önerici</h1>
<div class="progress-container">
<div id="progressBar" class="progress-bar"></div>
</div>
<form id="quizForm">
<div class="question">
<p id="question1-label">1. Oyun stiliniz nasıl?</p>
<label><input type="radio" name="q1" value="agresif"><span id="q1_opt1"> Agresif</span></label>
<label><input type="radio" name="q1" value="defansif"><span id="q1_opt2"> Defansif</span></label>
<label><input type="radio" name="q1" value="destek"><span id="q1_opt3"> Takım destekli</span></label>
<button type="button" class="next-btn" id="nextBtn1">Sonraki</button>
</div>
<div class="question" style="display: none;">
<p id="question2-label">2. Yetenek mi silah mı?</p>
<label><input type="radio" name="q2" value="yetenek"><span id="q2_opt1"> Yetenek</span></label>
<label><input type="radio" name="q2" value="silah"><span id="q2_opt2"> Silah</span></label>
<label><input type="radio" name="q2" value="denge"><span id="q2_opt3"> Denge</span></label>
<button type="button" class="next-btn" id="nextBtn2">Sonraki</button>
</div>
<div class="question" style="display: none;">
<p id="question3-label">3. Harita kontrolü mü giriş mi?</p>
<label><input type="radio" name="q3" value="kontrol"><span id="q3_opt1"> Harita kontrolü</span></label>
<label><input type="radio" name="q3" value="giris"><span id="q3_opt2"> Giriş yapmayı severim</span></label>
<label><input type="radio" name="q3" value="info"><span id="q3_opt3"> Bilgi toplamak</span></label>
<button type="button" class="next-btn" id="nextBtn3">Sonraki</button>
</div>
<div class="question" style="display: none;">
<p id="question4-label">4. Ekibinizde hangi rolü üstlenirsiniz?</p>
<label><input type="radio" name="q4" value="kontrol"><span id="q4_opt1"> Giriş</span></label>
<label><input type="radio" name="q4" value="giris"><span id="q4_opt2"> Duman</span></label>
<label><input type="radio" name="q4" value="info"><span id="q4_opt3"> Destek</span></label>
<button type="button" class="next-btn" id="nextBtn4">Sonraki</button>
</div>
<div class="question" style="display: none;">
<p id="question5-label">5. Oyun sonu (clutch) durumlarında nasıl davranırsınız?</p>
<label><input type="radio" name="q5" value="kontrol"><span id="q5_opt1"> Pusarım</span></label>
<label><input type="radio" name="q5" value="giris"><span id="q5_opt2"> Yüzleşirim</span></label>
<label><input type="radio" name="q5" value="info"><span id="q5_opt3"> Kaçarım</span></label>
<button type="button" class="next-btn" id="nextBtn5">Sonraki</button>
</div>
<div class="question" style="display: none;">
<p id="question6-label">6. Hangi silahı sıklıkla kullanırsınız?</p>
<label><input type="radio" name="q6" value="kontrol"><span id="q6_opt1"> Operatör</span></label>
<label><input type="radio" name="q6" value="giris"><span id="q6_opt2"> Vandal</span></label>
<label><input type="radio" name="q6" value="info"><span id="q6_opt3"> Phantom</span></label>
<button type="submit" class="submit-btn" id="submitBtn">Ajanları Öner</button>
</div>
</form>
<div id="result" class="hidden">
<h2 id="results-title">Senin için en uygun ajanlar:</h2>
<div id="agentResults" class="agent-list"></div>
<button id="restartButton" onclick="restartQuiz()">Yeniden Dene</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>