dataquantals commited on
Commit
734f86c
·
verified ·
1 Parent(s): 6629676

undefined - Follow Up Deployment

Browse files
Files changed (1) hide show
  1. index.html +511 -715
index.html CHANGED
@@ -3,778 +3,574 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Notes - Quantals Collect</title>
7
- <link rel="stylesheet" href="assets/styles.css">
8
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
 
 
9
  <style>
10
- /* Notes specific styles */
11
- .notes-header {
12
- display: flex;
13
- justify-content: space-between;
14
- align-items: center;
15
- margin-bottom: 2rem;
16
  }
17
-
18
- .notes-actions {
19
- display: flex;
20
- gap: 1rem;
21
- }
22
-
23
- .btn {
24
- display: inline-flex;
25
- align-items: center;
26
- gap: 0.5rem;
27
- padding: 0.5rem 1rem;
28
- border-radius: 0.5rem;
29
- font-size: 0.875rem;
30
- font-weight: 500;
31
- cursor: pointer;
32
- transition: all 0.2s;
33
- }
34
-
35
- .btn-primary {
36
- background: var(--primary-color);
37
- color: white;
38
- }
39
-
40
- .btn-primary:hover {
41
- background: var(--primary-hover);
42
- }
43
-
44
- .btn-secondary {
45
- background: #f3f4f6;
46
- color: #4b5563;
47
- }
48
-
49
- .btn-secondary:hover {
50
- background: #e5e7eb;
51
- }
52
-
53
- .search-bar {
54
- display: flex;
55
- gap: 1rem;
56
- margin-bottom: 2rem;
57
- }
58
-
59
- .search-input {
60
- flex: 1;
61
- padding: 0.5rem 1rem;
62
- border: 1px solid #d1d5db;
63
- border-radius: 0.5rem;
64
- font-size: 0.875rem;
65
- color: #111827;
66
- transition: border-color 0.2s;
67
- }
68
-
69
- .search-input:focus {
70
- outline: none;
71
- border-color: var(--primary-color);
72
- }
73
-
74
- .filter-select {
75
- padding: 0.5rem 1rem;
76
- border: 1px solid #d1d5db;
77
- border-radius: 0.5rem;
78
- font-size: 0.875rem;
79
- color: #111827;
80
- background: white;
81
- cursor: pointer;
82
- }
83
-
84
- .notes-grid {
85
- display: grid;
86
- grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
87
- gap: 1.5rem;
88
- }
89
-
90
- .note-card {
91
- background: white;
92
- border-radius: 0.75rem;
93
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
94
- overflow: hidden;
95
- transition: transform 0.2s, box-shadow 0.2s;
96
  }
97
-
98
- .note-card:hover {
99
- transform: translateY(-2px);
100
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
101
- }
102
-
103
- .note-header {
104
- padding: 1.5rem;
105
- border-bottom: 1px solid #e5e7eb;
106
  }
107
-
108
- .note-title {
109
- font-size: 1.25rem;
110
- font-weight: 600;
111
- color: #111827;
112
- margin-bottom: 0.5rem;
113
- }
114
-
115
- .note-meta {
116
- display: flex;
117
- gap: 1rem;
118
- font-size: 0.875rem;
119
- color: #6b7280;
120
- }
121
-
122
- .note-meta-item {
123
- display: flex;
124
- align-items: center;
125
- gap: 0.25rem;
126
- }
127
-
128
- .note-body {
129
- padding: 1.5rem;
130
- }
131
-
132
- .note-content {
133
- color: #4b5563;
134
- margin-bottom: 1rem;
135
- line-height: 1.5;
136
- }
137
-
138
- .note-tags {
139
- display: flex;
140
- flex-wrap: wrap;
141
- gap: 0.5rem;
142
- margin-bottom: 1rem;
143
- }
144
-
145
- .note-tag {
146
- padding: 0.25rem 0.75rem;
147
- background: #f3f4f6;
148
- border-radius: 1rem;
149
- font-size: 0.875rem;
150
- color: #4b5563;
151
- display: flex;
152
- align-items: center;
153
- gap: 0.25rem;
154
- }
155
-
156
- .note-footer {
157
- padding: 1rem 1.5rem;
158
- background: #f9fafb;
159
- border-top: 1px solid #e5e7eb;
160
- display: flex;
161
- justify-content: space-between;
162
- align-items: center;
163
- }
164
-
165
- .note-actions {
166
- display: flex;
167
- gap: 0.5rem;
168
- }
169
-
170
- .action-btn {
171
- padding: 0.25rem;
172
- color: #6b7280;
173
- border-radius: 0.375rem;
174
- transition: all 0.2s;
175
- }
176
-
177
- .action-btn:hover {
178
- background: #e5e7eb;
179
- color: #111827;
180
- }
181
-
182
- .note-type {
183
- display: inline-flex;
184
- align-items: center;
185
- gap: 0.5rem;
186
- padding: 0.25rem 0.75rem;
187
- border-radius: 1rem;
188
- font-size: 0.875rem;
189
- font-weight: 500;
190
- }
191
-
192
- .type-interview {
193
- background: #dbeafe;
194
- color: #1e40af;
195
- }
196
-
197
- .type-observation {
198
- background: #dcfce7;
199
- color: #166534;
200
- }
201
-
202
- .type-reflection {
203
- background: #fef3c7;
204
- color: #92400e;
205
- }
206
-
207
- /* Modal styles */
208
- .modal {
209
- display: none;
210
- position: fixed;
211
- top: 0;
212
- left: 0;
213
- right: 0;
214
- bottom: 0;
215
- background: rgba(0, 0, 0, 0.5);
216
- z-index: 1000;
217
- align-items: center;
218
- justify-content: center;
219
- }
220
-
221
- .modal.active {
222
- display: flex;
223
- }
224
-
225
- .modal-content {
226
- background: white;
227
- border-radius: 0.75rem;
228
- width: 100%;
229
- max-width: 600px;
230
- max-height: 90vh;
231
- overflow-y: auto;
232
- }
233
-
234
- .modal-header {
235
- padding: 1.5rem;
236
- border-bottom: 1px solid #e5e7eb;
237
- display: flex;
238
- justify-content: space-between;
239
- align-items: center;
240
- }
241
-
242
- .modal-title {
243
- font-size: 1.25rem;
244
- font-weight: 600;
245
- color: #111827;
246
- }
247
-
248
- .modal-close {
249
- padding: 0.5rem;
250
- color: #6b7280;
251
- border-radius: 0.375rem;
252
- cursor: pointer;
253
- transition: all 0.2s;
254
- }
255
-
256
- .modal-close:hover {
257
- background: #f3f4f6;
258
- color: #111827;
259
- }
260
-
261
- .modal-body {
262
- padding: 1.5rem;
263
- }
264
-
265
- .form-group {
266
- margin-bottom: 1.5rem;
267
- }
268
-
269
- .form-label {
270
- display: block;
271
- font-size: 0.875rem;
272
- font-weight: 500;
273
- color: #374151;
274
- margin-bottom: 0.5rem;
275
- }
276
-
277
- .form-input {
278
- width: 100%;
279
- padding: 0.5rem 0.75rem;
280
- border: 1px solid #d1d5db;
281
- border-radius: 0.375rem;
282
- font-size: 0.875rem;
283
- color: #111827;
284
- transition: border-color 0.2s;
285
- }
286
-
287
- .form-input:focus {
288
- outline: none;
289
- border-color: var(--primary-color);
290
- }
291
-
292
- .form-textarea {
293
  min-height: 200px;
294
- resize: vertical;
295
  }
