forked from humancto/CollabCode
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.html
More file actions
Latest commit
774 lines (712 loc) · 37.8 KB
/
Copy pathapp.html
File metadata and controls
774 lines (712 loc) · 37.8 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
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
<!DOCTYPE html>
<htmllang="en">
<head>
<metacharset="utf-8">
<metahttp-equiv="X-UA-Compatible" content="IE=edge">
<metaname="author" content="Bernie Perez">
<metaname="viewport" content="width=device-width, initial-scale=1.0">
<title>OpenCollab - Collaborative Code Editor</title>
<linkrel="apple-touch-icon" sizes="57x57" href="images/favicon/apple-touch-icon-57x57.png">
<linkrel="apple-touch-icon" sizes="60x60" href="images/favicon/apple-touch-icon-60x60.png">
<linkrel="apple-touch-icon" sizes="72x72" href="images/favicon/apple-touch-icon-72x72.png">
<linkrel="apple-touch-icon" sizes="76x76" href="images/favicon/apple-touch-icon-76x76.png">
<linkrel="apple-touch-icon" sizes="114x114" href="images/favicon/apple-touch-icon-114x114.png">
<linkrel="apple-touch-icon" sizes="120x120" href="images/favicon/apple-touch-icon-120x120.png">
<linkrel="apple-touch-icon" sizes="144x144" href="images/favicon/apple-touch-icon-144x144.png">
<linkrel="apple-touch-icon" sizes="152x152" href="images/favicon/apple-touch-icon-152x152.png">
<linkrel="icon" type="image/png" sizes="196x196" href="images/favicon/favicon-196x196.png">
<linkrel="icon" type="image/png" sizes="128x128" href="images/favicon/favicon-128x128.png">
<linkrel="icon" type="image/png" sizes="96x96" href="images/favicon/favicon-96x96.png">
<linkrel="icon" type="image/png" sizes="32x32" href="images/favicon/favicon-32x32.png">
<linkrel="icon" type="image/png" sizes="16x16" href="images/favicon/favicon-16x16.png">
<!-- styling -->
<!-- Custom style -->
<linkrel="stylesheet" href="styles/main.css?v=16">
<!-- Firepad -->
<linkrel="stylesheet" href="https://cdn.firebase.com/libs/firepad/1.4.0/firepad.css" />
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- scripts -->
<!-- Firebase -->
<scriptsrc="https://www.gstatic.com/firebasejs/3.5.2/firebase.js"></script>
<scriptsrc="/api/firebase-config.js"></script>
<!-- ACE and its JavaScript mode and theme files - Updated to latest -->
<scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/ace/1.33.2/ace.js"></script>
<scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/ace/1.33.2/ext-language_tools.js"></script>
<!-- Firepad -->
<scriptsrc="https://cdn.firebase.com/libs/firepad/1.4.0/firepad.min.js"></script>
<!-- Code Executor -->
<scriptsrc="scripts/code-executor.js?v=4"></script>
<!-- Authentication -->
<scriptsrc="scripts/auth-api.js?v=4"></script>
<!-- Analytics (Optional - Replace with your analytics service) -->
<!--
<script>
// Add your analytics code here if needed
// Example: Google Analytics, PostHog, Plausible, etc.
</script>
-->
</head>
<body>
<!-- Landing Modal -->
<divid="landingModal" class="modal atom-landing">
<divclass="atom-background">
<divclass="atom-gradient"></div>
<!-- Animated floating code particles -->
<divclass="code-particles" id="codeParticles"></div>
</div>
<divclass="modal-content landing-content atom-card">
<divclass="atom-logo-section">
<divclass="atom-logo">
<imgsrc="images/favicon/apple-touch-icon-120x120.png" alt="Atom Tickets" width="80" height="80" style="display: block; margin: 0 auto;">
</div>
<h1class="atom-title">OpenCollab Platform</h1>
<pclass="atom-subtitle">Real-time Collaborative Coding</p>
</div>
<divclass="role-selection atom-roles">
<divclass="role-card atom-role-card" id="candidateCard">
<divclass="role-icon atom-icon">
<svgwidth="60" height="60" viewBox="0 0 24 24" fill="none">
<pathd="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" fill="#018ef5"/>
<pathd="M8.5 12.5L7 14l3 3 5-5-1.5-1.5L10.5 13.5z" fill="#4CAF50"/>
</svg>
</div>
<h3>Join as Candidate</h3>
<p>Enter your interview session</p>
<buttonclass="role-btn atom-btn atom-btn-secondary" onclick="document.getElementById('landingModal').style.display='none'; document.getElementById('candidateModal').style.display='flex'; return false;">
<span>I'm a Candidate</span>
<svgwidth="20" height="20" viewBox="0 0 24 24" fill="none">
<pathd="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z" fill="currentColor"/>
</svg>
</button>
</div>
<divclass="role-divider atom-divider">
<span>OR</span>
</div>
<divclass="role-card atom-role-card" id="adminCard">
<divclass="role-icon atom-icon">
<svgwidth="60" height="60" viewBox="0 0 24 24" fill="none">
<pathd="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" fill="#018ef5"/>
</svg>
</div>
<h3>Login as Interviewer</h3>
<p>Create & manage sessions</p>
<buttonclass="role-btn atom-btn atom-btn-primary" onclick="document.getElementById('landingModal').style.display='none'; document.getElementById('adminLoginModal').style.display='flex'; return false;">
<span>I'm an Interviewer</span>
<svgwidth="20" height="20" viewBox="0 0 24 24" fill="none">
<pathd="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z" fill="currentColor"/>
</svg>
</button>
</div>
</div>
<divclass="atom-features">
<divclass="feature-item">
<svgwidth="24" height="24" viewBox="0 0 24 24" fill="#018ef5">
<pathd="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/>
</svg>
<span>Real-time Collaboration</span>
</div>
<divclass="feature-item">
<svgwidth="24" height="24" viewBox="0 0 24 24" fill="#018ef5">
<pathd="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/>
</svg>
<span>16+ Languages</span>
</div>
<divclass="feature-item">
<svgwidth="24" height="24" viewBox="0 0 24 24" fill="#018ef5">
<pathd="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z"/>
</svg>
<span>Live Code Execution</span>
</div>
</div>
</div>
<footerclass="atom-footer">
<divclass="footer-content">
<divstyle="display: flex; align-items: center; justify-content: center; margin-bottom: 10px;">
<imgsrc="images/favicon/apple-touch-icon-60x60.png" alt="Atom Tickets" width="30" height="30" style="margin-right: 10px;">
<pstyle="margin: 0;">Made with ❤️ by <ahref="https://www.humancto.com" target="_blank" class="atom-link">HumanCTO</a></p>
</div>
<divclass="footer-links">
<ahref="https://github.com/humancto/CollabCode" target="_blank">GitHub</a>
<spanclass="footer-separator">•</span>
<ahref="https://github.com/humancto/CollabCode/issues" target="_blank">Issues</a>
<spanclass="footer-separator">•</span>
<ahref="https://github.com/humancto/CollabCode/wiki" target="_blank">Documentation</a>
</div>
</div>
</footer>
</div>
<!-- Candidate Join Modal -->
<divid="candidateModal" class="modal" style="display: none;">
<divclass="modal-content">
<buttonclass="back-btn" id="candidateBack">← Back</button>
<h2>Join Interview Session</h2>
<pclass="modal-subtitle">Enter your details to join the session</p>
<divclass="form-group">
<label>Your Name</label>
<inputtype="text" id="candidateName" placeholder="Enter your full name" maxlength="50">
</div>
<divclass="form-group">
<label>Session Code</label>
<inputtype="text" id="candidateSessionCode" placeholder="6-digit code (e.g., 123456)" maxlength="6">
<small>Your interviewer will provide this code</small>
</div>
<divstyle="margin: 20px 0; padding: 15px; background: rgba(66, 165, 245, 0.05); border: 1px solid rgba(66, 165, 245, 0.2); border-radius: 8px;">
<divstyle="display: flex; align-items: center; margin-bottom: 10px;">
<svgwidth="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#42a5f5" stroke-width="2" style="margin-right: 8px;">
<pathd="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>
</svg>
<strongstyle="color: #42a5f5; font-size: 14px;">Privacy & Monitoring Notice</strong>
</div>
<labelstyle="display: flex; align-items: flex-start; cursor: pointer; font-size: 13px; color: #555;">
<inputtype="checkbox" id="candidatePrivacyConsent" style="margin-right: 10px; margin-top: 2px; cursor: pointer;">
<span>
I understand that during this interview session, the following may be monitored for evaluation purposes:
<ulstyle="margin: 8px 0 8px 20px; padding: 0; font-size: 12px; color: #666; line-height: 1.5;">
<li>Tab switching and window focus events</li>
<li>Activity patterns and idle time</li>
<li>General interaction metrics</li>
</ul>
<spanstyle="font-size: 11px; color: #888;">
This data is used solely for interview assessment and is handled in accordance with our privacy policy.
</span>
<br>
<ahref="#" style="color: #42a5f5; text-decoration: none; margin-top: 8px; display: inline-block; font-size: 12px;">
📄 View Privacy Policy →
</a>
</span>
</label>
</div>
<buttonid="candidateJoinBtn" class="primary-btn" disabled>Join Session</button>
</div>
</div>
<!-- Admin Login Modal -->
<divid="adminLoginModal" class="modal" style="display: none;">
<divclass="modal-content">
<buttonclass="back-btn" id="adminLoginBack">← Back</button>
<h2>Interviewer Login</h2>
<pclass="modal-subtitle">Login to create and manage sessions</p>
<divclass="form-group">
<label>Username or Email</label>
<inputtype="text" id="adminEmail" placeholder="Enter your username or email"
autocomplete="username" autocapitalize="none" spellcheck="false">
</div>
<divclass="form-group">
<label>Password</label>
<divclass="password-input-row">
<inputtype="password" id="adminPassword" placeholder="Enter your password"
autocomplete="current-password">
<buttontype="button" id="toggleAdminPassword" class="password-toggle"
aria-label="Show password" aria-pressed="false">Show</button>
</div>
</div>
<buttonid="adminLoginBtn" class="primary-btn">Login</button>
<divid="loginError" class="error-message" style="display: none;"></div>
</div>
</div>
<!-- Admin Dashboard Modal - Professional Redesign -->
<divid="adminDashboardModal" class="dashboard-page" style="display: none;">
<divclass="modal-content dashboard-modal-content">
<!-- Header with gradient background -->
<divclass="dashboard-header-modern">
<divclass="dashboard-header-content">
<divstyle="display: flex; align-items: center;">
<imgsrc="/images/favicon/apple-touch-icon-76x76.png" alt="Atom Tickets" width="48" height="48" style="margin-right: 15px;">
<div>
<h2class="dashboard-title">Interview Control Center</h2>
<pclass="dashboard-subtitle">Manage your technical interview sessions</p>
</div>
</div>
<divstyle="display: flex; gap: 10px; align-items: center;">
<buttonid="adminLogoutBtn" class="logout-btn-modern">
<svgwidth="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<pathd="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path>
<polylinepoints="16 17 21 12 16 7"></polyline>
<linex1="21" y1="12" x2="9" y2="12"></line>
</svg>
<span>Logout</span>
</button>
</div>
</div>
</div>
<divclass="dashboard-body">
<!-- Interviewer Profile Card -->
<divclass="interviewer-card">
<divclass="card-icon">
<svgwidth="24" height="24" viewBox="0 0 24 24" fill="currentColor">
<pathd="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
</svg>
</div>
<divclass="card-content">
<labelclass="field-label">Interviewer Name</label>
<inputtype="text" id="interviewerName" class="modern-input" placeholder="Enter your name (e.g., Tom Smith)">
<spanclass="field-hint">This helps track who conducted each interview</span>
</div>
</div>
<!-- Quick Actions Section -->
<divclass="quick-actions-section">
<h3class="section-title">Quick Actions</h3>
<!-- Create New Session Card -->
<divclass="action-card primary-action">
<divclass="action-icon">
<svgwidth="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rectx="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
<linex1="12" y1="8" x2="12" y2="16"></line>
<linex1="8" y1="12" x2="16" y2="12"></line>
</svg>
</div>
<divclass="action-content">
<h4>Start New Interview</h4>
<p>Create a fresh session for your candidate</p>
<buttonid="createSessionBtn" class="action-btn-primary">
<span>Create Session</span>
<svgwidth="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<linex1="5" y1="12" x2="19" y2="12"></line>
<polylinepoints="12 5 19 12 12 19"></polyline>
</svg>
</button>
</div>
</div>
<!-- Join Session Card -->
<divclass="action-card secondary-action">
<divclass="action-icon">
<svgwidth="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<pathd="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path>
<polylinepoints="10 17 15 12 10 7"></polyline>
<linex1="15" y1="12" x2="3" y2="12"></line>
</svg>
</div>
<divclass="action-content">
<h4>Join Existing Session</h4>
<p>Enter a session code to join</p>
<divclass="join-session-group">
<inputtype="text" id="adminSessionCode" class="session-code-input" placeholder="000000" maxlength="6">
<buttonid="adminJoinBtn" class="action-btn-secondary">Join</button>
</div>
</div>
</div>
</div>
<!-- Active Session Display -->
<divid="activeSession" class="active-session-modern" style="display: none;">
<divclass="session-status-badge">LIVE</div>
<h4>Active Session</h4>
<divclass="session-code-display">
<spanid="activeSessionCode" class="code-text"></span>
<buttonid="copyCodeBtn" class="copy-btn-modern">
<svgwidth="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rectx="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
<pathd="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
</svg>
<span>Copy</span>
</button>
<buttonid="resumeInterviewBtn" class="action-btn-secondary">Resume Interview</button>
</div>
</div>
<!-- Management Tools -->
<divclass="management-tools">
<buttonid="viewAllSessionsBtn" class="tool-btn">
<svgwidth="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rectx="3" y="3" width="7" height="7"></rect>
<rectx="14" y="3" width="7" height="7"></rect>
<rectx="14" y="14" width="7" height="7"></rect>
<rectx="3" y="14" width="7" height="7"></rect>
</svg>
<span>Session Manager</span>
<spanclass="tool-badge">View All</span>
</button>
<buttonid="manageAdminsBtn" class="tool-btn">
<span>Manage Admins</span>
<spanclass="tool-badge">Access</span>
</button>
</div>
</div>
</div>
</div>
<divid="manageAdminsModal" class="modal" style="display: none; z-index: 1200;">
<divclass="modal-content admin-manager-content">
<divclass="modal-header">
<h2>Manage Admins</h2>
<buttonid="closeManageAdminsBtn" class="close-modal-btn">×</button>
</div>
<pclass="admin-manager-help">Add another interviewer who can create and manage sessions.</p>
<formid="addAdminForm" class="admin-add-form">
<inputid="newAdminEmail" type="email" class="modern-input" placeholder="interviewer@example.com" required>
<inputid="newAdminPassword" type="password" class="modern-input" placeholder="Password (8+ characters)" minlength="8" required>
<buttontype="submit" class="action-btn-primary">Add Admin</button>
</form>
<divid="adminManagerMessage" class="admin-manager-message"></div>
<divid="adminList" class="admin-list">Loading admins…</div>
</div>
</div>
<!-- Slack Configuration Modal -->
<divid="slackConfigModal" class="modal" style="display: none;">
<divclass="modal-content" style="max-width: 600px;">
<divclass="modal-header">
<h2>Share to Slack</h2>
<buttonid="closeSlackConfigBtn" class="close-modal-btn">×</button>
</div>
<divclass="slack-config-content">
<divclass="slack-info-section" style="padding: 10px; background: #2a2a2a; border-radius: 4px; margin-bottom: 20px;">
<pstyle="color: #888; margin: 0;">
<strong>📌 Note:</strong> Slack integration is configured server-side for security.
Contact your administrator if notifications are not working.
</p>
</div>
<divclass="slack-preview-section" style="margin-top: 20px;">
<h3>Preview:</h3>
<divid="slackMessagePreview" style="background: #1a1a1a; padding: 15px; border-radius: 8px; border-left: 4px solid #4caf50;">
<divstyle="font-weight: bold; margin-bottom: 10px;">Interview Feedback</div>
<divid="slackPreviewContent" style="color: #ccc;">
<!-- Preview content will be inserted here -->
</div>
</div>
</div>
<divclass="slack-actions" style="margin-top: 20px; display: flex; gap: 10px; justify-content: flex-end;">
<buttonid="cancelSlackShare" style="padding: 8px 16px; background: #666; color: white; border: none; border-radius: 4px; cursor: pointer;">Cancel</button>
<buttonid="sendToSlack" style="padding: 8px 16px; background: #4caf50; color: white; border: none; border-radius: 4px; cursor: pointer;">Send to Slack</button>
</div>
</div>
</div>
</div>
<!-- Session Details Modal -->
<divid="sessionDetailsModal" class="modal" style="display: none;">
<divclass="modal-content" style="max-width: 800px;">
<divclass="modal-header">
<h2>Session Details</h2>
<divstyle="display: flex; gap: 10px; align-items: center;">
<buttonid="shareToSlackBtn" class="slack-share-btn" title="Share to Slack">
<svgwidth="20" height="20" viewBox="0 0 24 24" fill="currentColor">
<pathd="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"/>
</svg>
</button>
<buttonid="closeSessionDetailsBtn" class="close-modal-btn">×</button>
</div>
</div>
<divid="sessionDetailsContent">
<divclass="session-detail-header">
<h3>Session: <spanid="detail-session-code"></span></h3>
<divclass="detail-recommendation" id="detail-recommendation"></div>
</div>
<divclass="session-detail-tabs">
<buttonclass="detail-tab active" data-tab="notes">📝 Notes</button>
<buttonclass="detail-tab" data-tab="info">ℹ️ Session Info</button>
<buttonclass="detail-tab" data-tab="activity">📊 Candidate Behavior</button>
</div>
<divclass="tab-content" id="notes-tab" style="display: block;">
<divclass="notes-display">
<divclass="notes-display-rating">
<strong>Rating:</strong><spanid="display-rating"></span>
</div>
<divclass="notes-display-tags">
<strong>Tags:</strong><spanid="display-tags"></span>
</div>
<divclass="notes-display-content">
<strong>Notes:</strong>
<divid="display-notes-content"></div>
</div>
<divclass="notes-display-meta">
<small>Last updated: <spanid="display-updated"></span> by <spanid="display-author"></span></small>
</div>
</div>
</div>
<divclass="tab-content" id="info-tab" style="display: none;">
<divclass="session-info-display" style="padding: 20px;">
<h4>📅 Session Details</h4>
<divstyle="display: grid; grid-template-columns: 150px 1fr; gap: 15px; margin-top: 15px;">
<strong>Session Code:</strong><spanid="detail-session-code" style="font-family: monospace; color: #42a5f5;"></span>
<strong>Status:</strong><spanid="display-status"></span>
<strong>Started:</strong><spanid="display-created"></span>
<strong>Duration:</strong><spanid="display-duration"></span>
<strong>Participants:</strong><spanid="display-participants"></span>
</div>
</div>
</div>
<divclass="tab-content" id="activity-tab" style="display: none;">
<divclass="activity-info-display" style="padding: 20px;">
<h4>📊 Candidate Behavior Monitoring</h4>
<divstyle="background: rgba(255, 193, 7, 0.1); padding: 10px; border-radius: 5px; margin-bottom: 15px;">
<smallstyle="color: #ffc107;">⚠️ This data is collected only when candidates consent to activity monitoring</small>
</div>
<divid="activity-tracking-data">
<pclass="loading-message">Loading activity data...</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Sessions Management Modal -->
<divid="sessionsModal" class="modal" style="display: none;">
<divclass="modal-content sessions-modal-content">
<divclass="modal-header">
<h2>Sessions Management</h2>
<buttonid="closeSessionsModalBtn" class="close-modal-btn">×</button>
</div>
<divclass="sessions-stats">
<divclass="stat-item">
<spanclass="stat-label">Active Sessions:</span>
<spanid="activeSessionsCount" class="stat-value">0</span>
</div>
<divclass="stat-item">
<spanclass="stat-label">Total Users:</span>
<spanid="totalUsersCount" class="stat-value">0</span>
</div>
</div>
<divclass="session-tabs">
<buttonid="activeTabBtn" class="tab-btn active">Active/In Progress</button>
<buttonid="archivedTabBtn" class="tab-btn">Ended Sessions</button>
</div>
<divclass="bulk-actions" id="bulkActionsBar">
<buttonid="selectAllBtn" class="select-all-btn">Select All</button>
<buttonid="endSelectedBtn" class="end-selected-btn" disabled>End Selected</button>
<buttonid="endAllSessionsBtn" class="end-all-btn">End All Sessions</button>
</div>
<divid="sessionsTableContainer">
<tableid="sessionsTable" class="sessions-table">
<thead>
<tr>
<thstyle="width: 40px;">
<inputtype="checkbox" id="selectAllCheckbox" title="Select All">
</th>
<th>Session Code</th>
<th>Status</th>
<th>Candidate</th>
<th>All Participants</th>
<th>Created</th>
<th>Actions</th>
</tr>
</thead>
<tbodyid="sessionsTableBody">
<!-- Sessions will be populated here -->
</tbody>
</table>
<divid="noSessionsMessage" class="no-sessions-message" style="display: none;">
<p>No active sessions at the moment</p>
</div>
</div>
</div>
</div>
<!-- Main Editor Interface -->
<divid="main-container" style="display: none;">
<!-- Top Bar -->
<divid="top-bar">
<divclass="left-controls">
<selectid="language-selector" title="Select Language">
<optgrouplabel="Popular">
<optionvalue="javascript">🟨 JavaScript</option>
<optionvalue="python">🐍 Python</option>
<optionvalue="java">☕ Java</option>
<optionvalue="typescript">🔵 TypeScript</option>
<optionvalue="c_cpp">🔷 C/C++</option>
</optgroup>
<optgrouplabel="Systems">
<optionvalue="go">🐹 Go</option>
<optionvalue="rust">🦀 Rust</option>
<optionvalue="csharp">🟦 C#</option>
<optionvalue="swift">🍎 Swift</option>
<optionvalue="kotlin">🟪 Kotlin</option>
</optgroup>
<optgrouplabel="Scripting">
<optionvalue="ruby">💎 Ruby</option>
<optionvalue="php">🐘 PHP</option>
<optionvalue="perl">🐪 Perl</option>
<optionvalue="lua">🌙 Lua</option>
</optgroup>
<optgrouplabel="Functional">
<optionvalue="scala">🔴 Scala</option>
<optionvalue="haskell">🎓 Haskell</option>
<optionvalue="elixir">💧 Elixir</option>
</optgroup>
<optgrouplabel="Data & Stats">
<optionvalue="r">📊 R</option>
<optionvalue="sql">🗄️ SQL</option>
</optgroup>
<optgrouplabel="Mobile">
<optionvalue="dart">🎯 Dart</option>
<optionvalue="swift">🍎 Swift</option>
<optionvalue="kotlin">🟪 Kotlin</option>
</optgroup>
<optgrouplabel="Web">
<optionvalue="html">🌐 HTML</option>
<optionvalue="css">🎨 CSS</option>
<optionvalue="javascript">🟨 JavaScript</option>
<optionvalue="typescript">🔵 TypeScript</option>
</optgroup>
<optgrouplabel="Config">
<optionvalue="json">📋 JSON</option>
<optionvalue="yaml">📄 YAML</option>
<optionvalue="xml">📰 XML</option>
<optionvalue="markdown">📝 Markdown</option>
</optgroup>
</select>
<selectid="template-selector" title="Load Interview Question" style="display: none;">
<optionvalue="">Load Questions</option>
</select>
<inputid="question-set-file-input" type="file" accept=".json,application/json" hidden>
<selectid="theme-selector">
<optionvalue="monokai">Monokai</option>
<optionvalue="github">GitHub</option>
<optionvalue="tomorrow">Tomorrow</option>
<optionvalue="twilight">Twilight</option>
<optionvalue="solarized_dark">Solarized Dark</option>
<optionvalue="solarized_light">Solarized Light</option>
<optionvalue="textmate">TextMate</option>
<optionvalue="terminal">Terminal</option>
</select>
<selectid="fontSize-selector">
<optionvalue="12">12px</option>
<optionvalue="14" selected>14px</option>
<optionvalue="16">16px</option>
<optionvalue="18">18px</option>
<optionvalue="20">20px</option>
</select>
</div>
<divclass="center-info">
<spanid="session-info"></span>
<divclass="connected-users-control">
<buttonid="user-count" class="user-count" type="button" aria-haspopup="true" aria-expanded="false"></button>
<divid="users-list" class="connected-users-menu" hidden></div>
</div>
</div>
<divclass="right-controls">
<buttonid="notes-toggle-btn" class="notes-button" style="display: none;">📝 Notes</button>
<buttonid="answer-key-btn" type="button" class="notes-button" style="display: none;" disabled>Answer Key</button>
<buttonid="run-btn" class="run-button" hidden>▶ Run</button>
<detailsid="admin-menu" class="admin-menu" style="display: none;">
<summaryaria-label="Open interview menu">
<span>Menu</span>
<imgsrc="/images/favicon/apple-touch-icon-57x57.png" alt="" width="28" height="28">
</summary>
<divclass="admin-menu-panel">
<buttonid="dashboard-btn" type="button">Dashboard</button>
<buttonid="share-btn" type="button">Share session</button>
<buttonid="end-session-btn" type="button">End Interview</button>
</div>
</details>
</div>
</div>
<!-- Editor Container with Split View -->
<divid="editor-wrapper">
<divid="split-container">
<divid="firepad-container"></div>
<!-- Interviewer Notes Panel -->
<divid="notes-panel" style="display: none;">
<divid="notes-header">
<span>📝 Interview Notes</span>
<spanid="notes-save-status" style="font-size: 12px; color: #888; margin-left: 10px;"></span>
<spanid="behavior-alert-badge" class="alert-badge" style="display: none;">0</span>
<buttonid="close-notes">×</button>
</div>
<!-- Activity Monitoring Dashboard -->
<divid="activity-dashboard" style="display: none; background: rgba(66,165,245,0.05); border: 1px solid rgba(66,165,245,0.2); border-radius: 4px; padding: 12px; margin: 10px;">
<!-- Activity metrics will be inserted here -->
</div>
<divid="notes-content">
<divclass="notes-rating-section">
<label>Quick Rating:</label>
<divclass="rating-stars" id="rating-stars">
<spandata-rating="1">☆</span>
<spandata-rating="2">☆</span>
<spandata-rating="3">☆</span>
<spandata-rating="4">☆</span>
<spandata-rating="5">☆</span>
</div>
</div>
<divclass="notes-tags-section">
<label>Quick Tags:</label>
<divclass="quick-tags">
<buttonclass="tag-btn" data-tag="strong-fundamentals">Strong Fundamentals</button>
<buttonclass="tag-btn" data-tag="good-communication">Good Communication</button>
<buttonclass="tag-btn" data-tag="needs-practice">Needs Practice</button>
<buttonclass="tag-btn" data-tag="problem-solver">Problem Solver</button>
<buttonclass="tag-btn" data-tag="asks-good-questions">Asks Good Questions</button>
</div>
</div>
<divclass="notes-text-section">
<label>Notes:</label>
<textareaid="interview-notes-text" placeholder="Add your observations about the candidate..."></textarea>
</div>
<divclass="notes-recommendation-section">
<label>Recommendation:</label>
<selectid="notes-recommendation">
<optionvalue="">Select...</option>
<optionvalue="STRONG_HIRE">Strong Hire</option>
<optionvalue="HIRE">Hire</option>
<optionvalue="PROCEED_TO_NEXT_ROUND">Proceed to Next Round</option>
<optionvalue="MAYBE">Maybe</option>
<optionvalue="NO_HIRE">No Hire</option>
</select>
</div>
<divclass="notes-actions">
<buttonid="save-notes-btn" class="save-notes-btn">Save Notes</button>
</div>
</div>
</div>
<!-- Interviewer-only Answer Key Panel -->
<asideid="answer-key-panel" style="display: none;">
<divid="answer-key-header">
<spanid="answer-key-title">Answer Key</span>
<buttonid="close-answer-key" type="button" aria-label="Close answer key">×</button>
</div>
<divid="answer-key-content" class="answer-key-content"></div>
</aside>
<divid="output-panel" style="display: none;">
<divid="output-header">
<span>Output</span>
<buttonid="clear-output">Clear</button>
<buttonid="close-output">×</button>
</div>
<divid="output-content">
<preid="output-text"></pre>
</div>
<divid="input-section" style="display: none;">
<label>Input (stdin):</label>
<textareaid="stdin-input" placeholder="Enter input for your program..."></textarea>
</div>
</div>
</div>
</div>
<!-- Bottom Status Bar -->
<divid="status-bar">
<spanid="cursor-position">Line 1, Column 1</span>
<spanid="connection-status" class="connected">Connected</span>
</div>
</div>
<!-- Custom Alert Modal -->
<divid="customAlertModal" class="custom-modal" style="display: none;">
<divclass="custom-modal-content">
<divclass="custom-modal-icon"></div>
<h3class="custom-modal-title"></h3>
<pclass="custom-modal-message"></p>
<divclass="custom-modal-buttons">
<buttonclass="custom-modal-btn primary" onclick="closeCustomAlert()">OK</button>
</div>
</div>
</div>
<!-- Custom Confirm Modal -->
<divid="customConfirmModal" class="custom-modal" style="display: none;">
<divclass="custom-modal-content">
<divclass="custom-modal-icon"></div>
<h3class="custom-modal-title"></h3>
<pclass="custom-modal-message"></p>
<divclass="custom-modal-buttons">
<buttonclass="custom-modal-btn cancel" onclick="handleConfirmResponse(false)">Cancel</button>
<buttonclass="custom-modal-btn confirm" onclick="handleConfirmResponse(true)">Confirm</button>
</div>
</div>
</div>
<!-- Simple Templates (must load before firepad.js) -->
<scriptsrc="scripts/simple-templates.js?v=2"></script>
<scriptsrc="scripts/custom-dialogs.js?v=2"></script>
<scriptsrc="scripts/firepad.js?v=24"></script>
<scriptsrc="scripts/interview-notes.js?v=4"></script>
<scriptsrc="scripts/slack-integration.js?v=4"></script>
<scriptsrc="scripts/posthog-tracking.js?v=2"></script>
<scriptsrc="scripts/session-tracking.js?v=1"></script>
<scriptsrc="scripts/activity-monitor.js?v=7"></script>
<scriptsrc="scripts/app.js?v=11"></script>
</body>
</html>