-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
200 lines (188 loc) · 6.07 KB
/
Copy pathindex.html
File metadata and controls
200 lines (188 loc) · 6.07 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Premium Quiz Master</title>
<link rel="manifest" href="/manifest.json" />
<meta name="description" content="A masterclass quiz experience with immersive design and fluid interactions." />
</head>
<body>
<div id="app">
<!-- Loading Screen -->
<div id="loader-screen" class="card fade-in">
<div class="screen">
<div class="spinner"></div>
<p>Preparing Your Quiz Journey...</p>
</div>
</div>
<!-- Start Screen -->
<div id="start-screen" class="card hidden">
<div class="screen">
<span class="badge">CHALLENGE READY</span>
<h1 id="quiz-title">ICD-11 Study Master</h1>
<p class="subtitle" id="quiz-description">1,283 Hyper-Granular MCQs for Comprehensive Learning.</p>
<div id="session-stats" class="session-info">
<p>Your Progress: <span id="progress-text">0 / 0</span></p>
<div class="mini-bar"><div id="mini-progress" class="bar"></div></div>
</div>
<div class="action-grid">
<button id="continue-btn" class="btn btn-secondary hidden">CONTINUE SESSION</button>
<button id="marathon-btn" class="btn">START MARATHON</button>
<button id="quick-btn" class="btn btn-outline">QUICK STUDY (20 Qs)</button>
</div>
</div>
</div>
<!-- Quiz Screen -->
<div id="quiz-panel" class="card hidden">
<div class="timer" id="timer">30s</div>
<div class="progress-container">
<div id="progress-bar" class="progress-bar"></div>
</div>
<div class="screen-quiz">
<p class="question-info">QUESTION <span id="current-q-num">1</span> OF <span id="total-q-num">?</span></p>
<h2 id="question-text" class="question-text">Loading question...</h2>
<div id="options-container" class="options-container">
<!-- Options will be injected here -->
</div>
<div id="feedback-overlay" class="feedback hidden">
<p id="explanation-text"></p>
</div>
</div>
<button id="next-btn" class="btn hidden" style="margin-top: 1.5rem;">CONTINUE</button>
</div>
<!-- Result Screen -->
<div id="result-screen" class="card hidden">
<div class="screen">
<div class="score-circle" id="score-val">0</div>
<h2 id="result-msg">Congratulations!</h2>
<p class="subtitle" id="result-details">You've completed the challenge.</p>
<div class="action-grid">
<button id="review-btn" class="btn btn-accent hidden">REVIEW INCORRECT</button>
<button id="restart-btn" class="btn">NEW MARATHON</button>
</div>
</div>
</div>
</div>
<script type="module" src="/main.js"></script>
<style>
.spinner {
width: 40px;
height: 40px;
border: 4px solid var(--glass);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.badge {
background: rgba(99, 102, 241, 0.2);
color: var(--primary);
padding: 5px 12px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 1px;
}
.question-info {
color: var(--text-dim);
font-size: 0.8rem;
font-weight: 600;
margin-bottom: 0.5rem;
letter-spacing: 1px;
}
.screen-quiz {
flex: 1;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
text-align: left;
}
.upload-area {
margin: 1rem 0;
width: 100%;
max-width: 300px;
}
.hidden-input {
display: none;
}
.upload-label {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
padding: 1.5rem;
border: 2px dashed var(--glass-border);
border-radius: var(--radius);
cursor: pointer;
transition: all 0.3s ease;
background: var(--glass);
}
.upload-label:hover {
border-color: var(--primary);
background: rgba(99, 102, 241, 0.05);
}
.upload-label .icon {
font-size: 1.5rem;
}
#upload-status {
font-size: 0.9rem;
color: var(--text-dim);
}
/* Tabs */
.tabs {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
width: 100%;
justify-content: center;
}
.tab-btn {
background: transparent;
border: none;
color: var(--text-dim);
font-weight: 700;
font-size: 0.8rem;
letter-spacing: 1px;
cursor: pointer;
padding: 0.5rem 1rem;
border-bottom: 2px solid transparent;
transition: all 0.3s ease;
}
.tab-btn.active {
color: var(--primary);
border-bottom-color: var(--primary);
}
.magic-info {
background: rgba(99, 102, 241, 0.05);
padding: 1.5rem;
border-radius: var(--radius);
border: 1px solid var(--glass-border);
font-size: 0.9rem;
line-height: 1.6;
color: var(--text-dim);
}
.glow-box {
margin-top: 1rem;
padding: 0.5rem;
background: var(--primary);
color: white;
border-radius: 8px;
font-weight: 700;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}
.tab-content.hidden {
display: none;
}
</style>
</body>
</html>