296
-
297
- .form-select {
298
- width: 100%;
299
- padding: 0.5rem 0.75rem;
300
- border: 1px solid #d1d5db;
301
- border-radius: 0.375rem;
302
- font-size: 0.875rem;
303
- color: #111827;
304
  background: white;
305
- cursor: pointer;
306
- }
307
-
308
- .modal-footer {
309
- padding: 1rem 1.5rem;
310
- border-top: 1px solid #e5e7eb;
311
- display: flex;
312
- justify-content: flex-end;
313
- gap: 1rem;
314
  }
315
-
316
- .pagination {
317
- display: flex;
318
- justify-content: center;
319
- align-items: center;
320
- gap: 0.5rem;
321
- margin-top: 2rem;
322
  }
323
-
324
- .page-btn {
325
- padding: 0.5rem 1rem;
326
- border: 1px solid #d1d5db;
327
- border-radius: 0.375rem;
328
- font-size: 0.875rem;
329
- color: #4b5563;
330
- background: white;
331
- cursor: pointer;
332
- transition: all 0.2s;
333
  }
334
-
335
- .page-btn:hover {
336
- background: #f3f4f6;
337
  }
338
-
339
- .page-btn.active {
340
- background: var(--primary-color);
341
- color: white;
342
- border-color: var(--primary-color);
343
- }
344
-
345
- .note-attachments {
346
- margin-top: 1rem;
347
- padding-top: 1rem;
348
- border-top: 1px solid #e5e7eb;
349
- }
350
-
351
- .attachment-list {
352
- display: flex;
353
- flex-direction: column;
354
- gap: 0.5rem;
355
- }
356
-
357
- .attachment-item {
358
- display: flex;
359
- align-items: center;
360
- gap: 0.5rem;
361
- padding: 0.5rem;
362
- background: #f9fafb;
363
- border-radius: 0.375rem;
364
- font-size: 0.875rem;
365
- color: #4b5563;
366
- }
367
-
368
- .attachment-icon {
369
- color: #6b7280;
370
- }
371
-
372
- .attachment-name {
373
- flex: 1;
374
- min-width: 0;
375
- overflow: hidden;
376
- text-overflow: ellipsis;
377
- white-space: nowrap;
378
- }
379
-
380
- .attachment-size {
381
- color: #6b7280;
382
  }
383
  </style>
384
  </head>
385
- <body>
386
- <div class="app-container">
387
- <!-- Mobile Menu Button -->
388
- <button class="mobile-menu-btn">
389
- <i class="fas fa-bars"></i>
390
- </button>
391
-
392
- <!-- Sidebar -->
393
- <aside class="sidebar">
394
- <div class="sidebar-header">
395
- <div class="logo">
396
- <i class="fas fa-microscope"></i>
397
- </div>
398
- <h1>Quantals Collect</h1>
399
- </div>
400
 
401
- <nav class="sidebar-nav">
402
- <a href="dashboard.html" class="nav-item" data-tooltip="Dashboard">
403
- <i class="fas fa-home"></i>
404
- <span>Dashboard</span>
405
- </a>
406
- <a href="projects.html" class="nav-item" data-tooltip="Projects">
407
- <i class="fas fa-project-diagram"></i>
408
- <span>Projects</span>
409
- </a>
410
- <a href="participants.html" class="nav-item" data-tooltip="Participants">
411
- <i class="fas fa-users"></i>
412
- <span>Participants</span>
413
- </a>
414
- <a href="interviews.html" class="nav-item" data-tooltip="Interviews">
415
- <i class="fas fa-microphone"></i>
416
- <span>Interviews</span>
417
- </a>
418
- <a href="notes.html" class="nav-item" data-tooltip="Notes">
419
- <i class="fas fa-sticky-note"></i>
420
- <span>Notes</span>
421
- </a>
422
- <a href="codes.html" class="nav-item" data-tooltip="Codes">
423
- <i class="fas fa-tags"></i>
424
- <span>Codes</span>
425
- </a>
426
- <a href="analysis.html" class="nav-item" data-tooltip="Analysis">
427
- <i class="fas fa-chart-pie"></i>
428
- <span>Analysis</span>
429
- </a>
430
- <a href="transcriber.html" class="nav-item" data-tooltip="Transcriber">
431
- <i class="fas fa-keyboard"></i>
432
- <span>Transcriber</span>
433
- </a>
434
- <a href="ai-assist.html" class="nav-item" data-tooltip="AI Assist">
435
- <i class="fas fa-robot"></i>
436
- <span>AI Assist</span>
437
- </a>
438
- </nav>
439
-
440
- <div class="sidebar-footer">
441
- <div class="user-section">
442
- <div class="user-avatar">JD</div>
443
- <div class="user-info">
444
- <div class="user-name">John Doe</div>
445
- <div class="user-role">Researcher</div>
446
  </div>
447
  </div>
448
  </div>
449
- </aside>
450
 
451
- <!-- Main Content -->
452
- <main class="main-content">
453
- <div class="page-header">
454
- <h1>Notes</h1>
455
- <p>Create and manage your research notes.</p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
456
  </div>
 
