-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
256 lines (228 loc) · 14.2 KB
/
index.html
File metadata and controls
256 lines (228 loc) · 14.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>IQ Master - Logic & Intelligence</title>
<link rel="icon" href="IQ-logo.png" type="image/png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Ambient Background Elements -->
<div class="ambient-orb orb-1"></div>
<div class="ambient-orb orb-2"></div>
<!-- Authentication Area -->
<div id="auth-container" class="app-container auth-box">
<div class="auth-header">
<img src="IQ-logo.png" alt="IQ Master Logo" class="auth-logo">
<h1 id="auth-title" data-i18n="welcomeBack">Welcome Back</h1>
<p id="auth-subtitle" data-i18n="loginToContinue">Log in to continue your IQ journey</p>
</div>
<form id="auth-form">
<div class="input-group">
<input type="email" id="auth-email" class="auth-input" placeholder=" " required>
<label for="auth-email">Email Address</label>
</div>
<div class="input-group">
<input type="password" id="auth-password" class="auth-input" placeholder=" " required>
<label for="auth-password">Password</label>
<button type="button" class="password-toggle" aria-label="Toggle password visibility" tabindex="-1">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>
</button>
</div>
<div class="input-group hidden" id="confirm-password-group">
<input type="password" id="auth-confirm-password" class="auth-input" placeholder=" ">
<label for="auth-confirm-password">Confirm Password</label>
<button type="button" class="password-toggle" aria-label="Toggle password visibility" tabindex="-1">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>
</button>
</div>
<div class="forgot-password-container" id="forgot-password-container">
<a href="#" id="forgot-password-link" class="forgot-password">Forgot Password?</a>
</div>
<button type="submit" id="auth-submit-btn" class="primary-btn auth-submit" data-i18n="loginBtn">Log In</button>
</form>
<div class="auth-divider">
<span data-i18n="or">OR</span>
</div>
<button type="button" id="google-login-btn" class="google-btn">
<svg class="google-icon" viewBox="0 0 24 24">
<path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/>
<path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/>
<path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"/>
<path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"/>
</svg>
<span data-i18n="continueGoogle">Continue with Google</span>
</button>
<p class="auth-switch">
<span id="auth-switch-text" data-i18n="noAccount">Don't have an account?</span>
<a href="#" id="auth-switch-link" data-i18n="signUpLink">Sign up</a>
</p>
<p id="auth-message" class="auth-message"></p>
<footer class="auth-footer">
<p>© 2024 IQ Master. All rights reserved.</p>
<p class="developed-by">
Developed by <span>Ananya & Atharv</span>
<span class="social-links">
<a href="https://linkedin.com/in/ananya-parbat/" target="_blank" rel="noopener noreferrer" aria-label="LinkedIn">
<svg class="social-icon" viewBox="0 0 24 24" fill="currentColor"><path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/></svg>
</a>
<a href="https://linkedin.com/in/abowlekar/" target="_blank" rel="noopener noreferrer" aria-label="LinkedIn">
<svg class="social-icon" viewBox="0 0 24 24" fill="currentColor"><path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/></svg>
</a>
</span>
</p>
</footer>
</div>
<!-- Terms and Conditions Area -->
<div id="tnc-container" class="app-container auth-box hidden">
<div class="auth-header">
<img src="IQ-logo.png" alt="IQ Master Logo" class="auth-logo">
<h1 id="tnc-title">Terms & Conditions</h1>
<p id="tnc-subtitle">Please review and accept to continue</p>
</div>
<div class="tnc-content">
<p>Welcome to IQ Master! By using our application, you agree to the following terms:</p>
<ul>
<li><strong>Entertainment Purposes Only:</strong> The IQ scores generated are simulated and not clinically valid.</li>
<li><strong>Data Usage:</strong> We securely authenticate your account using Firebase. We do not sell your personal data.</li>
<li><strong>Conduct:</strong> You agree not to exploit, hack, or abuse the testing mechanism.</li>
</ul>
<p>Enjoy testing your logic and intelligence!</p>
</div>
<div class="tnc-checkbox-group">
<input type="checkbox" id="tnc-checkbox">
<label for="tnc-checkbox">I have read and agree to the Terms & Conditions.</label>
</div>
<button id="tnc-accept-btn" class="primary-btn auth-submit" disabled data-i18n="acceptBtn">Accept & Continue</button>
<button id="tnc-decline-btn" class="secondary-btn" style="width: 100%; margin-top: 15px;">Decline & Logout</button>
<footer class="auth-footer" style="margin-top: 25px;">
<p>© 2024 IQ Master. All rights reserved.</p>
</footer>
</div>
<div class="app-container hidden" id="main-app-container">
<header>
<div class="header-left">
<img src="IQ-logo.png" alt="IQ Master Logo" class="app-logo">
<h1>IQ Master</h1>
</div>
<div class="header-right">
<span id="user-info-display" class="user-info"></span>
<div id="quiz-header-info" class="hidden">
<div id="timer-container">
<span id="timer-text">20</span>
</div>
<div id="progress-container">
<div id="progress-text">Loading...</div>
<div class="progress-bar">
<div id="progress-fill"></div>
</div>
</div>
</div>
<button id="terminate-btn" class="secondary-btn hidden" data-i18n="endTest">End Test</button>
<button id="logout-btn" class="secondary-btn" data-i18n="logout">Logout</button>
</div>
</header>
<div id="config-area">
<h2>Test Configuration</h2>
<div id="high-score-area">
<span data-i18n="yourHighScore">Your High Score:</span> <span id="high-score-display">0</span>
</div>
<p data-i18n="chooseChallenge">Choose your challenge level and the number of questions.</p>
<div class="config-group">
<label data-i18n="difficulty">Difficulty Level:</label>
<div id="level-selection">
<input type="radio" id="level-beginner" name="level" value="beginner" checked>
<label for="level-beginner" data-i18n="beginner">Beginner</label>
<input type="radio" id="level-intermediate" name="level" value="intermediate">
<label for="level-intermediate" data-i18n="intermediate">Intermediate</label>
<input type="radio" id="level-advanced" name="level" value="advanced">
<label for="level-advanced" data-i18n="advanced">Advanced</label>
<input type="radio" id="level-adaptive" name="level" value="adaptive">
<label for="level-adaptive" data-i18n="adaptive">Adaptive</label>
</div>
</div>
<div class="config-group">
<label for="category-selection" data-i18n="category">Category:</label>
<select id="category-selection">
<option value="all" data-i18n="allCategories">All Categories</option>
<!-- Options populated by JS -->
</select>
</div>
<div class="config-group">
<label data-i18n="numQuestions">Number of Questions:</label>
<select id="question-count">
<option value="10">10 Questions (Quick)</option>
<option value="25">25 Questions (Standard)</option>
<option value="50">50 Questions (Full)</option>
</select>
</div>
<div class="config-group">
<label data-i18n="gameMode">Game Mode:</label>
<select id="game-mode">
<option value="standard" data-i18n="modeStandard">Standard (20s / question)</option>
<option value="zen" data-i18n="modeZen">Zen (No timer)</option>
<option value="sprint" data-i18n="modeSprint">Sprint (5 min, unlimited)</option>
</select>
</div>
<button id="start-btn" class="primary-btn" data-i18n="startTest">Start Test</button>
</div>
<main id="quiz-area" class="hidden">
<h2 id="question-text"></h2>
<img id="question-image" class="hidden" src="" alt="Visual Question" referrerpolicy="no-referrer" />
<div id="options-container">
<!-- Option buttons will be injected here by JavaScript -->
</div>
</main>
<div id="result-area" class="hidden">
<h2 data-i18n="testComplete">Test Complete!</h2>
<div id="iq-score-container">
<span id="iq-score-label" data-i18n="simulatedScore">Your Simulated IQ Score</span>
<span id="iq-score-value"></span>
</div>
<p id="score-text"></p>
<h3>Question-by-Question Analysis</h3>
<div id="results-graph-container">
<!-- Graph bars will be injected here -->
</div>
<div id="explanations-container" class="hidden">
<h3 data-i18n="reviewAnswers">Review Incorrect Answers</h3>
<div id="explanations-list"></div>
</div>
<button id="restart-btn" class="primary-btn" data-i18n="restartTest">Restart Test</button>
</div>
<footer>
<p>© 2024 IQ Master. All rights reserved.</p>
</footer>
</div>
<!-- Global Controls (Theme & Language) -->
<div class="global-controls">
<div class="language-switcher">
<select id="language-select">
<option value="en">🇺🇸 EN</option>
<option value="es">🇪🇸 ES</option>
<option value="fr">🇫🇷 FR</option>
<option value="hi">🇮🇳 HI</option>
<option value="mr">🇮🇳 MR</option>
</select>
</div>
<div class="theme-switcher">
<input type="checkbox" id="theme-toggle">
<label for="theme-toggle" class="toggle-slider">
<svg class="sun" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2.25a.75.75 0 01.75.75v2.25a.75.75 0 01-1.5 0V3a.75.75 0 01.75-.75zM7.5 12a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM18.894 6.106a.75.75 0 010 1.06l-1.591 1.591a.75.75 0 11-1.06-1.06l1.591-1.591a.75.75 0 011.06 0zM21.75 12a.75.75 0 01-.75.75h-2.25a.75.75 0 010-1.5h2.25a.75.75 0 01.75.75zM17.894 17.894a.75.75 0 01-1.06 0l-1.591-1.591a.75.75 0 111.06-1.06l1.591 1.591a.75.75 0 010 1.06zM12 21.75a.75.75 0 01-.75-.75v-2.25a.75.75 0 011.5 0v2.25a.75.75 0 01-.75.75zM5.106 17.894a.75.75 0 010-1.06l1.591-1.591a.75.75 0 011.06 1.06l-1.591 1.591a.75.75 0 01-1.06 0zM3 12a.75.75 0 01.75-.75h2.25a.75.75 0 010 1.5H3.75A.75.75 0 013 12zM6.106 5.106a.75.75 0 011.06 0l1.591 1.591a.75.75 0 01-1.06 1.06L6.106 6.166a.75.75 0 010-1.06z"/></svg>
<svg class="moon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M9.528 1.718a.75.75 0 01.162.819A8.97 8.97 0 009 6a9 9 0 009 9 8.97 8.97 0 004.472-.69a.75.75 0 01.976.976A10.5 10.5 0 119.528 1.718z" clip-rule="evenodd" /></svg>
</label>
</div>
</div>
<script type="module" src="script.js"></script>
</body>
</html>