-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
762 lines (703 loc) · 31.3 KB
/
Copy pathindex.html
File metadata and controls
762 lines (703 loc) · 31.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Garage Management System</title>
<link rel="stylesheet" href="styles.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
<!-- Header -->
<header class="header">
<div class="logo">
<i class="fas fa-wrench"></i>
<h1>GarageMax Pro</h1>
</div>
<!-- Developer Logo + Popup -->
<div class="dev-logo-container">
<span class="dev-label">Developer</span>
<button class="dev-logo" id="devLogo" aria-haspopup="dialog" aria-expanded="false" aria-label="Developer info">
AR
</button>
<div id="devPopup" class="dev-popup" role="dialog" aria-modal="false" aria-label="Developer details">
<strong>Developer:Ainaan Raza</strong><br>
<a href="mailto:aliainaanraza7@gmail.com">contact:aliainaanraza7@gmail.com</a>
</div>
</div>
</header>
<!-- Navigation -->
<!-- 🔹 Mobile Menu Button -->
<button id="menuToggle" class="mobile-menu-btn">
<i class="fas fa-bars"></i> Menu
</button>
<!-- 🔹 Responsive Navigation -->
<nav class="nav-tabs" id="mainNav">
<button class="nav-tab active" data-tab="dashboard">
<i class="fas fa-tachometer-alt"></i> Dashboard
</button>
<button class="nav-tab" data-tab="customers">
<i class="fas fa-users"></i> Customers
</button>
<button class="nav-tab" data-tab="job-cards">
<i class="fas fa-clipboard-list"></i> Job Cards
</button>
<button class="nav-tab" data-tab="inventory">
<i class="fas fa-warehouse"></i> Inventory
</button>
<button class="nav-tab" data-tab="staff">
<i class="fas fa-user-tie"></i> Staff
</button>
<button class="nav-tab" data-tab="reports">
<i class="fas fa-chart-bar"></i> Reports
</button>
<button class="nav-tab" data-tab="accounting">
<i class="fas fa-file-invoice-dollar"></i> Accounting
</button>
<button class="nav-tab" data-tab="settings">
<i class="fas fa-cog"></i> Settings
</button>
</nav>
<!-- Main Content -->
<main class="main-content">
<!-- Dashboard Tab -->
<div id="dashboard" class="tab-content active">
<div class="dashboard-header">
<h2>Dashboard Overview</h2>
<div class="date-time" id="currentDateTime"></div>
</div>
<div class="kpi-cards">
<div class="kpi-card">
<div class="kpi-icon">
<i class="fas fa-car"></i>
</div>
<div class="kpi-info">
<h3 id="activeJobs">0</h3>
<p>Active Jobs</p>
</div>
</div>
<div class="kpi-card">
<div class="kpi-icon">
<i class="fa fa-money-bill-wave"></i>
</div>
<div class="kpi-info">
<h3 id="dailyRevenue">₹0</h3>
<p>Daily Revenue</p>
</div>
</div>
<div class="kpi-card">
<div class="kpi-icon">
<i class="fas fa-clock"></i>
</div>
<div class="kpi-info">
<h3 id="pendingJobs">0</h3>
<p>Pending Jobs</p>
</div>
</div>
<div class="kpi-card">
<div class="kpi-icon">
<i class="fas fa-check-circle"></i>
</div>
<div class="kpi-info">
<h3 id="completedJobs">0</h3>
<p>Completed Today</p>
</div>
</div>
</div>
<div class="dashboard-grid">
<div class="dashboard-card">
<h3>Recent Job Cards</h3>
<div id="recentJobs" class="recent-jobs"></div>
</div>
<div class="dashboard-card">
<h3>Low Stock Alerts</h3>
<div id="lowStockAlerts" class="alerts"></div>
</div>
<div class="dashboard-card">
<h3>Today's Appointments</h3>
<div id="todayAppointments" class="appointments"></div>
</div>
</div>
</div>
<!-- Customers Tab -->
<div id="customers" class="tab-content">
<div class="section-header">
<h2>Customer Management</h2>
<button id="addCustomerBtn" class="btn-primary">
<i class="fas fa-plus"></i> Add Customer
</button>
</div>
<div class="search-bar">
<input type="text" id="customerSearch" placeholder="Search customers by name or phone...">
<button id="searchCustomerBtn"><i class="fas fa-search"></i></button>
</div>
<div class="table-wrapper">
<table id="customersTable" class="data-table">
<thead>
<tr>
<th>Customer ID</th>
<th>Name</th>
<th>Phone</th>
<th>Email</th>
<th>Vehicles</th>
<th>Last Service</th>
<th>Actions</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
<!-- Job Cards Tab -->
<div id="job-cards" class="tab-content">
<div class="section-header">
<h2>Job Card Management</h2>
<button id="createJobCardBtn" class="btn-primary">
<i class="fas fa-plus"></i> Create Job Card
</button>
</div>
<div class="filters">
<select id="statusFilter">
<option value="all">All Status</option>
<option value="inspection">Inspection</option>
<option value="diagnosis">Diagnosis</option>
<option value="approval_pending">Approval Pending</option>
<option value="in_progress">In Progress</option>
<option value="quality_check">Quality Check</option>
<option value="ready">Ready for Delivery</option>
<option value="completed">Completed</option>
</select>
<input type="date" id="dateFilter">
<button id="filterJobsBtn">Filter</button>
</div>
<div class="table-wrapper">
<table id="jobCardsTable" class="data-table">
<thead>
<tr>
<th>Job ID</th>
<th>Customer</th>
<th>Vehicle</th>
<th>Status</th>
<th>Start Date</th>
<th>Estimated Cost</th>
<th>Technician</th>
<th>Actions</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
<!-- Inventory Tab -->
<div id="inventory" class="tab-content">
<div class="section-header">
<h2>Inventory Management</h2>
<div class="header-actions">
<button id="uploadInventoryBtn" class="btn-secondary">
<i class="fas fa-upload"></i> Upload Excel
</button>
<button id="downloadInventoryBtn" class="btn-secondary">
<i class="fas fa-download"></i> Download Excel
</button>
<button id="addInventoryBtn" class="btn-primary">
<i class="fas fa-plus"></i> Add Item
</button>
</div>
</div>
<div class="inventory-stats">
<div class="stat-card">
<h4>Total Items</h4>
<span id="totalItems">0</span>
</div>
<div class="stat-card">
<h4>Low Stock Items</h4>
<span id="lowStockItems">0</span>
</div>
<div class="stat-card">
<h4>Out of Stock</h4>
<span id="outOfStockItems">0</span>
</div>
</div>
<div class="filters">
<input type="text" id="inventorySearch" placeholder="Search parts by SKU or name...">
<select id="categoryFilter">
<option value="all">All Categories</option>
<option value="engine">Engine Parts</option>
<option value="brake">Brake System</option>
<option value="suspension">Suspension</option>
<option value="electrical">Electrical</option>
<option value="body">Body Parts</option>
<option value="fluids">Fluids & Oils</option>
</select>
</div>
<div class="table-wrapper">
<table id="inventoryTable" class="data-table">
<thead>
<tr>
<th>SKU</th>
<th>Part Name</th>
<th>Category</th>
<th>Quantity</th>
<th>Unit Price</th>
<th>Min Stock</th>
<th>Status</th>
<th>Actions</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
<!-- Staff Tab -->
<div id="staff" class="tab-content">
<div class="section-header">
<h2>Staff Management</h2>
<div class="header-actions">
<button id="uploadStaffBtn" class="btn-secondary">
<i class="fas fa-upload"></i> Upload Excel
</button>
<button id="downloadStaffBtn" class="btn-secondary">
<i class="fas fa-download"></i> Download Excel
</button>
<button id="addStaffBtn" class="btn-primary">
<i class="fas fa-plus"></i> Add Staff
</button>
</div>
</div>
<div class="table-wrapper">
<table id="staffTable" class="data-table">
<thead>
<tr>
<th>Staff ID</th>
<th>Name</th>
<th>Role</th>
<th>Phone</th>
<th>Experience</th>
<th>Hourly Rate</th>
<th>Status</th>
<th>Actions</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
<!-- Reports Tab -->
<div id="reports" class="tab-content">
<div class="section-header">
<h2>Reports & Analytics</h2>
<div class="filters">
<input type="date" id="reportStartDate">
<input type="date" id="reportEndDate">
<button id="downloadReportBtn" class="btn-secondary">Download Report</button>
<button id="generateReportBtn" class="btn-primary">Generate Report</button>
</div>
</div>
<div class="report-cards">
<div class="report-card">
<h3>Revenue Summary</h3>
<div id="revenueSummary" class="report-content"></div>
</div>
<div class="report-card">
<h3>Job Statistics</h3>
<div id="jobStats" class="report-content"></div>
</div>
<div class="report-card">
<h3>Staff Productivity</h3>
<div id="staffProductivity" class="report-content"></div>
</div>
</div>
</div>
<!-- Accounting Tab -->
<div id="accounting" class="tab-content">
<div class="section-header">
<h2>Accounting & Transactions</h2>
<div class="header-actions">
<button id="showAllTransactionsBtn" class="btn-secondary">
<i class="fas fa-list"></i> Show All Transactions
</button>
<button id="downloadTransactionsBtn" class="btn-primary">
<i class="fas fa-file-excel"></i> Download Excel
</button>
</div>
</div>
<div class="table-wrapper">
<h3>Transactions</h3>
<table id="accountingTable" class="data-table">
<thead>
<tr>
<th>Date</th>
<th>Description</th>
<th>Type</th>
<th>Amount</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<div class="dashboard-card">
<h3>Today's Financial Summary</h3>
<p><strong>Revenue:</strong> <span id="todayRevenue">₹0</span></p>
<p><strong>Expenses:</strong> <span id="todayExpenses">₹0</span></p>
<p><strong>Profit/Loss:</strong> <span id="todayProfit">₹0</span></p>
</div>
<div class="dashboard-card">
<h3>Total Financial Summary</h3>
<p><strong>Total Revenue:</strong> <span id="totalRevenue">₹0</span></p>
<p><strong>Total Expenses:</strong> <span id="totalExpenses">₹0</span></p>
<p><strong>Total Profit/Loss:</strong> <span id="totalProfit">₹0</span></p>
</div>
</div>
<!-- Settings Tab -->
<div id="settings" class="tab-content">
<div class="section-header">
<h2>System Settings</h2>
</div>
<div class="settings-grid">
<div class="settings-card">
<h3>Data Management</h3>
<button id="exportAllDataBtn" class="btn-secondary">
<i class="fas fa-download"></i> Export All Data
</button>
<button id="importAllDataBtn" class="btn-secondary">
<i class="fas fa-file-import"></i> Import All Data
</button>
<button id="backupDataBtn" class="btn-secondary">
<i class="fas fa-backup"></i> Backup Data
</button>
</div>
<input type="file" id="importAllFileInput" accept=".csv, .xlsx, .xls" style="display:none;">
<div class="settings-card">
<h3>System Configuration</h3>
<div class="form-group">
<label>Garage Name:</label>
<input type="text" id="garageName" value="GarageMax Pro">
</div>
<div class="form-group">
<label>VAT (%):</label>
<input type="number" id="taxRate" value="18">
</div>
<div class="form-group">
<label for="currency">Currency</label>
<select id="currency">
<option value="INR">INR (₹)</option>
<option value="USD">USD ($)</option>
<option value="AED">AED (د.إ)</option>
<option value="SAR">SAR (﷼)</option>
</select>
</div>
<button id="saveSettingsBtn" class="btn-primary">Save Settings</button>
</div>
</div>
<div class="settings-item logout-section">
<button id="logoutBtn" class="logout-btn">
<i class="fa fa-sign-out-alt"></i> Logout
</button>
</div>
</div>
</main>
</div>
<!-- Modals -->
<!-- Customer Modal -->
<div id="customerModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h3 id="customerModalTitle">Add New Customer</h3>
<span class="close">×</span>
</div>
<form id="customerForm" class="modal-form">
<div class="form-row">
<div class="form-group">
<label for="customerName">Customer Name*</label>
<input type="text" id="customerName" required>
</div>
<div class="form-group">
<label for="customerPhone">Phone Number*</label>
<input type="tel" id="customerPhone" required>
</div>
</div>
<div class="form-row">
<div class="form-group">
<label for="customerEmail">Email</label>
<input type="email" id="customerEmail">
</div>
<div class="form-group">
<label for="customerAddress">Address</label>
<textarea id="customerAddress" rows="2"></textarea>
</div>
</div>
<h4>Vehicle Information</h4>
<div class="form-row">
<div class="form-group">
<label for="vehicleMake">Make*</label>
<input type="text" id="vehicleMake" required>
</div>
<div class="form-group">
<label for="vehicleModel">Model*</label>
<input type="text" id="vehicleModel" required>
</div>
</div>
<div class="form-row">
<div class="form-group">
<label for="vehicleYear">Year*</label>
<input type="number" id="vehicleYear" required>
</div>
<div class="form-group">
<label for="vehicleVIN">VIN</label>
<input type="text" id="vehicleVIN">
</div>
</div>
<div class="form-row">
<div class="form-group">
<label for="licensePlate">License Plate*</label>
<input type="text" id="licensePlate" required>
</div>
<div class="form-group">
<label for="vehicleMileage">Current Mileage</label>
<input type="number" id="vehicleMileage">
</div>
</div>
<div class="modal-actions">
<button type="button" class="btn-secondary cancel">Cancel</button>
<button type="submit" class="btn-primary">Save Customer</button>
</div>
</form>
</div>
</div>
<!-- Job Card Modal -->
<div id="jobCardModal" class="modal">
<div class="modal-content large">
<div class="modal-header">
<h3 id="jobCardModalTitle">Create Job Card</h3>
<span class="close">×</span>
</div>
<form id="jobCardForm" class="modal-form">
<div class="form-row">
<div class="form-group">
<label for="jobCustomerId">Customer*</label>
<select id="jobCustomerId" required>
<option value="">Select Customer</option>
</select>
</div>
<div class="form-group">
<label for="jobVehicleId">Vehicle*</label>
<select id="jobVehicleId" required>
<option value="">Select Vehicle</option>
</select>
</div>
</div>
<div class="form-group">
<label for="jobDescription">Job Description*</label>
<textarea id="jobDescription" rows="3" required placeholder="Describe the issues/services required..."></textarea>
</div>
<div class="form-row">
<div class="form-group">
<label for="jobTechnician">Assigned Technician</label>
<select id="jobTechnician">
<option value="">Select Technician</option>
</select>
</div>
<div class="form-group">
<label for="jobPriority">Priority</label>
<select id="jobPriority">
<option value="low">Low</option>
<option value="medium" selected>Medium</option>
<option value="high">High</option>
</select>
</div>
</div>
<h4>Parts Required</h4>
<div id="partsContainer">
<div class="parts-row">
<select class="part-select" name="partId" onchange="calculateJobCost()">
<option value="">Select Part</option>
</select>
<input type="number" name="partQuantity" placeholder="Qty" min="1" onchange="calculateJobCost()">
<button type="button" class="btn-remove-part" onclick="removePartRow(this)">Remove</button>
</div>
</div>
<button type="button" id="addPartBtn" class="btn-secondary">Add Part</button>
<div class="cost-summary">
<div class="cost-row">
<span>Parts Cost:</span>
<span id="partsCost">₹0</span>
</div>
<div class="cost-row">
<span>Labor Hours:</span>
<input type="number" id="laborHours" value="0" min="0">
</div>
<div class="cost-row">
<span>Labor Cost (@<span id="hourlyRateDisplay">₹0/hr</span>):</span>
<span id="laborCost">₹0</span>
</div>
<div class="cost-row">
<span><span>VAT (<span id="vatRateLabel">18</span>%):</span>
:</span>
<span id="taxAmount">₹0</span>
</div>
<div class="cost-row total">
<span>Total Estimated Cost:</span>
<span id="totalCost">₹0</span>
</div>
</div>
<div class="modal-actions">
<button type="button" class="btn-secondary cancel">Cancel</button>
<button type="submit" class="btn-primary">Create Job Card</button>
</div>
</form>
</div>
</div>
<!-- File Upload Modal -->
<div id="fileUploadModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h3 id="fileUploadTitle">Upload Excel File</h3>
<span class="close">×</span>
</div>
<div class="modal-body">
<div class="upload-area">
<input type="file" id="fileInput" accept=".xlsx,.xls" style="display: none;">
<div class="upload-placeholder" onclick="document.getElementById('fileInput').click();">
<i class="fas fa-cloud-upload-alt"></i>
<p>Click to select Excel file or drag and drop</p>
<small>Supported formats: .xlsx, .xls</small>
</div>
</div>
<div class="modal-actions">
<button type="button" class="btn-secondary cancel">Cancel</button>
<button type="button" id="uploadFileBtn" class="btn-primary" disabled>Upload</button>
</div>
</div>
</div>
</div>
<!-- Job Card Detail Modal -->
<div id="jobDetailModal" class="modal">
<div class="modal-content large">
<div class="modal-header">
<h3 id="jobDetailTitle">Job Card Details</h3>
<span class="close">×</span>
</div>
<div class="job-detail-content">
<!-- Job details will be populated here -->
</div>
</div>
</div>
<!-- Inventory Modal -->
<div id="inventoryModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h3 id="inventoryModalTitle">Add New Inventory Item</h3>
<span class="close">×</span>
</div>
<form id="inventoryForm" class="modal-form">
<div class="form-row">
<div class="form-group">
<label for="inventoryName">Part Name*</label>
<input type="text" id="inventoryName" required>
</div>
<div class="form-group">
<label for="inventoryCategory">Category*</label>
<select id="inventoryCategory" required>
<option value="">Select Category</option>
<option value="engine">Engine</option>
<option value="brake">Brake</option>
<option value="suspension">Suspension</option>
<option value="electrical">Electrical</option>
<option value="body">Body</option>
<option value="fluids">Fluids & Oils</option>
</select>
</div>
</div>
<div class="form-row">
<div class="form-group">
<label for="inventoryQuantity">Quantity*</label>
<input type="number" id="inventoryQuantity" min="1" required>
</div>
<div class="form-group">
<label for="inventoryPrice">Unit Price*</label>
<input type="number" id="inventoryPrice" min="1" step="0.01" required>
</div>
</div>
<div class="form-group">
<label for="inventoryMinStock">Minimum Stock*</label>
<input type="number" id="inventoryMinStock" min="0" required>
</div>
<div class="modal-actions">
<button type="button" class="btn-secondary cancel">Cancel</button>
<button type="submit" class="btn-primary">Save Item</button>
</div>
</form>
</div>
</div>
<!-- Staff Modal -->
<div id="staffModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h3 id="staffModalTitle">Add Staff Member</h3>
<span class="close">×</span>
</div>
<form id="staffForm" class="modal-form">
<div class="form-row">
<div class="form-group">
<label for="staffName">Name*</label>
<input type="text" id="staffName" required>
</div>
<div class="form-group">
<label for="staffRole">Role*</label>
<input type="text" id="staffRole" required>
</div>
</div>
<div class="form-row">
<div class="form-group">
<label for="staffPhone">Phone*</label>
<input type="tel" id="staffPhone" required>
</div>
<div class="form-group">
<label for="staffExp">Experience*</label>
<input type="text" id="staffExp" required>
</div>
</div>
<div class="form-group">
<label for="staffRate">Hourly Rate*</label>
<input type="number" id="staffRate" min="0" required>
</div>
<div class="modal-actions">
<button type="button" class="btn-secondary cancel">Cancel</button>
<button type="submit" class="btn-primary">Save Staff</button>
</div>
</form>
</div>
</div>
<!-- Hidden file inputs for download functionality -->
<input type="file" id="hiddenFileInput" style="display: none;" multiple accept=".xlsx,.xls">
<div id="overlay" class="overlay"></div>
<script>
const menuBtn = document.getElementById("menuToggle");
const nav = document.getElementById("mainNav");
const overlay = document.getElementById("overlay");
menuBtn.addEventListener("click", () => {
nav.classList.toggle("active");
overlay.classList.toggle("active");
});
overlay.addEventListener("click", () => {
nav.classList.remove("active");
overlay.classList.remove("active");
});
// Auto-close menu when selecting a tab
document.querySelectorAll(".nav-tab").forEach(tab => {
tab.addEventListener("click", () => {
if (window.innerWidth <= 992) {
nav.classList.remove("active");
overlay.classList.remove("active");
}
});
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<script src="./script.js"></script>
</body>
</html>