457
 
458
- <div class="notes-header">
459
- <div class="search-bar">
460
- <input type="text" class="search-input" placeholder="Search notes...">
461
- <select class="filter-select">
462
- <option value="">All Projects</option>
463
- <option value="urban">Urban Sustainability</option>
464
- <option value="healthcare">Healthcare Access</option>
465
- <option value="education">Education Policy</option>
466
- </select>
467
- <select class="filter-select">
468
- <option value="">All Types</option>
469
- <option value="interview">Interview Notes</option>
470
- <option value="observation">Observation Notes</option>
471
- <option value="reflection">Reflection Notes</option>
472
- </select>
473
  </div>
474
- <div class="notes-actions">
475
- <button class="btn btn-primary" onclick="openNewNoteModal()">
476
- <i class="fas fa-plus"></i>
477
- New Note
478
- </button>
479
- <button class="btn btn-secondary">
480
- <i class="fas fa-upload"></i>
481
- Import
482
  </button>
483
- </div>
484
- </div>
485
-
486
- <div class="notes-grid">
487
- <!-- Note Card 1 -->
488
- <div class="note-card">
489
- <div class="note-header">
490
- <h2 class="note-title">Urban Development Interview Notes</h2>
491
- <div class="note-meta">
492
- <div class="note-meta-item">
493
- <i class="fas fa-calendar"></i>
494
- <span>Mar 15, 2024</span>
495
- </div>
496
- <div class="note-meta-item">
497
- <i class="fas fa-user"></i>
498
- <span>John Doe</span>
499
- </div>
500
  </div>
 
501
  </div>
502
- <div class="note-body">
503
- <div class="note-type type-interview">
504
- <i class="fas fa-microphone"></i>
505
- <span>Interview Notes</span>
506
- </div>
507
- <p class="note-content">
508
- Key insights from the interview with the urban development team. Discussed sustainable practices and community engagement strategies.
509
- </p>
510
- <div class="note-tags">
511
- <div class="note-tag">
512
- <i class="fas fa-hashtag"></i>
513
- <span>urban-planning</span>
514
- </div>
515
- <div class="note-tag">
516
- <i class="fas fa-hashtag"></i>
517
- <span>sustainability</span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
518
  </div>
519
  </div>
520
- <div class="note-attachments">
521
- <div class="attachment-list">
522
- <div class="attachment-item">
523
- <i class="fas fa-file-pdf attachment-icon"></i>
524
- <span class="attachment-name">interview_transcript.pdf</span>
525
- <span class="attachment-size">2.4 MB</span>
 
 
 
 
 
 
 
 
 
 
 
 
 
526
  </div>
527
- <div class="attachment-item">
528
- <i class="fas fa-file-image attachment-icon"></i>
529
- <span class="attachment-name">site_photos.zip</span>
530
- <span class="attachment-size">5.1 MB</span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
531
  </div>
532
  </div>
533
- </div>
534
- </div>
535
- <div class="note-footer">
536
- <div class="note-actions">
537
- <button class="action-btn" title="Edit">
538
- <i class="fas fa-edit"></i>
539
- </button>
540
- <button class="action-btn" title="View Details">
541
- <i class="fas fa-eye"></i>
542
- </button>
543
- <button class="action-btn" title="More">
544
- <i class="fas fa-ellipsis-v"></i>
545
- </button>
546
- </div>
547
- </div>
548
- </div>
549
 
550
- <!-- Note Card 2 -->
551
- <div class="note-card">
552
- <div class="note-header">
553
- <h2 class="note-title">Healthcare Facility Observation</h2>
554
- <div class="note-meta">
555
- <div class="note-meta-item">
556
- <i class="fas fa-calendar"></i>
557
- <span>Mar 14, 2024</span>
558
- </div>
559
- <div class="note-meta-item">
560
- <i class="fas fa-user"></i>
561
- <span>Jane Smith</span>
562
- </div>
563
- </div>
564
- </div>
565
- <div class="note-body">
566
- <div class="note-type type-observation">
567
- <i class="fas fa-clipboard-list"></i>
568
- <span>Observation Notes</span>
569
- </div>
570
- <p class="note-content">
571
- Field observations from the rural healthcare facility visit. Noted accessibility challenges and potential improvement areas.
572
- </p>
573
- <div class="note-tags">
574
- <div class="note-tag">
575
- <i class="fas fa-hashtag"></i>
576
- <span>healthcare</span>
577
- </div>
578
- <div class="note-tag">
579
- <i class="fas fa-hashtag"></i>
580
- <span>accessibility</span>
581
- </div>
582
- </div>
583
- <div class="note-attachments">
584
- <div class="attachment-list">
585
- <div class="attachment-item">
586
- <i class="fas fa-file-image attachment-icon"></i>
587
- <span class="attachment-name">facility_photos.zip</span>
588
- <span class="attachment-size">8.2 MB</span>
589
  </div>
590
  </div>
591
- </div>
592
- </div>
593
- <div class="note-footer">
594
- <div class="note-actions">
595
- <button class="action-btn" title="Edit">
596
- <i class="fas fa-edit"></i>
597
- </button>
598
- <button class="action-btn" title="View Details">
599
- <i class="fas fa-eye"></i>
600
- </button>
601
- <button class="action-btn" title="More">
602
- <i class="fas fa-ellipsis-v"></i>
603
- </button>
604
- </div>
605
- </div>
606
- </div>
607
 
608
- <!-- Note Card 3 -->
609
- <div class="note-card">
610
- <div class="note-header">
611
- <h2 class="note-title">Education Policy Reflection</h2>
612
- <div class="note-meta">
613
- <div class="note-meta-item">
614
- <i class="fas fa-calendar"></i>
615
- <span>Mar 13, 2024</span>
616
- </div>
617
- <div class="note-meta-item">
618
- <i class="fas fa-user"></i>
619
- <span>Robert Johnson</span>
620
- </div>
621
- </div>
622
- </div>
623
- <div class="note-body">
624
- <div class="note-type type-reflection">
625
- <i class="fas fa-lightbulb"></i>
626
- <span>Reflection Notes</span>
627
- </div>
628
- <p class="note-content">
629
- Reflections on the impact of recent policy changes on student performance and teacher effectiveness.
630
- </p>
631
- <div class="note-tags">
632
- <div class="note-tag">
633
- <i class="fas fa-hashtag"></i>
634
- <span>education</span>
635
- </div>
636
- <div class="note-tag">
637
- <i class="fas fa-hashtag"></i>
638
- <span>policy</span>
639
  </div>
