Repository navigation
Expand file tree
/
Copy pathlayout.js
More file actions
875 lines (806 loc) · 51.6 KB
/
Copy pathlayout.js
File metadata and controls
875 lines (806 loc) · 51.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
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
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
/**
* EduConnect - Reusable Layout & Global Components Module
* Web Components (Custom Elements) for zero-redundancy Header, Footer, Conversion Bar & Modals.
* Fully compatible with GitHub Pages, local file:// execution, and modern responsive design.
*/
(function () {
// Helper: auto-detect current active tab from window.location.pathname
function detectActiveTab() {
const path = (window.location.pathname || '').toLowerCase();
if (path.includes('tim-gia-su')) return 'tim-gia-su';
if (path.includes('kiem-tra-dau-vao')) return 'kiem-tra-dau-vao';
if (path.includes('ke-hoach-hoc-tap')) return 'ke-hoach-hoc-tap';
if (path.includes('bao-cao-tien-do')) return 'bao-cao-tien-do';
return 'trang-chu';
}
// 1. Template: Header & System Ticker
function getHeaderHTML(activeTab) {
const active = activeTab || detectActiveTab();
return `
<!-- Sub-header Live System Ticker -->
<div class="system-ticker">
<div class="container system-ticker-inner">
<div class="ticker-item">
<span class="w-2 h-2 rounded-full bg-[#10b981] pulsing-dot"></span>
<span>Hệ thống: <strong>1,420 gia sư trực tuyến</strong> sẵn sàng nhận lớp</span>
</div>
<div class="ticker-item" style="gap: 16px;">
<span><span class="material-symbols-outlined" style="font-size: 15px; color: var(--success);">verified</span> 100% Phỏng vấn sư phạm</span>
<span><span class="material-symbols-outlined" style="font-size: 15px; color: var(--accent);">lock_reset</span> Đổi gia sư miễn phí</span>
<span><span class="material-symbols-outlined" style="font-size: 15px; color: var(--primary);">stars</span> Học thử 01 buổi 0đ</span>
</div>
</div>
</div>
<!-- Main Header & Navigation -->
<header class="site-header">
<div class="container header-inner">
<!-- Brand Logo -->
<a href="index.html" class="brand-logo">
<div class="brand-icon">
<span class="material-symbols-outlined" style="font-size: 24px;">school</span>
</div>
<div class="brand-text">
<div class="brand-title">Edu<span>Connect</span></div>
<div class="brand-tagline">EdTech AI Platform</div>
</div>
</a>
<!-- Navigation Bar Linking Sub-pages & Tabs (Centered) -->
<nav class="nav-tabs">
<a href="index.html" class="nav-tab-btn ${active === 'trang-chu' || active === 'index' ? 'active' : ''}" data-tab-target="trang-chu" title="Trang chủ EduConnect">
<span class="material-symbols-outlined" style="font-size: 18px;">home</span>
<span>Trang chủ</span>
</a>
<a href="tim-gia-su.html" class="nav-tab-btn ${active === 'tim-gia-su' ? 'active' : ''}" data-tab-target="tim-gia-su" title="Tìm gia sư Top 1% & Học thử 0đ">
<span class="material-symbols-outlined" style="font-size: 18px;">person_search</span>
<span>Tìm gia sư</span>
<span class="badge-pill">1,420+</span>
</a>
<a href="kiem-tra-dau-vao.html" class="nav-tab-btn ${active === 'kiem-tra-dau-vao' ? 'active' : ''}" data-tab-target="kiem-tra-dau-vao" title="Khảo thí & Chẩn đoán năng lực AI">
<span class="material-symbols-outlined" style="font-size: 18px;">assignment_turned_in</span>
<span>Khảo thí</span>
</a>
<a href="ke-hoach-hoc-tap.html" class="nav-tab-btn ${active === 'ke-hoach-hoc-tap' ? 'active' : ''}" data-tab-target="ke-hoach-hoc-tap" title="Lộ trình & Kế hoạch học tập cá nhân hóa">
<span class="material-symbols-outlined" style="font-size: 18px;">event_note</span>
<span>Kế hoạch học tập</span>
</a>
<a href="bao-cao-tien-do.html" class="nav-tab-btn ${active === 'bao-cao-tien-do' ? 'active' : ''}" data-tab-target="bao-cao-tien-do" title="Báo cáo tiến độ & Sổ liên lạc điện tử">
<span class="material-symbols-outlined" style="font-size: 18px;">monitoring</span>
<span>Báo cáo tiến độ</span>
</a>
</nav>
<!-- Header Action Buttons -->
<div class="header-actions">
<button class="btn-primary" >
<span class="material-symbols-outlined" style="font-size: 18px;">event_available</span>
<span>Học thử 0đ</span>
</button>
<button class="btn-icon" có thông báo mới: Lịch học 19:30 tối nay với ThS. Trần Văn C môn Toán')">
<span class="material-symbols-outlined">notifications</span>
<span class="notification-dot"></span>
</button>
<!-- User Account / Auth Section (Managed dynamically by AuthModule) -->
<div id="headerUserSection" style="position: relative;">
<div class="user-profile-badge" id="userMenuDropdownBtn" >
<img class="user-avatar-sm" src="https://lh3.googleusercontent.com/aida-public/AB6AXuCVfXc-qtOMR78JW6SUVjONOxFWy1Wjq6-yR5PZpjRz6PtUsNM5r1SHLidzMmLudlwMB_NRVIVKx0BTWOCupLf74Y6z0x0dWeQ9sEVQl7GF53-7y6MVDeA8th_KUnEvIP6e-KxIr6qWL73DzyOD4h1sUgcMyt81rhx8QGbIQwZ5fLHgRJlY6Z9FliVI4t4U7hRUWKTa9RaX3gJMOMKm7R01SeVQNw2VKINSfvE7wTAMDdzOx61k7o19" alt="User Profile" />
<div class="user-meta-text">
<span class="user-name">Văn A</span>
<span class="user-sub">Học sinh • Lớp 11</span>
</div>
<span class="material-symbols-outlined" style="font-size: 16px; color: var(--text-sub);">arrow_drop_down</span>
</div>
</div>
<button class="mobile-menu-btn" id="mobileMenuBtn">
<span class="material-symbols-outlined">menu</span>
</button>
</div>
</div>
</header>
`;
}
// 2. Template: Full 4-Column Footer
function getFooterHTML() {
return `
<footer class="site-footer">
<div class="container footer-grid">
<div class="footer-col">
<div class="brand-logo" style="margin-bottom: 14px;">
<div class="brand-icon">
<span class="material-symbols-outlined" style="font-size: 24px;">school</span>
</div>
<div class="brand-text">
<div class="brand-title">Edu<span>Connect</span></div>
<div class="brand-tagline">EdTech AI Platform</div>
</div>
</div>
<p style="font-size: 13px; color: var(--text-muted); line-height: 1.6; max-width: 320px;">
Nền tảng gia sư trực tuyến 1 kèm 1 hàng đầu kết hợp khảo thí chẩn đoán năng lực thích ứng bằng AI, cá nhân hóa lộ trình và minh bạch tiến độ học tập.
</p>
</div>
<div class="footer-col">
<h4>Trang & Tính năng</h4>
<ul class="footer-links">
<li><a href="tim-gia-su.html">Mạng lưới gia sư</a></li>
<li><a href="kiem-tra-dau-vao.html">Khảo thí chuẩn hóa AI</a></li>
<li><a href="ke-hoach-hoc-tap.html">Kế hoạch học tập 1:1</a></li>
<li><a href="bao-cao-tien-do.html">Báo cáo tiến độ & Sổ liên lạc</a></li>
</ul>
</div>
<div class="footer-col">
<h4>Môn học bồi dưỡng</h4>
<ul class="footer-links">
<li><a href="tim-gia-su.html">Toán học 10-12 & Luyện thi ĐGNL</a></li>
<li><a href="tim-gia-su.html">Vật lý 11-12 & Thí nghiệm 3D</a></li>
<li><a href="tim-gia-su.html">Hóa học bồi dưỡng mất gốc</a></li>
<li><a href="tim-gia-su.html">Tiếng Anh & IELTS Academic</a></li>
</ul>
</div>
<div class="footer-col">
<h4>Hỗ trợ phụ huynh</h4>
<ul class="footer-links">
<li><span class="material-symbols-outlined" style="font-size: 16px; color: var(--accent);">call</span> 1900 8899</li>
<li><span class="material-symbols-outlined" style="font-size: 16px; color: var(--primary);">mail</span> hotro@educonnect.vn</li>
<li><span class="material-symbols-outlined" style="font-size: 16px; color: var(--success);">verified</span> Đổi gia sư miễn phí</li>
</ul>
</div>
</div>
<div class="container footer-bottom">
<div>© 2025 EduConnect EdTech Platform. Sẵn sàng deploy trực tiếp lên GitHub Pages.</div>
<div style="display: flex; gap: 16px;">
<a href="tim-gia-su.html">Tìm gia sư</a>
<a href="kiem-tra-dau-vao.html">Khảo thí AI</a>
<a href="ke-hoach-hoc-tap.html">Lộ trình học</a>
<a href="bao-cao-tien-do.html">Báo cáo tiến độ</a>
</div>
</div>
</footer>
`;
}
// 3. Template: Sticky Bottom Floating Conversion Bar
function getConversionBarHTML(activeTab) {
const page = activeTab || detectActiveTab();
let tag = 'Ưu đãi tuyển sinh';
let text = 'Tặng <strong>01 buổi học thử 1 kèm 1 (0đ)</strong> cùng Thủ khoa Bách Khoa, Sư Phạm';
let btn = 'Đăng Ký Học Thử 0đ';
if (page === 'tim-gia-su') {
text = 'Chưa chọn được gia sư? <strong>Tặng 01 buổi học thử 0đ</strong> để AI tự động ghép lớp';
btn = 'Ghép Gia Sư 0đ';
} else if (page === 'kiem-tra-dau-vao') {
tag = 'Tư vấn trực tiếp';
text = 'Muốn được <strong>Thủ khoa chữa chi tiết</strong> bài khảo thí này?';
btn = 'Đặt Lịch Chữa Đề 0đ';
} else if (page === 'ke-hoach-hoc-tap') {
tag = 'Cá nhân hóa 1:1';
text = 'Muốn lập <strong>Lộ trình học tập riêng</strong> theo đúng lực học hiện tại?';
btn = 'Tư Vấn Lộ Trình 0đ';
} else if (page === 'bao-cao-tien-do') {
tag = 'Cam kết tiến bộ';
text = 'Muốn con tăng từ <strong>+2 đến +2.5 điểm</strong> trong 6-8 tuần?';
btn = 'Đăng Ký Học Thử 0đ';
}
return `
<aside class="floating-conversion-bar" aria-label="Đăng ký học thử 0đ" id="stickyConversionBar">
<span class="floating-pill-tag">
<span class="w-2 h-2 rounded-full bg-[#10b981] pulsing-dot"></span>
${tag}
</span>
<span class="floating-pill-text">
${text}
</span>
<button class="floating-pill-btn" >
<span>${btn}</span>
<span class="material-symbols-outlined" style="font-size: 16px;">bolt</span>
</button>
</aside>
`;
}
// 4. Template: All Global Modals & Toast Notification Container
function getModalsHTML() {
return `
<!-- Global Toast Container -->
<div class="toast-container" id="toastContainer"></div>
<!-- 1. Booking Modal -->
<div class="modal-overlay" id="bookingModal">
<div class="modal-content">
<div class="modal-header">
<div style="display: flex; align-items: center; gap: 10px;">
<span class="material-symbols-outlined" style="color: var(--accent); font-size: 24px;">event_available</span>
<h3 class="modal-title">Đăng Ký Học Thử Miễn Phí 0đ</h3>
</div>
<button class="modal-close-btn material-symbols-outlined" >
</div>
<div class="modal-body">
<!-- Selected Tutor Info Box -->
<div style="display: flex; align-items: center; gap: 14px; background: var(--primary-soft); padding: 14px 18px; border-radius: var(--radius-md); border: 1px solid var(--border); margin-bottom: 20px;">
<img id="bookingTutorAvatar" src="https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=200&h=200&fit=crop" class="tutor-avatar" style="width: 52px; height: 52px;" alt="Tutor" />
<div>
<div style="font-weight: 800; font-size: 15px; color: var(--text-main);" id="bookingTutorName">ThS. Trần Văn C</div>
<div style="font-size: 12px; color: var(--primary); font-weight: 600;" id="bookingTutorTitle">Môn Toán 10-12 | Luyện thi ĐGNL & THPT</div>
</div>
</div>
<!-- Booking Form Inputs -->
<div style="display: flex; flex-direction: column; gap: 14px;">
<div class="form-group">
<label class="form-label">Họ và tên học sinh / phụ huynh</label>
<input type="text" class="form-input" id="bookingStudentName" placeholder="Ví dụ: Nguyễn Văn A" value="Nguyễn Văn A" />
</div>
<div class="form-group">
<label class="form-label">Số điện thoại liên hệ (Zalo) *</label>
<input type="tel" class="form-input" id="bookingStudentPhone" placeholder="Ví dụ: 0912 345 678" value="0912 888 999" />
</div>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 12px;">
<div class="form-group">
<label class="form-label">Khối lớp</label>
<select class="form-select" id="bookingGrade">
<option value="11">Lớp 11 (Chương trình mới)</option>
<option value="12">Lớp 12 (Luyện thi ĐH / ĐGNL)</option>
<option value="10">Lớp 10</option>
<option value="chuyen">Ôn thi chuyên</option>
</select>
</div>
<div class="form-group">
<label class="form-label">Khung giờ học thử mong muốn</label>
<select class="form-select" id="bookingTimeSlot">
<option value="toi-19h30">Tối 19:30 - 21:00 (Khuyên dùng)</option>
<option value="chieu-15h00">Chiều 15:00 - 16:30</option>
<option value="sang-09h00">Sáng 09:00 - 10:30 (Cuối tuần)</option>
</select>
</div>
</div>
<div class="form-group">
<label class="form-label">Mục tiêu học tập hoặc điểm cần cải thiện</label>
<input type="text" class="form-input" id="bookingGoal" placeholder="Ví dụ: Cần củng cố cực trị hàm số, mục tiêu 8.5+ học kỳ 1" />
</div>
<!-- Tutor Diagnostic Placement Requirement Box -->
<div id="bookingDiagPolicyBox" style="background: #f8fafc; border: 1.5px dashed var(--border); border-radius: var(--radius-md); padding: 14px 16px; margin-top: 4px;">
<div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;">
<div style="display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; color: var(--text-main);">
<span class="material-symbols-outlined" style="font-size: 18px; color: var(--primary);">psychology</span>
<span>Yêu cầu khảo thí của gia sư:</
10000
span>
</div>
<span id="bookingDiagPolicyBadge" style="font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px; background: #fff5f5; color: #c53030; border: 1px solid #fed7d7;">
Bắt buộc (15 phút)
</span>
</div>
<p id="bookingDiagPolicyMsg" style="font-size: 12px; color: var(--text-sub); line-height: 1.5; margin-bottom: 8px;">
Thầy yêu cầu học sinh hoàn thành bài test 15 phút để nắm rõ hổng kiến thức trước buổi gặp đầu tiên.
</p>
<div style="display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--primary); font-weight: 700;">
<span class="material-symbols-outlined" style="font-size: 16px;">quiz</span>
<span id="bookingDiagPolicyTitle">Khảo sát Tư duy & Lỗ hổng Toán 12 (15 phút)</span>
</div>
</div>
</div>
</div>
<div class="modal-footer" id="bookingModalFooter">
<button class="btn-outline" bỏ</button>
<div id="bookingActionButtons" style="display: flex; align-items: center; gap: 8px; flex-wrap: wrap;">
<button class="btn-primary" >
<span class="material-symbols-outlined" style="font-size: 18px;">check_circle</span>
<span>Xác nhận đặt lịch 0đ</span>
</button>
</div>
</div>
</div>
</div>
<!-- 2. Video Modal -->
<div class="modal-overlay" id="videoModal">
<div class="modal-content wide">
<div class="modal-header">
<h3 class="modal-title" id="videoModalTutorName">Video Giới Thiệu & Bài Giảng Mẫu</h3>
<button class="modal-close-btn material-symbols-outlined" >
</div>
<div class="modal-body" style="padding: 0; background: #000;">
<video id="tutorIntroVideo" controls style="width: 100%; max-height: 480px; display: block;" poster="https://ai.google.dev/static/site-assets/images/share-ais-513315318.png">
<source src="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" type="video/mp4" />
Trình duyệt của bạn không hỗ trợ thẻ video.
</video>
</div>
<div class="modal-footer">
<button class="btn-outline" video</button>
<button class="btn-primary" ModalModule.openBookingModal();">
<span class="material-symbols-outlined" style="font-size: 18px;">event_available</span>
<span>Đặt lịch học thử với gia sư này</span>
</button>
</div>
</div>
</div>
<!-- 3. Virtual Classroom Modal (Step 5 in 6-step workflow) -->
<div class="modal-overlay" id="classroomModal">
<div class="modal-content wide">
<div class="modal-header" style="background: var(--primary-dark); color: #fff; border-bottom: none;">
<div style="display: flex; align-items: center; gap: 10px;">
<span class="pulsing-dot" style="background: #10b981;"></span>
<div>
<div style="font-size: 11px; font-weight: 700; color: #93c5fd; text-transform: uppercase;">Quy Trình EduConnect • Bước 5/6: Tổ Chức Học Trực Tuyến</div>
<h3 class="modal-title" style="font-size: 16px; color: #fff;">Phòng Học Ảo 1:1 Độc Quyền • ThS. Trần Văn C & Nguyễn Văn A</h3>
</div>
</div>
<div style="display: flex; align-items: center; gap: 8px;">
<button class="btn-secondary" style="padding: 6px 12px; font-size: 12px; background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.25);" window.showToast('Đang phát tín hiệu chia sẻ màn hình độ phân giải 2K...');">
<span class="material-symbols-outlined" style="font-size: 15px;">screen_share</span>
<span>Chia sẻ màn hình</span>
</button>
<button class="btn-secondary" style="padding: 6px 12px; font-size: 12px; background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.25);" >
<span class="material-symbols-outlined" style="font-size: 15px;">folder_open</span>
<span>Kho tài liệu số</span>
</button>
<button class="modal-close-btn material-symbols-outlined" style="color: #fff;" >
</div>
</div>
<div class="modal-body" style="padding: 16px;">
<div class="classroom-grid">
<!-- Left: Interactive Whiteboard Canvas -->
<div class="whiteboard-container">
<div class="whiteboard-toolbar">
<span style="font-size: 12px; font-weight: 700; color: var(--text-muted); margin-right: 6px;">Bảng trắng thông minh:</span>
<button class="wb-tool-btn active" >
<span class="material-symbols-outlined" style="font-size: 14px;">draw</span>
<span>Bút Xanh</span>
</button>
<button class="wb-tool-btn" >
<span class="material-symbols-outlined" style="font-size: 14px; color: var(--danger);">edit</span>
<span>Bút Đỏ</span>
</button>
<button class="wb-tool-btn" >
<span class="material-symbols-outlined" style="font-size: 14px; color: var(--accent);">brush</span>
<span>Bút Cam</span>
</button>
<button class="wb-tool-btn" style="margin-left: auto; color: var(--danger);">
<span class="material-symbols-outlined" style="font-size: 14px;">delete</span>
<span>Xóa bảng</span>
</button>
</div>
<canvas id="whiteboardCanvas"></canvas>
</div>
<!-- Right: Webcam & Live Chat -->
<div class="classroom-sidebar">
<div class="video-cam-box">
<img src="https://lh3.googleusercontent.com/aida-public/AB6AXuCMWxvi2H2HcqGs5xLnk3ifiUlg9DjH_5Tt6K2JKRIHX7WR1bjbuOI_Zvpki48273Pt-ggF0upvI3TSoBpgf_ugGUHnzDFLX6OioTRue4eQGCWv1oj6P4KKL19boqKiICDHu9lKVpO7-o7QYCp3sv9PelOtJHPjoRboBXkvaw-egiKOD6g-5Aumu1u6gxnowc-h8Vr67iA4nVAzDIwJQ-V3pLOxN8wcoU_ffG0toKG-hpwEpX7s9RB4" alt="Tutor Cam" />
<span class="cam-label">ThS. Trần Văn C (Gia sư 1:1)</span>
</div>
<div class="chat-box">
<div style="padding: 10px 12px; border-bottom: 1px solid var(--border); font-family: var(--font-headline); font-size: 12px; font-weight: 800; color: var(--primary);">
Trao đổi & Phản hồi trong buổi học
</div>
<div class="chat-messages-list" id="classroomChatList">
<div class="chat-msg-item">
<div class="chat-msg-sender">ThS. Trần Văn C</div>
<div>Chào Văn A! Hôm nay thầy trò mình sẽ xử lý phương pháp ghép trục cho hàm f(x³ - 3x + 1) nhé.</div>
</div>
<div class="chat-msg-item">
<div class="chat-msg-sender">Nguyễn Văn A</div>
<div>Dạ vâng ạ, phần này em xem trước video nhưng vẫn còn lúng túng ở bước xác định các điểm cực trị trung gian.</div>
</div>
<div class="chat-msg-item">
<div class="chat-msg-sender">ThS. Trần Văn C</div>
<div>Đừng lo, thầy đã vẽ sẵn bảng biến thiên u trên bảng trắng thông minh. Em nhìn lên bảng cùng thầy nhé!</div>
</div>
</div>
<div style="display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--border);">
<input type="text" id="classroomChatInput" placeholder="Nhập tin nhắn..." style="flex: 1; height: 34px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--border); font-size: 12px;" === 'Enter') ClassroomModule.sendChatMessage()" />
<button class="btn-primary" style="padding: 0 10px; height: 34px;">
<span class="material-symbols-outlined" style="font-size: 16px;">send</span>
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Classroom Footer: Quick Actions & Step 6 Transition -->
<div class="modal-footer" style="display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; background: #f8fafc;">
<div style="display: flex; align-items: center; gap: 10px;">
<span class="material-symbols-outlined" style="color: var(--success); font-size: 20px;">assignment_turned_in</span>
<span style="font-size: 12px; color: var(--text-muted);">Bài tập tự luyện sau buổi học sẽ được công cụ tự động chấm điểm & phản hồi trong 15 phút.</span>
</div>
<div style="display: flex; align-items: center; gap: 10px;">
<button class="btn-outline" phòng học</button>
<a href="bao-cao-tien-do.html" class="btn-primary" style="text-decoration: none;">
<span>Bước 6: Xem Báo Cáo Tiến Độ & Học Phí</span>
<span class="material-symbols-outlined" style="font-size: 16px;">arrow_forward</span>
</a>
</div>
</div>
</div>
</div>
<!-- 4. Flashcard Modal (3D Flip) -->
<div class="modal-overlay" id="flashcardModal">
<div class="modal-content">
<div class="modal-header">
<div style="display: flex; align-items: center; gap: 8px;">
<span class="material-symbols-outlined" style="color: var(--accent);">style</span>
<h3 class="modal-title">Thẻ Ghi Nhớ Công Thức Giải Tích</h3>
</div>
<button class="modal-close-btn material-symbols-outlined" >
</div>
<div class="modal-body" style="text-align: center;">
<div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;">
<span class="tutor-badge accent" id="fcCategory">Giải Tích</span>
<span style="font-size: 12px; font-weight: 700; color: var(--text-sub);" id="fcCounter">Thẻ 1 / 4</span>
</div>
<!-- 3D Flip Card -->
<div class="flashcard-wrapper" id="flashcardWrapper" >
<div class="flashcard-inner">
<div class="flashcard-front">
<span class="material-symbols-outlined" style="font-size: 32px; color: var(--primary); margin-bottom: 12px;">help_outline</span>
<div class="flashcard-question" id="fcQuestion">Đạo hàm của hàm hợp y = f(u(x)) là gì?</div>
<span style="font-size: 11px; color: var(--text-sub); margin-top: 16px;">(Bấm vào thẻ để lật xem đáp án)</span>
</div>
<div class="flashcard-back">
<span class="material-symbols-outlined" style="font-size: 32px; color: var(--accent); margin-bottom: 12px;">lightbulb</span>
<div class="flashcard-answer" id="fcAnswer">y' = f'(u) · u'(x)</div>
<div class="flashcard-tip" id="fcTip">Mẹo nhớ: Đừng quên nhân thêm đạo hàm của hàm bên trong u(x)!</div>
<span style="font-size: 11px; color: var(--text-sub); margin-top: 16px;">(Bấm vào thẻ để lật lại)</span>
</div>
</div>
</div>
<div style="display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px;">
<button class="btn-secondary" >
<span class="material-symbols-outlined" style="font-size: 16px;">arrow_back</span>
<span>Thẻ trước</span>
</button>
<button class="btn-outline" >
<span class="material-symbols-outlined" style="font-size: 16px;">flip</span>
<span>Lật thẻ</span>
</button>
<button class="btn-primary" >
<span>Thẻ kế tiếp</span>
<span class="material-symbols-outlined" style="font-size: 16px;">arrow_forward</span>
</button>
</div>
</div>
</div>
</div>
<!-- 5. Mindmap Modal -->
<div class="modal-overlay" id="mindmapModal">
<div class="modal-content wide">
<div class="modal-header">
<div style="display: flex; align-items: center; gap: 8px;">
<span class="material-symbols-outlined" style="color: var(--primary);">account_tree</span>
<h3 class="modal-title">Sơ Đồ Tư Duy: Khảo Sát & Vẽ Đồ Thị Hàm Số Toán 11-12</h3>
</div>
<button class="modal-close-btn material-symbols-outlined" >
</div>
<div class="modal-body">
<div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;">
<div style="background: var(--primary-soft); padding: 18px; border-radius: var(--radius-md); border: 1px solid var(--border);">
<div style="font-weight: 800; color: var(--primary); font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px;">
<span class="material-symbols-outlined" style="font-size: 18px;">trending_up</span>
1. Tính Đơn Điệu Hàm Số
</div>
<p style="font-size: 13px; color: var(--text-muted); line-height: 1.5;">
• y' > 0: Hàm số đồng biến trên (a; b)<br />
• y' < 0: Hàm số nghịch biến trên (a; b)<br />
• Chú ý: Dấu "=" xảy ra tại hữu hạn điểm.
</p>
</div>
<div style="background: var(--accent-soft); padding: 18px; border-radius: var(--radius-md); border: 1px solid rgba(253, 118, 26, 0.2);">
<div style="font-weight: 800; color: var(--accent); font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px;">
<span class="material-symbols-outlined" style="font-size: 18px;">adjust</span>
2. Cực Trị & Biện Luận Tham Số
</div>
<p style="font-size: 13px; color: var(--text-muted); line-height: 1.5;">
• y' đổi dấu qua x0: Điểm cực trị<br />
• Hàm bậc 3 có 2 cực trị khi Δ' của y' > 0 (b² - 3ac > 0)<br />
• Đường thẳng đi qua 2 điểm cực trị: y = f(x) - [y' · y''] / (18a).
</p>
</div>
<div style="background: #e6f7ef; padding: 18px; border-radius: var(--radius-md); border: 1px solid rgba(0, 86, 58, 0.2);">
<div style="font-weight: 800; color: var(--success); font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px;">
<span class="material-symbols-outlined" style="font-size: 18px;">border_vertical</span>
3. Tiệm Cận Đứng & Tiệm Cận Ngang
</div>
<p style="font-size: 13px; color: var(--text-muted); line-height: 1.5;">
• Tiệm cận ngang: lim(x → ±∞) y = y0<br />
• Tiệm cận đứng: lim(x → x0) y = ±∞ (Nghiệm của mẫu số không trùng tử số).
</p>
</div>
<div style="background: #fdf2f8; padding: 18px; border-radius: var(--radius-md); border: 1px solid rgba(219, 39, 119, 0.2);">
<div style="font-weight: 800; color: #db2777; font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px;">
<span class="material-symbols-outlined" style="font-size: 18px;">hub</span>
4. Phương Pháp Ghép Trục Vận Dụng Cao
</div>
<p style="font-size: 13px; color: var(--text-muted); line-height: 1.5;">
• Bước 1: Đặt u = u(x) và tìm miền giá trị của u<br />
• Bước 2: Điền các điểm cực trị trung gian của u<br />
• Bước 3: Đọc trực tiếp số điểm cực trị và nghiệm f(u) = m.
</p>
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn-primary" hiểu kiến thức</button>
</div>
</div>
</div>
<!-- 6. Authentication Modal (Login / Register) -->
<div class="modal-overlay" id="authModal">
<div class="modal-content" style="max-width: 440px;">
<div class="modal-header">
<div style="display: flex; align-items: center; gap: 10px;">
<span class="material-symbols-outlined" style="color: var(--primary); font-size: 24px;">lock</span>
<h3 class="modal-title">Tài Khoản EduConnect</h3>
</div>
<button class="modal-close-btn material-symbols-outlined" >
</div>
<div class="modal-body" style="padding: 20px;">
<!-- Tab Switcher -->
<div class="auth-tabs">
<button class="auth-tab-btn active" id="authTabLoginBtn" nhập</button>
<button class="auth-tab-btn" id="authTabRegisterBtn" ký tài khoản</button>
</div>
<!-- Login Form -->
<div id="authLoginForm">
<form const id = document.getElementById('authLoginIdentifier').value; const pass = document.getElementById('authLoginPassword').value; AuthModule.login(id, pass);">
<div class="form-group" style="margin-bottom: 14px;">
<label class="form-label">Số điện thoại hoặc Email</label>
<input type="text" class="form-input" id="authLoginIdentifier" placeholder="VD: 0912888999 hoặc minhquan@gmail.com" required />
</div>
<div class="form-group" style="margin-bottom: 16px;">
<label class="form-label">Mật khẩu</label>
<input type="password" class="form-input" id="authLoginPassword" placeholder="Nhập mật khẩu..." required />
</div>
<button type="submit" class="btn-primary" style="width: 100%; padding: 11px;">
<span class="material-symbols-outlined" style="font-size: 18px;">login</span>
<span>Đăng Nhập Ngay</span>
</button>
</form>
<!-- Demo Accounts Picker -->
<div class="demo-account-box">
<div style="font-size: 11px; font-weight: 700; color: var(--text-muted); display: flex; align-items: center; gap: 4px;">
<span class="material-symbols-outlined" style="font-size: 14px; color: var(--accent);">key</span>
<span>Tài khoản mẫu thử nghiệm (Bấm để điền nhanh):</span>
</div>
<div class="demo-account-grid">
<div class="demo-account-chip" document.getElementById('authLoginPassword').value='123';">
<strong>Học sinh</strong>
<span style="color: var(--text-sub);">minhquan... / 123</span>
</div>
<div class="demo-account-chip" document.getElementById('authLoginPassword').value='123';">
<strong>Phụ huynh</strong>
<span style="color: var(--text-sub);">mailan... / 123</span>
</div>
<div class="demo-account-chip" document.getElementById('authLoginPassword').value='123';">
<strong>Gia sư</strong>
<span style="color: var(--text-sub);">nam.tran... / 123</span>
</div>
</div>
</div>
</div>
<!-- Register Form (Step 1 in 6-step workflow) -->
<div id="authRegisterForm" style="display: none;">
<form
const name = document.getElementById('authRegName').value;
const phone = document.getElementById('authRegPhone').value;
const email = document.getElementById('authRegEmail').value;
const password = document.getElementById('authRegPassword').value;
const role = document.getElementById('authRegRole').value;
const grade = document.getElementById('authRegGrade').value;
const subject = document.getElementById('authRegSubject').value;
const goal = document.getElementById('authRegGoal').value;
const availability = document.getElementById('authRegAvailability').value;
AuthModule.register({ name, phone, email, password, role, grade, subject, goal, availability });">
<div class="form-group" style="margin-bottom: 10px;">
<label class="form-label">Họ và tên *</label>
<input type="text" class="form-input" id="authRegName" placeholder="Ví dụ: Hoàng Minh Đức" required />
</div>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;">
<div class="form-group">
<label class="form-label">Số điện thoại *</label>
<input type="tel" class="form-input" id="authRegPhone" placeholder="VD: 0987654321" required />
</div>
<div class="form-group">
<label class="form-label">Email</label>
<input type="email" class="form-input" id="authRegEmail" placeholder="VD: duc@gmail.com" />
</div>
</div>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;">
<div class="form-group">
<label class="form-label">Vai trò tài khoản *</label>
<select class="form-select" id="authRegRole">
<option value="student">Học sinh</option>
<option value="parent">Phụ huynh</option>
<option value="tutor">Gia sư</option>
</select>
</div>
<div class="form-group">
<label class="form-label">Khối lớp *</label>
<select class="form-select" id="authRegGrade">
<option value="Lớp 11">Lớp 11 (GDPT mới)</option>
<option value="Lớp 12">Lớp 12 (Luyện thi ĐH)</option>
<option value="Lớp 10">Lớp 10</option>
<option value="Cấp 2">Cấp 2 (Lớp 6-9)</option>
<option value="ĐGNL">Luyện thi ĐGNL (HSA/APT)</option>
</select>
</div>
</div>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;">
<div class="form-group">
<label class="form-label">Môn học quan tâm *</label>
<select class="form-select" id="authRegSubject">
<option value="Toán học">Toán học (10-12 & ĐGNL)</option>
<option value="Vật lý">Vật lý (Chuyên & ĐH)</option>
<option value="Hóa học">Hóa học (Bù mất gốc)</option>
<option value="Tiếng Anh & IELTS">Tiếng Anh & IELTS 8.0+</option>
<option value="Ngữ văn">Ngữ văn (Nghị luận & Chuyên)</option>
</select>
</div>
<div class="form-group">
<label class="form-label">Khung thời gian rảnh *</label>
<select class="form-select" id="authRegAvailability">
<option value="Tối (T2-T4-T6)">Tối T2 - T4 - T6</option>
<option value="Tối (T3-T5-T7)">Tối T3 - T5 - T7</option>
<option value="Cuối tuần (T7-CN)">Cuối tuần (T7 & CN)</option>
<option value="Linh hoạt">Linh hoạt theo gia sư</option>
</select>
</div>
</div>
<div class="form-group" style="margin-bottom: 10px;">
<label class="form-label">Mục tiêu học tập *</label>
<select class="form-select" id="authRegGoal">
<option value="Bù hổng cấp tốc">Bù hổng kiến thức cấp tốc (sau 2 tuần)</option>
<option value="Bứt phá 8.5+">Bứt phá điểm số 8.5+ & Nắm chắc câu 9+</option>
<option value="Luyện thi ĐGNL / ĐH">Luyện thi Đánh giá năng lực (HSA/APT) & THPT QG</option>
<option value="Vào trường Chuyên">Thi đỗ vào trường Chuyên / ĐH Top 1</option>
</select>
</div>
<div class="form-group" style="margin-bottom: 14px;">
<label class="form-label">Mật khẩu (tối thiểu 3 ký tự) *</label>
<input type="password" class="form-input" id="authRegPassword" placeholder="Nhập mật khẩu..." required />
</div>
<button type="submit" class="btn-primary" style="width: 100%; padding: 11px;">
<span class="material-symbols-outlined" style="font-size: 18px;">person_add</span>
<span>Đăng Ký & Tiếp Tục</span>
</button>
</form>
<div style="margin-top: 10px; font-size: 11px; color: var(--text-sub); line-height: 1.4; background: var(--primary-soft); padding: 8px 12px; border-radius: 6px;">
<strong style="color: var(--primary);">💡 Bước 1 Quy Trình:</strong> Sau khi đăng ký tài khoản, hệ thống sẽ đề xuất bạn thực hiện bài kiểm tra đầu vào thích ứng AI (15 phút) hoặc tiếp tục khám phá danh bạ gia sư.
</div>
</div>
</div>
</div>
</div>
<!-- 6. Post-Registration Onboarding Modal (Step 1 -> Step 2 Guidance) -->
<div class="modal-overlay" id="onboardingModal" style="display: none;">
<div class="modal-content" style="max-width: 520px; text-align: center; padding: 28px;">
<div style="width: 64px; height: 64px; border-radius: 50%; background: var(--primary-soft); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: var(--primary);">
<span class="material-symbols-outlined" style="font-size: 36px;">celebration</span>
</div>
<div style="font-size: 11px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;">
ĐĂNG KÝ THÀNH CÔNG • BƯỚC 1 HOÀN TẤT
</div>
D6C3
<h3 style="font-size: 20px; font-weight: 800; color: var(--primary-dark); margin-bottom: 10px;" id="onboardingWelcomeTitle">
Chào mừng bạn!
</h3>
<p style="font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 22px;" id="onboardingWelcomeDesc">
Hệ thống đã ghi nhận hồ sơ mục tiêu của bạn. Để AI chẩn đoán chính xác lỗ hổng kiến thức và gợi ý gia sư chuẩn nhất, bạn muốn thực hiện tiếp bước nào?
</p>
<div style="display: flex; flex-direction: column; gap: 10px;">
<a href="kiem-tra-dau-vao.html" id="onboardingStartTestBtn" class="btn-primary" style="padding: 13px; font-size: 14px; justify-content: center; font-weight: 700; box-shadow: 0 4px 14px rgba(37,99,235,0.3);">
<span class="material-symbols-outlined" style="font-size: 18px;">psychology</span>
<span id="onboardingStartTestText">Làm Bài Khảo Thí AI Ngay (15 Phút)</span>
<span class="material-symbols-outlined" style="font-size: 16px;">arrow_forward</span>
</a>
<button type="button" class="btn-secondary" style="padding: 11px; font-size: 13px; justify-content: center;">
<span class="material-symbols-outlined" style="font-size: 16px;">explore</span>
<span>Để sau • Tôi muốn khám phá danh bạ gia sư trước</span>
</button>
</div>
<div style="margin-top: 14px; font-size: 11px; color: var(--text-sub);">
💡 Bạn có thể làm bài kiểm tra đầu vào bất kỳ lúc nào tại menu <strong>"Kiểm tra đầu vào"</strong>.
</div>
</div>
</div>
<!-- 7. Periodic Tuition Payment Modal (Step 6) -->
<div class="modal-overlay" id="paymentModal">
<div class="modal-content" style="max-width: 480px;">
<div class="modal-header">
<div style="display: flex; align-items: center; gap: 8px;">
<span class="material-symbols-outlined" style="color: var(--accent);">account_balance_wallet</span>
<h3 class="modal-title">Cổng Thanh Toán Học Phí Tích Hợp</h3>
</div>
<button class="modal-close-btn material-symbols-outlined" >
</div>
<div class="modal-body" style="padding: 20px;">
<div style="text-align: center; margin-bottom: 18px;">
<div style="font-size: 12px; color: var(--text-sub); text-transform: uppercase; font-weight: 700;">Học phí Tháng 10/2024 • 12 buổi học 1:1</div>
<div style="font-size: 28px; font-weight: 800; color: var(--accent); font-family: var(--font-headline); margin: 4px 0;">1.980.000đ</div>
<div style="font-size: 12px; color: var(--success); font-weight: 600;">✓ Đã áp dụng ưu đãi buổi học thử 0đ (-180.000đ)</div>
</div>
<!-- QR Code Simulation -->
<div style="background: #f8fafc; border: 2px dashed #cbd5e1; border-radius: var(--radius-lg); padding: 20px; text-align: center; margin-bottom: 18px;">
<img src="https://api.qrserver.com/v1/create-qr-code/?size=180x180&data=1.980.000d-EDUCONNECT-THANHTOAN-HOCPHI" alt="VietQR EduConnect" style="width: 160px; height: 160px; margin: 0 auto 12px; display: block; border-radius: 8px; box-shadow: var(--shadow-sm);" />
<div style="font-size: 13px; font-weight: 700; color: var(--primary-dark);">Ngân Hàng TMCP Ngoại Thương (Vietcombank)</div>
<div style="font-size: 12px; color: var(--text-muted); margin-top: 4px;">STK: <strong>1028 999 888</strong> • EDUCONNECT EDTECH</div>
<div style="font-size: 11px; color: var(--accent); font-weight: 700; margin-top: 6px; background: rgba(255,96,34,0.1); padding: 4px 10px; border-radius: 4px; display: inline-block;">
Nội dung CK: EDU_MINHANH_T10
</div>
</div>
<div style="font-size: 11px; color: var(--text-sub); line-height: 1.5; margin-bottom: 16px;">
🔒 Giao dịch được bảo mật bởi cổng thanh toán liên ngân hàng Napas247. Sau khi quét mã thành công, hệ thống tự động xuất biên lai điện tử kết nối Google Sheets.
</div>
<div style="display: flex; gap: 10px;">
<button class="btn-outline" style="flex: 1;" sau</button>
<button class="btn-primary" style="flex: 2;" >
<span class="material-symbols-outlined" style="font-size: 18px;">verified</span>
<span>Tôi Đã Chuyển Khoản</span>
</button>
</div>
</div>
</div>
</div>
`;
}
// Define Web Components (Custom Elements)
class AppHeaderElement extends HTMLElement {
connectedCallback() {
if (this.dataset.rendered) return;
this.dataset.rendered = 'true';
const active = this.getAttribute('active') || detectActiveTab();
this.innerHTML = getHeaderHTML(active);
}
}
class AppFooterElement extends HTMLElement {
connectedCallback() {
if (this.dataset.rendered) return;
this.dataset.rendered = 'true';
this.innerHTML = getFooterHTML();
}
}
class AppConversionBarElement extends HTMLElement {
connectedCallback() {
if (this.dataset.rendered) return;
this.dataset.rendered = 'true';
const active = this.getAttribute('active') || detectActiveTab();
this.innerHTML = getConversionBarHTML(active);
}
}
class AppModalsElement extends HTMLElement {
connectedCallback() {
if (this.dataset.rendered) return;
this.dataset.rendered = 'true';
this.innerHTML = getModalsHTML();
}
}
if (typeof customElements !== 'undefined') {
if (!customElements.get('app-header')) customElements.define('app-header', AppHeaderElement);
if (!customElements.get('app-footer')) customElements.define('app-footer', AppFooterElement);
if (!customElements.get('app-conversion-bar')) customElements.define('app-conversion-bar', AppConversionBarElement);
if (!customElements.get('app-modals')) customElements.define('app-modals', AppModalsElement);
}
// Fallback for direct JS injection (e.g. if using <div id="app-header"></div>)
function initLayoutContainers() {
const headerHolder = document.getElementById('app-header');
if (headerHolder && !headerHolder.dataset.rendered) {
headerHolder.dataset.rendered = 'true';
headerHolder.innerHTML = getHeaderHTML(headerHolder.getAttribute('data-active'));
}
const footerHolder = document.getElementById('app-footer');
if (footerHolder && !footerHolder.dataset.rendered) {
footerHolder.dataset.rendered = 'true';
footerHolder.innerHTML = getFooterHTML();
}
const convHolder = document.getElementById('app-conversion-bar');
if (convHolder && !convHolder.dataset.rendered) {
convHolder.dataset.rendered = 'true';
convHolder.innerHTML = getConversionBarHTML(convHolder.getAttribute('data-active'));
}
const modalsHolder = document.getElementById('app-modals');
if (modalsHolder && !modalsHolder.dataset.rendered) {
modalsHolder.dataset.rendered = 'true';
modalsHolder.innerHTML = getModalsHTML();
}
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', initLayoutContainers);
} else {
initLayoutContainers();
}
// Expose methods globally
window.EduLayout = {
getHeaderHTML,
getFooterHTML,
getConversionBarHTML,
getModalsHTML,
detectActiveTab
};
})();
You can’t perform that action at this time.