-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhello.html
More file actions
314 lines (292 loc) · 10.6 KB
/
Copy pathhello.html
File metadata and controls
314 lines (292 loc) · 10.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ScrollStudy</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>
<body>
<div class="popup-container">
<!-- Header Section -->
<header class="popup-header">
<img src="full_logo.png" alt="ScrollStudy Logo" class="logo">
</header>
<!-- API Key Section -->
<section class="api-section">
<div class="section-header">
<h2 class="section-title">
<i class="fas fa-key"></i>
API Configuration
</h2>
</div>
<!-- Enter Key State -->
<div id="enterKey" class="key-input-container">
<div class="input-group">
<label for="key-input" class="input-label">Gemini API Key</label>
<div class="input-wrapper">
<input type="password" id="key-input" maxlength="50" placeholder="Enter your API key..." class="api-input">
<button id="save-key-button" class="btn btn-primary btn-save">
<i class="fas fa-save"></i>
</button>
</div>
</div>
</div>
<!-- Validating Key State -->
<div id="validatingKey" class="key-status-container">
<div class="status-card validating">
<div class="status-content">
<div class="status-icon">
<div class="loader"></div>
</div>
<span class="status-text">Validating...</span>
</div>
<button class="btn btn-danger btn-delete">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
<!-- Valid Key State -->
<div id="validKey" class="key-status-container">
<div class="status-card valid">
<div class="status-content">
<div class="status-icon">
<i class="fas fa-check-circle"></i>
</div>
<span class="status-text">API Key Valid</span>
</div>
<button class="btn btn-danger btn-delete">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
<!-- Invalid Key State -->
<div id="invalidKey" class="key-status-container">
<div class="status-card invalid">
<div class="status-content">
<div class="status-icon">
<i class="fas fa-times-circle"></i>
</div>
<span class="status-text">Invalid API Key</span>
</div>
<button class="btn btn-danger btn-delete">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
<!-- Key Prompt -->
<div id="keyPrompt" class="key-prompt">
<p class="prompt-text">
<i class="fas fa-info-circle"></i>
Get a free Gemini API key
<a href="https://aistudio.google.com/app/apikey" target="_blank" class="prompt-link">
here
<i class="fas fa-external-link-alt"></i>
</a>
</p>
</div>
</section>
<!-- Main UI Section -->
<main id="main-ui" class="main-content">
<!-- Statistics Section -->
<section class="stats-section">
<div class="stats-card">
<div class="stats-content">
<div class="stats-icon">
<i class="fas fa-chart-line"></i>
</div>
<div class="stats-text">
<span class="stats-label">Correct Answers</span>
<span id="answer_stats" class="stats-value">Loading...</span>
</div>
</div>
<button id="reset-stats" class="btn btn-secondary btn-reset">
<i class="fas fa-refresh"></i>
</button>
</div>
</section>
<!-- Analysis Section -->
<section class="analysis-section">
<div class="section-header">
<h3 class="section-title">
<i class="fas fa-brain"></i>
Study Analysis
</h3>
</div>
<div class="analysis-controls">
<button id="generate-analysis" class="btn btn-primary btn-analysis">
<i class="fas fa-chart-bar"></i>
Generate Analysis Report
</button>
<button id="clear-analysis-data" class="btn btn-danger btn-clear">
<i class="fas fa-trash"></i>
Clear Data
</button>
</div>
<div class="demo-controls">
<button id="add-sample-data" class="btn btn-secondary btn-demo">
<i class="fas fa-plus"></i>
Add Sample Data
</button>
</div>
<div id="analysis-report" class="analysis-report" style="display: none;">
<div class="report-header">
<h4 class="report-title">
<i class="fas fa-file-alt"></i>
Your Study Analysis Report
</h4>
<div class="report-header-controls">
<span id="report-date" class="report-date"></span>
<button id="toggle-report" class="btn btn-secondary btn-toggle">
<i class="fas fa-chevron-up"></i>
<span class="toggle-text">Collapse</span>
</button>
</div>
</div>
<div id="report-content" class="report-content">
<div class="report-section">
<h5 class="report-section-title">
<i class="fas fa-trophy"></i>
Overall Performance
</h5>
<div class="performance-metrics">
<div class="metric">
<span class="metric-label">Total Questions</span>
<span id="total-questions" class="metric-value">0</span>
</div>
<div class="metric">
<span class="metric-label">Correct Answers</span>
<span id="correct-answers" class="metric-value">0</span>
</div>
<div class="metric">
<span class="metric-label">Accuracy Rate</span>
<span id="accuracy-rate" class="metric-value">0%</span>
</div>
</div>
</div>
<div class="report-section">
<h5 class="report-section-title">
<i class="fas fa-star"></i>
Strong Areas
</h5>
<div id="strong-areas" class="areas-list">
<p class="no-data">No strong areas identified yet</p>
</div>
</div>
<div class="report-section">
<h5 class="report-section-title">
<i class="fas fa-exclamation-triangle"></i>
Areas for Improvement
</h5>
<div id="weak-areas" class="areas-list">
<p class="no-data">No weak areas identified yet</p>
</div>
</div>
<div class="report-section">
<h5 class="report-section-title">
<i class="fas fa-lightbulb"></i>
Study Recommendations
</h5>
<div id="study-recommendations" class="recommendations-list">
<p class="no-data">Complete more questions to get personalized recommendations</p>
</div>
</div>
<div class="report-section">
<h5 class="report-section-title">
<i class="fas fa-history"></i>
Recent Performance Trend
</h5>
<div id="performance-trend" class="trend-chart">
<p class="no-data">Not enough data for trend analysis</p>
</div>
</div>
</div>
</div>
</section>
<!-- Toggle Section -->
<section class="toggle-section">
<div class="toggle-container">
<div class="toggle-label">
<i class="fas fa-power-off"></i>
<span>Enable ScrollStudy</span>
</div>
<label class="switch">
<input type="checkbox" id="toggle-switch">
<span class="slider"></span>
</label>
</div>
</section>
<!-- Source Selection Section -->
<section class="source-section">
<div class="section-header">
<h3 class="section-title">
<i class="fas fa-cog"></i>
Study Source
</h3>
</div>
<div class="source-selector">
<input class="selectopt" name="test" type="radio" id="subject" checked>
<label for="subject" class="option">
<i class="fas fa-book"></i>
<span>Subject</span>
</label>
<input class="selectopt" name="test" type="radio" id="file">
<label for="file" class="option">
<i class="fas fa-file"></i>
<span>File</span>
</label>
<input class="selectopt" name="test" type="radio" id="subject+file">
<label for="subject+file" class="option">
<i class="fas fa-layer-group"></i>
<span>Both</span>
</label>
</div>
</section>
<!-- Subject Input Section -->
<section id="subject-input-area" class="input-section">
<div class="input-group">
<label for="subject-input" class="input-label">
<i class="fas fa-graduation-cap"></i>
Study Subject
</label>
<div class="input-wrapper">
<input type="text" id="subject-input" maxlength="50" placeholder="e.g., Organic Chemistry" class="subject-input">
<button id="save-button" class="btn btn-primary btn-save">
<i class="fas fa-save"></i>
</button>
</div>
</div>
</section>
<!-- File Input Section -->
<section id="file-input-area" class="file-section">
<div class="input-group">
<label class="input-label">
<i class="fas fa-file-upload"></i>
Study File
</label>
<div class="file-info" id="fileInfo"></div>
<div class="drop-zone" id="dropZone">
<div class="drop-zone-content">
<i class="fas fa-cloud-upload-alt"></i>
<p class="drop-text">Drag & Drop PDF/Text File Here</p>
<p class="drop-subtext">or click to browse</p>
</div>
</div>
</div>
</section>
</main>
<!-- Footer -->
<footer class="popup-footer">
<div class="footer-content">
<p class="footer-text">
<i class="fas fa-heart"></i>
Made with love by Ivan Kisselev
</p>
<p class="footer-year">© 2025</p>
</div>
</footer>
</div>
<script src="popup.js"></script>
</body>
</html>