640
- </div>
641
- <div class="note-attachments">
642
- <div class="attachment-list">
643
- <div class="attachment-item">
644
- <i class="fas fa-file-pdf attachment-icon"></i>
645
- <span class="attachment-name">policy_analysis.pdf</span>
646
- <span class="attachment-size">1.8 MB</span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
647
  </div>
648
  </div>
649
  </div>
650
  </div>
651
- <div class="note-footer">
652
- <div class="note-actions">
653
- <button class="action-btn" title="Edit">
654
- <i class="fas fa-edit"></i>
655
- </button>
656
- <button class="action-btn" title="View Details">
657
- <i class="fas fa-eye"></i>
658
- </button>
659
- <button class="action-btn" title="More">
660
- <i class="fas fa-ellipsis-v"></i>
661
- </button>
662
- </div>
663
- </div>
664
  </div>
665
- </div>
666
-
667
- <div class="pagination">
668
- <button class="page-btn">
669
- <i class="fas fa-chevron-left"></i>
670
- </button>
671
- <button class="page-btn active">1</button>
672
- <button class="page-btn">2</button>
673
- <button class="page-btn">3</button>
674
- <button class="page-btn">
675
- <i class="fas fa-chevron-right"></i>
676
- </button>
677
- </div>
678
- </main>
679
  </div>
680
 
681
- <!-- New Note Modal -->
682
- <div class="modal" id="newNoteModal">
683
- <div class="modal-content">
684
- <div class="modal-header">
685
- <h2 class="modal-title">Create New Note</h2>
686
- <button class="modal-close" onclick="closeNewNoteModal()">
687
- <i class="fas fa-times"></i>
688
- </button>
689
- </div>
690
- <div class="modal-body">
691
- <form id="newNoteForm">
692
- <div class="form-group">
693
- <label class="form-label">Note Title</label>
694
- <input type="text" class="form-input" required>
695
- </div>
696
- <div class="form-group">
697
- <label class="form-label">Note Type</label>
698
- <select class="form-select" required>
699
- <option value="interview">Interview Notes</option>
700
- <option value="observation">Observation Notes</option>
701
- <option value="reflection">Reflection Notes</option>
702
- </select>
703
- </div>
704
- <div class="form-group">
705
- <label class="form-label">Project</label>
706
- <select class="form-select" required>
707
- <option value="">Select Project</option>
708
- <option value="urban">Urban Sustainability Study</option>
709
- <option value="healthcare">Healthcare Access Research</option>
710
- <option value="education">Education Policy Study</option>
711
- </select>
712
- </div>
713
- <div class="form-group">
714
- <label class="form-label">Content</label>
715
- <textarea class="form-input form-textarea" required></textarea>
716
- </div>
717
- <div class="form-group">
718
- <label class="form-label">Tags</label>
719
- <input type="text" class="form-input" placeholder="Add tags separated by commas">
720
- </div>
721
- <div class="form-group">
722
- <label class="form-label">Attachments</label>
723
- <input type="file" class="form-input" multiple>
724
- </div>
725
- </form>
726
- </div>
727
- <div class="modal-footer">
728
- <button class="btn btn-secondary" onclick="closeNewNoteModal()">Cancel</button>
729
- <button class="btn btn-primary" onclick="createNewNote()">Create Note</button>
730
- </div>
731
  </div>
732
  </div>
733
 
734
- <script src="assets/navigation.js"></script>
735
  <script>
736
- // Modal functionality
737
- function openNewNoteModal() {
738
- document.getElementById('newNoteModal').classList.add('active');
739
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
740
 
741
- function closeNewNoteModal() {
742
- document.getElementById('newNoteModal').classList.remove('active');
743
- }
 
 
 
 
 
 
 
 
744
 
745
- function createNewNote() {
746
- // Handle note creation
747
- const form = document.getElementById('newNoteForm');
748
- if (form.checkValidity()) {
749
- // Add your note creation logic here
750
- closeNewNoteModal();
751
- } else {
752
- form.reportValidity();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
753
  }
754
  }
755
 
756
- // Close modal when clicking outside
757
- document.getElementById('newNoteModal').addEventListener('click', (e) => {
758
- if (e.target === e.currentTarget) {
759
- closeNewNoteModal();
 
 
 
 
 
760
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
761
  });
762
 
763
- // Search functionality
764
- const searchInput = document.querySelector('.search-input');
765
- searchInput.addEventListener('input', (e) => {
766
- // Add your search logic here
767
- console.log('Searching for:', e.target.value);
768
  });
769
 
770
- // Filter functionality
771
- const filterSelects = document.querySelectorAll('.filter-select');
772
- filterSelects.forEach(select => {
773
- select.addEventListener('change', (e) => {
774
- // Add your filter logic here
775
- console.log('Filter changed:', e.target.value);
776
- });
 
 
 
 
 
 
 
 
 
 
 
 
777
  });
778
  </script>
779
- <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://deepsite.hf.co/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://deepsite.hf.co" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://deepsite.hf.co?remix=dataquantals/quantals-collect" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
780
  </html>
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Interview Management - Quantals Collect</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <script src="https://cdn.quilljs.com/1.3.6/quill.min.js"></script>
10
+ <link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet">
11
  <style>
12
+ /* Custom styles */
13
+ .recording-indicator {
14
+ animation: pulse 2s infinite;
 
 
 
15
  }
16
+ @keyframes pulse {
17
+ 0% { opacity: 1; }
18
+ 50% { opacity: 0.5; }
19
+ 100% { opacity: 1; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  }
21
+ .media-container {
22
+ aspect-ratio: 16/9;
23
+ background: #000;
 
 
 
 
 
 
24
  }
25
+ .ql-editor {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  min-height: 200px;
 
27
  }
28
+ .interview-history-table th {
29
+ position: sticky;
30
+ top: 0;
 
 
 
 
 
31
  background: white;
32
+ z-index: 10;
 
 
 
 
 
 
 
 
33
  }
34
+ .mobile-menu {
35
+ transition: transform 0.3s ease-in-out;
 
 
 
 
 
36
  }
37
+ .mobile-menu.hidden {
38
+ transform: translateX(-100%);
 
 
 
 
 
 
 
 
39
  }
40
+ .mobile-menu.show {
41
+ transform: translateX(0);
 
42
  }
43
+ @media (max-width: 768px) {
44
+ .nav-item {
45
+ padding: 0.75rem 1rem;
46
+ border-bottom: 1px solid #e5e7eb;
47
+ }
48
+ .nav-item:last-child {
49
+ border-bottom: none;
50
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  }
52
  </style>
53
  </head>
54
+ <body class="bg-gray-50 font-sans">
55
+ <div class="flex flex-col h-screen overflow-hidden">
56
+ <!-- Top Navigation Bar -->
57
+ <nav class="bg-indigo-800 text-white shadow-lg">
58
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
59
+ <div class="flex justify-between items-center h-16">
60
+ <!-- Logo and Brand -->
61
+ <div class="flex items-center space-x-3">
62
+ <div class="bg-white p-2 rounded-lg">
63
+ <i class="fas fa-microscope text-indigo-800 text-xl"></i>
64
+ </div>
65
+ <h1 class="text-xl font-bold">Quantals Collect</h1>
66
+ </div>
 
 
67
 
68
+ <!-- Desktop Navigation -->
69
+ <div class="hidden md:flex items-center space-x-1">
70
+ <a href="index.html" class="flex items-center space-x-2 px-3 py-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white transition-colors">
71
+ <i class="fas fa-home"></i>
72
+ <span>Dashboard</span>
73
+ </a>
74
+ <a href="projects.html" class="flex items-center space-x-2 px-3 py-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white transition-colors">
75
+ <i class="fas fa-project-diagram"></i>
76
+ <span>Projects</span>
77
+ </a>
78
+ <a href="participants.html" class="flex items-center space-x-2 px-3 py-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white transition-colors">
79
+ <i class="fas fa-users"></i>
80
+ <span>Participants</span>
81
+ </a>
82
+ <a href="interview.html" class="flex items-center space-x-2 px-3 py-2 rounded-lg bg-indigo-700 text-white">
83
+ <i class="fas fa-microphone"></i>
84
+ <span>Interviews</span>
85
+ </a>
86
+ <a href="analysis.html" class="flex items-center space-x-2 px-3 py-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white transition-colors">
87
+ <i class="fas fa-chart-pie"></i>
88
+ <span>Analysis</span>
89
+ </a>
90
+ <a href="ai-assist.html" class="flex items-center space-x-2 px-3 py-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white transition-colors">
91
+ <i class="fas fa-robot"></i>
92
+ <span>AI Assist</span>
93
+ </a>
94
+ <a href="transcriber.html" class="flex items-center space-x-2 px-3 py-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white transition-colors">
95
+ <i class="fas fa-keyboard"></i>
96
+ <span>Transcriber</span>
97
+ </a>
98
+ </div>
99
+
100
+ <!-- User Menu and Mobile Menu Button -->
101
+ <div class="flex items-center space-x-4">
102
+ <!-- Settings Link (Desktop) -->
103
+ <a href="settings.html" class="hidden md:flex items-center space-x-2 px-3 py-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white transition-colors">
104
+ <i class="fas fa-cog"></i>
105
+ <span>Settings</span>
106
+ </a>
107
+
108
+ <!-- Mobile Menu Button -->
109
+ <button id="mobileMenuBtn" class="md:hidden p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white transition-colors">
110
+ <i class="fas fa-bars text-xl"></i>
111
+ </button>
 
112
  </div>
113
  </div>
114
  </div>
 
115
 
116
+ <!-- Mobile Navigation Menu -->
117
+ <div id="mobileMenu" class="mobile-menu hidden md:hidden bg-indigo-800 border-t border-indigo-700">
118
+ <div class="px-4 py-2 space-y-1">
119
+ <a href="index.html" class="nav-item flex items-center space-x-3 text-indigo-200 hover:bg-indigo-700 hover:text-white rounded-lg transition-colors">
120
+ <i class="fas fa-home w-5"></i>
121
+ <span>Dashboard</span>
122
+ </a>
123
+ <a href="projects.html" class="nav-item flex items-center space-x-3 text-indigo-200 hover:bg-indigo-700 hover:text-white rounded-lg transition-colors">
124
+ <i class="fas fa-project-diagram w-5"></i>
125
+ <span>Projects</span>
126
+ </a>
127
+ <a href="participants.html" class="nav-item flex items-center space-x-3 text-indigo-200 hover:bg-indigo-700 hover:text-white rounded-lg transition-colors">
128
+ <i class="fas fa-users w-5"></i>
129
+ <span>Participants</span>
130
+ </a>
131
+ <a href="interview.html" class="nav-item flex items-center space-x-3 bg-indigo-700 text-white rounded-lg">
132
+ <i class="fas fa-microphone w-5"></i>
133
+ <span>Interviews</span>
134
+ </a>
135
+ <a href="analysis.html" class="nav-item flex items-center space-x-3 text-indigo-200 hover:bg-indigo-700 hover:text-white rounded-lg transition-colors">
136
+ <i class="fas fa-chart-pie w-5"></i>
137
+ <span>Analysis</span>
138
+ </a>
139
+ <a href="ai-assist.html" class="nav-item flex items-center space-x-3 text-indigo-200 hover:bg-indigo-700 hover:text-white rounded-lg transition-colors">
140
+ <i class="fas fa-robot w-5"></i>
141
+ <span>AI Assist</span>
142
+ </a>
143
+ <a href="transcriber.html" class="nav-item flex items-center space-x-3 text-indigo-200 hover:bg-indigo-700 hover:text-white rounded-lg transition-colors">
144
+ <i class="fas fa-keyboard w-5"></i>
145
+ <span>Transcriber</span>
146
+ </a>
147
+ <a href="settings.html" class="nav-item flex items-center space-x-3 text-indigo-200 hover:bg-indigo-700 hover:text-white rounded-lg transition-colors">
148
+ <i class="fas fa-cog w-5"></i>
149
+ <span>Settings</span>
150
+ </a>
151
+ </div>
152
  </div>
153
+ </nav>
154
 
155
+ <!-- Main Content -->
156
+ <div class="flex-1 flex flex-col overflow-hidden">
157
+ <!-- Header -->
158
+ <header class="bg-white shadow-sm p-4 flex justify-between items-center">
159
+ <div class="flex items-center space-x-4">
160
+ <h2 class="text-xl font-semibold text-gray-800">Interviews</h2>
161
+ <div class="offline-indicator hidden px-3 py-1 bg-yellow-100 text-yellow-800 rounded-full text-sm">
162
+ <i class="fas fa-wifi-slash mr-1"></i> Offline
163
+ </div>
 
 
 
 
 
 
164
  </div>
165
+ <div class="flex items-center space-x-4">
166
+ <button class="p-2 rounded-full hover:bg-gray-100 relative">
167
+ <i class="fas fa-bell text-gray-600"></i>
168
+ <span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span>
 
 
 
 
169
  </button>
170
+ <div class="hidden sm:flex items-center space-x-2">
171
+ <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center">
172
+ <span class="text-xs font-medium text-indigo-800">RS</span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
  </div>
174
+ <span class="text-sm">Research Team</span>
175
  </div>
176
+ <button class="bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700 transition-colors flex items-center space-x-2">
177
+ <i class="fas fa-plus"></i>
178
+ <span class="hidden sm:inline">Start New Interview</span>
179
+ <span class="sm:hidden">New</span>
180
+ </button>
181
+ </div>
182
+ </header>
183
+
184
+ <!-- Main Content Area -->
185
+ <main class="flex-1 overflow-y-auto p-4 sm:p-6">
186
+ <div class="max-w-7xl mx-auto">
187
+ <div class="grid grid-cols-1 lg:grid-cols-12 gap-6">
188
+ <!-- Left Sidebar - Scheduling Panel -->
189
+ <div class="lg:col-span-3">
190
+ <div class="bg-white rounded-lg shadow-sm p-4">
191
+ <h3 class="text-lg font-semibold text-gray-800 mb-4">Upcoming Interviews</h3>
192
+ <div class="space-y-4">
193
+ <!-- Sample Interview Items -->
194
+ <div class="p-3 bg-gray-50 rounded-lg">
195
+ <div class="text-sm text-gray-600">Today, 2:00 PM</div>
196
+ <div class="font-medium">John Doe</div>
197
+ <div class="text-sm text-gray-500">Project: UX Research</div>
198
+ </div>
199
+ <div class="p-3 bg-gray-50 rounded-lg">
200
+ <div class="text-sm text-gray-600">Tomorrow, 10:30 AM</div>
201
+ <div class="font-medium">Jane Smith</div>
202
+ <div class="text-sm text-gray-500">Project: Market Study</div>
203
+ </div>
204
+ </div>
205
+ <button class="mt-4 w-full bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700 transition-colors flex items-center justify-center space-x-2">
206
+ <i class="fas fa-plus"></i>
207
+ <span>Schedule Interview</span>
208
+ </button>
209
  </div>
210
  </div>
211
+
212
+ <!-- Main Workspace -->
213
+ <div class="lg:col-span-9 space-y-6">
214
+ <!-- Recording Panel -->
215
+ <div class="bg-white rounded-lg shadow-sm p-4">
216
+ <h3 class="text-lg font-semibold text-gray-800 mb-4">Recording</h3>
217
+ <div class="flex flex-wrap gap-4 mb-4">
218
+ <button class="bg-red-600 text-white px-4 py-2 rounded-lg hover:bg-red-700 transition-colors flex items-center space-x-2">
219
+ <i class="fas fa-microphone"></i>
220
+ <span>Record Audio</span>
221
+ </button>
222
+ <button class="bg-red-600 text-white px-4 py-2 rounded-lg hover:bg-red-700 transition-colors flex items-center space-x-2">
223
+ <i class="fas fa-video"></i>
224
+ <span>Record Video</span>
225
+ </button>
226
+ <button class="bg-gray-600 text-white px-4 py-2 rounded-lg hover:bg-gray-700 transition-colors flex items-center space-x-2">
227
+ <i class="fas fa-upload"></i>
228
+ <span>Upload File</span>
229
+ </button>
230
  </div>
231
+ <div class="media-container rounded-lg mb-4">
232
+ <!-- Media player will be inserted here -->
233
+ </div>
234
+ <div class="flex justify-between items-center">
235
+ <div class="text-sm text-gray-600">
236
+ <span class="recording-indicator hidden text-red-600">
237
+ <i class="fas fa-circle"></i> Recording...
238
+ </span>
239
+ <span class="timer">00:00:00</span>
240
+ </div>
241
+ <div class="flex space-x-2">
242
+ <button class="bg-gray-100 text-gray-700 px-3 py-1 rounded hover:bg-gray-200 transition-colors">
243
+ <i class="fas fa-pause"></i>
244
+ </button>
245
+ <button class="bg-gray-100 text-gray-700 px-3 py-1 rounded hover:bg-gray-200 transition-colors">
246
+ <i class="fas fa-stop"></i>
247
+ </button>
248
+ </div>
249
  </div>
250
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
251
 
252
+ <!-- Notes Panel -->
253
+ <div class="bg-white rounded-lg shadow-sm p-4">
254
+ <h3 class="text-lg font-semibold text-gray-800 mb-4">Live Notes</h3>
255
+ <div class="mb-4">
256
+ <div class="text-sm text-gray-600">
257
+ <span class="font-medium">Project:</span> UX Research
258
+ <span class="mx-2">|</span>
259
+ <span class="font-medium">Participant:</span> John Doe
260
+ </div>
261
+ </div>
262
+ <div id="editor" class="h-64"></div>
263
+ <div class="mt-4 flex justify-between items-center">
264
+ <button class="bg-gray-100 text-gray-700 px-3 py-1 rounded hover:bg-gray-200 transition-colors flex items-center space-x-2">
265
+ <i class="fas fa-clock"></i>
266
+ <span>Insert Timestamp</span>
267
+ </button>
268
+ <div class="text-sm text-gray-500">
269
+ Last saved: Just now
270
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
271
  </div>
272
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
273
 
274
+ <!-- Playback & Review Panel -->
275
+ <div class="bg-white rounded-lg shadow-sm p-4">
276
+ <h3 class="text-lg font-semibold text-gray-800 mb-4">Playback & Review</h3>
277
+ <div class="flex flex-wrap gap-4 mb-4">
278
+ <button class="bg-gray-100 text-gray-700 px-4 py-2 rounded hover:bg-gray-200 transition-colors flex items-center space-x-2">
279
+ <i class="fas fa-file-alt"></i>
280
+ <span>View Transcript</span>
281
+ </button>
282
+ <div class="relative">
283
+ <button class="bg-gray-100 text-gray-700 px-4 py-2 rounded hover:bg-gray-200 transition-colors flex items-center space-x-2">
284
+ <i class="fas fa-download"></i>
285
+ <span>Export</span>
286
+ <i class="fas fa-chevron-down ml-2"></i>
287
+ </button>
288
+ <!-- Export dropdown menu -->
289
+ </div>
290
+ </div>
291
+ <div class="flex flex-wrap items-center gap-4 mb-4">
292
+ <label class="flex items-center space-x-2">
293
+ <input type="checkbox" class="form-checkbox text-indigo-600">
294
+ <span class="text-sm text-gray-700">Show Transcript</span>
295
+ </label>
296
+ <label class="flex items-center space-x-2">
297
+ <input type="checkbox" class="form-checkbox text-indigo-600">
298
+ <span class="text-sm text-gray-700">Sync Notes Timeline</span>
299
+ </label>
300
+ </div>
301
+ <div id="transcript" class="hidden bg-gray-50 rounded-lg p-4 max-h-64 overflow-y-auto">
302
+ <!-- Transcript content will be inserted here -->
303
+ </div>
 
304
  </div>
305
+
306
+ <!-- Interview History -->
307
+ <div class="bg-white rounded-lg shadow-sm p-4">
308
+ <h3 class="text-lg font-semibold text-gray-800 mb-4">Interview History</h3>
309
+ <div class="overflow-x-auto">
310
+ <table class="interview-history-table min-w-full">
311
+ <thead>
312
+ <tr class="bg-gray-50">
313
+ <th class="px-4 py-2 text-left text-sm font-medium text-gray-500">Interview ID</th>
314
+ <th class="px-4 py-2 text-left text-sm font-medium text-gray-500">Participant</th>
315
+ <th class="px-4 py-2 text-left text-sm font-medium text-gray-500">Date</th>
316
+ <th class="px-4 py-2 text-left text-sm font-medium text-gray-500">Status</th>
317
+ <th class="px-4 py-2 text-left text-sm font-medium text-gray-500">Media Type</th>
318
+ <th class="px-4 py-2 text-left text-sm font-medium text-gray-500">Actions</th>
319
+ </tr>
320
+ </thead>
321
+ <tbody class="divide-y divide-gray-200">
322
+ <!-- Sample rows -->
323
+ <tr>
324
+ <td class="px-4 py-2 text-sm">IVW-20240315-001</td>
325
+ <td class="px-4 py-2 text-sm">John Doe</td>
326
+ <td class="px-4 py-2 text-sm">Mar 15, 2024</td>
327
+ <td class="px-4 py-2 text-sm">
328
+ <span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">Completed</span>
329
+ </td>
330
+ <td class="px-4 py-2 text-sm">Video</td>
331
+ <td class="px-4 py-2 text-sm">
332
+ <div class="flex space-x-2">
333
+ <button class="text-indigo-600 hover:text-indigo-800">
334
+ <i class="fas fa-eye"></i>
335
+ </button>
336
+ <button class="text-gray-600 hover:text-gray-800">
337
+ <i class="fas fa-download"></i>
338
+ </button>
339
+ <button class="text-red-600 hover:text-red-800">
340
+ <i class="fas fa-trash"></i>
341
+ </button>
342
+ </div>
343
+ </td>
344
+ </tr>
345
+ </tbody>
346
+ </table>
347
  </div>
348
  </div>
349
  </div>
350
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
351
  </div>
352
+ </main>
353
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
354
  </div>
355
 
356
+ <!-- Schedule Interview Modal -->
357
+ <div id="scheduleModal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
358
+ <div class="bg-white rounded-lg p-6 w-full max-w-md mx-4">
359
+ <h3 class="text-lg font-semibold text-gray-800 mb-4">Schedule New Interview</h3>
360
+ <form class="space-y-4">
361
+ <div>
362
+ <label class="block text-sm font-medium text-gray-700">Project</label>
363
+ <select class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500">
364
+ <option>Select Project</option>
365
+ </select>
366
+ </div>
367
+ <div>
368
+ <label class="block text-sm font-medium text-gray-700">Participant</label>
369
+ <select class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500">
370
+ <option>Select Participant</option>
371
+ </select>
372
+ </div>
373
+ <div>
374
+ <label class="block text-sm font-medium text-gray-700">Date</label>
375
+ <input type="date" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500">
376
+ </div>
377
+ <div>
378
+ <label class="block text-sm font-medium text-gray-700">Time</label>
379
+ <input type="time" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500">
380
+ </div>
381
+ <div>
382
+ <label class="block text-sm font-medium text-gray-700">Interviewer</label>
383
+ <select class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500">
384
+ <option>Select Interviewer</option>
385
+ </select>
386
+ </div>
387
+ <div class="flex justify-end space-x-3 mt-6">
388
+ <button type="button" class="px-4 py-2 text-sm font-medium text-gray-700 bg-gray-100 rounded-md hover:bg-gray-200">
389
+ Cancel
390
+ </button>
391
+ <button type="submit" class="px-4 py-2 text-sm font-medium text-white bg-indigo-600 rounded-md hover:bg-indigo-700">
392
+ Schedule
393
+ </button>
394
+ </div>
395
+ </form>
 
 
 
 
 
 
 
 
 
 
396
  </div>
397
  </div>
398
 
 
399
  <script>
400
+ // Mobile menu functionality
401
+ const mobileMenuBtn = document.getElementById('mobileMenuBtn');
402
+ const mobileMenu = document.getElementById('mobileMenu');
403
+ let isMobileMenuOpen = false;
404
+
405
+ mobileMenuBtn.addEventListener('click', () => {
406
+ isMobileMenuOpen = !isMobileMenuOpen;
407
+ if (isMobileMenuOpen) {
408
+ mobileMenu.classList.remove('hidden');
409
+ mobileMenu.classList.add('show');
410
+ mobileMenuBtn.innerHTML = '<i class="fas fa-times text-xl"></i>';
411
+ } else {
412
+ mobileMenu.classList.add('hidden');
413
+ mobileMenu.classList.remove('show');
414
+ mobileMenuBtn.innerHTML = '<i class="fas fa-bars text-xl"></i>';
415
+ }
416
+ });
417
 
418
+ // Close mobile menu when clicking outside
419
+ document.addEventListener('click', (e) => {
420
+ if (!mobileMenuBtn.contains(e.target) && !mobileMenu.contains(e.target)) {
421
+ if (isMobileMenuOpen) {
422
+ isMobileMenuOpen = false;
423
+ mobileMenu.classList.add('hidden');
424
+ mobileMenu.classList.remove('show');
425
+ mobileMenuBtn.innerHTML = '<i class="fas fa-bars text-xl"></i>';
426
+ }
427
+ }
428
+ });
429
 
430
+ // Close mobile menu on window resize if screen becomes larger
431
+ window.addEventListener('resize', () => {
432
+ if (window.innerWidth >= 768 && isMobileMenuOpen) {
433
+ isMobileMenuOpen = false;
434
+ mobileMenu.classList.add('hidden');
435
+ mobileMenu.classList.remove('show');
436
+ mobileMenuBtn.innerHTML = '<i class="fas fa-bars text-xl"></i>';
437
+ }
438
+ });
439
+
440
+ // Initialize Quill editor
441
+ var quill = new Quill('#editor', {
442
+ theme: 'snow',
443
+ modules: {
444
+ toolbar: [
445
+ ['bold', 'italic', 'underline'],
446
+ [{ 'list': 'ordered'}, { 'list': 'bullet' }],
447
+ ['clean']
448
+ ]
449
+ }
450
+ });
451
+
452
+ // MediaRecorder setup
453
+ let mediaRecorder;
454
+ let recordedChunks = [];
455
+ let isRecording = false;
456
+ let timerInterval;
457
+ let startTime;
458
+
459
+ // Timer display
460
+ const timerDisplay = document.querySelector('.timer');
461
+ const recordingIndicator = document.querySelector('.recording-indicator');
462
+
463
+ function startTimer() {
464
+ startTime = Date.now();
465
+ timerInterval = setInterval(updateTimer, 1000);
466
+ }
467
+
468
+ function updateTimer() {
469
+ const elapsed = Date.now() - startTime;
470
+ const seconds = Math.floor(elapsed / 1000);
471
+ const minutes = Math.floor(seconds / 60);
472
+ const hours = Math.floor(minutes / 60);
473
+
474
+ timerDisplay.textContent = `${String(hours).padStart(2, '0')}:${String(minutes % 60).padStart(2, '0')}:${String(seconds % 60).padStart(2, '0')}`;
475
+ }
476
+
477
+ function stopTimer() {
478
+ clearInterval(timerInterval);
479
+ }
480
+
481
+ // Recording functions
482
+ async function startRecording(type) {
483
+ try {
484
+ const stream = await navigator.mediaDevices.getUserMedia({
485
+ audio: type === 'audio' || type === 'video',
486
+ video: type === 'video'
487
+ });
488
+
489
+ mediaRecorder = new MediaRecorder(stream);
490
+ recordedChunks = [];
491
+
492
+ mediaRecorder.ondataavailable = (event) => {
493
+ if (event.data.size > 0) {
494
+ recordedChunks.push(event.data);
495
+ }
496
+ };
497
+
498
+ mediaRecorder.onstop = () => {
499
+ const blob = new Blob(recordedChunks, {
500
+ type: type === 'video' ? 'video/webm' : 'audio/webm'
501
+ });
502
+ const url = URL.createObjectURL(blob);
503
+ const mediaContainer = document.querySelector('.media-container');
504
+
505
+ if (type === 'video') {
506
+ mediaContainer.innerHTML = `<video controls src="${url}" class="w-full h-full"></video>`;
507
+ } else {
508
+ mediaContainer.innerHTML = `<audio controls src="${url}" class="w-full"></audio>`;
509
+ }
510
+ };
511
+
512
+ mediaRecorder.start();
513
+ isRecording = true;
514
+ recordingIndicator.classList.remove('hidden');
515
+ startTimer();
516
+ } catch (err) {
517
+ console.error('Error accessing media devices:', err);
518
+ alert('Error accessing media devices. Please ensure you have granted the necessary permissions.');
519
  }
520
  }
521
 
522
+ function stopRecording() {
523
+ if (mediaRecorder && isRecording) {
524
+ mediaRecorder.stop();
525
+ isRecording = false;
526
+ recordingIndicator.classList.add('hidden');
527
+ stopTimer();
528
+
529
+ // Stop all tracks
530
+ mediaRecorder.stream.getTracks().forEach(track => track.stop());
531
  }
532
+ }
533
+
534
+ // Event listeners
535
+ document.querySelector('button:has(.fa-microphone)').addEventListener('click', () => startRecording('audio'));
536
+ document.querySelector('button:has(.fa-video)').addEventListener('click', () => startRecording('video'));
537
+ document.querySelector('button:has(.fa-stop)').addEventListener('click', stopRecording);
538
+
539
+ // Schedule interview modal
540
+ const scheduleModal = document.getElementById('scheduleModal');
541
+ const scheduleButtons = document.querySelectorAll('button:has(.fa-plus)');
542
+ const cancelButton = document.querySelector('#scheduleModal button:has-text("Cancel")');
543
+
544
+ scheduleButtons.forEach(button => {
545
+ button.addEventListener('click', () => {
546
+ scheduleModal.classList.remove('hidden');
547
+ });
548
  });
549
 
550
+ cancelButton.addEventListener('click', () => {
551
+ scheduleModal.classList.add('hidden');
 
 
 
552
  });
553
 
554
+ // Auto-save notes
555
+ setInterval(() => {
556
+ const content = quill.root.innerHTML;
557
+ localStorage.setItem('interview_notes', content);
558
+ // TODO: Implement remote save
559
+ }, 30000);
560
+
561
+ // Load saved notes
562
+ const savedNotes = localStorage.getItem('interview_notes');
563
+ if (savedNotes) {
564
+ quill.root.innerHTML = savedNotes;
565
+ }
566
+
567
+ // Before unload warning
568
+ window.addEventListener('beforeunload', (e) => {
569
+ if (isRecording) {
570
+ e.preventDefault();
571
+ e.returnValue = '';
572
+ }
573
  });
574
  </script>
575
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=dataquantals/quantals-collect" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
576
  </html>