-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
957 lines (899 loc) · 33.1 KB
/
index.html
File metadata and controls
957 lines (899 loc) · 33.1 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
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Giulia - Advanced OBD2 Telemetry</title>
<link rel="canonical" href="https://my-giulia.com/" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
/>
<link
rel="stylesheet"
href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
/>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<link rel="stylesheet" href="./src/style.css" />
</head>
<body class="spa-mode landing-active docs-body">
<nav class="top-nav">
<div class="nav-container">
<div class="integrated-toolbar">
<button class="nav-icon-btn" onclick="toggleFullScreen()">
<i class="fas fa-expand"></i>
</button>
<button
class="nav-icon-btn"
onclick="toggleSidebar()"
title="Toggle Sidebar"
>
<i class="fas fa-bars"></i>
</button>
<button class="nav-icon-btn info-btn" onclick="toggleInfo()">
<i class="fas fa-info-circle"></i>
</button>
<div class="toolbar-separator"></div>
<button
class="tool-btn"
id="authBtn"
onclick="handleAuth()"
title="Scan Drive"
>
<i class="fab fa-google-drive"></i>
<span class="desktop-label">Drive</span>
</button>
<button
class="tool-btn"
onclick="document.getElementById('fileInput').click()"
title="Open Local"
>
<i class="fas fa-folder-open"></i>
<span class="desktop-label">Open</span>
</button>
<button class="tool-btn" onclick="resetZoom()" title="Reset Zoom">
<i class="fas fa-sync-alt"></i>
</button>
</div>
<div class="view-switcher-container">
<button
id="btn-create-math"
class="view-btn btn-full-width"
onclick="openMathModal()"
disabled
>
<i class="fas fa-calculator"></i>
</button>
<button
id="btn-mode-stack"
class="view-btn"
disabled
onclick="toggleViewMode('stack')"
>
<i class="fas fa-stream"></i>
</button>
<button
disabled
id="btn-mode-overlay"
class="view-btn"
onclick="toggleViewMode('overlay')"
>
<i class="fas fa-layer-group"></i>
</button>
<button
disabled
id="btn-xy-analysys"
class="view-btn"
onclick="openXYModal()"
>
<i class="fas fa-braille"></i>
</button>
<button
id="btn-hist"
disabled
class="view-btn"
onclick="histogram_openModal()"
>
<i class="fas fa-chart-bar"></i>
</button>
</div>
<div class="nav-links">
<a
href="https://github.com/tzebrowski/ObdGraphs"
target="_blank"
class="nav-link"
title="GitHub"
>
<i class="fab fa-github"></i>
</a>
<div class="nav-divider"></div>
<a
href="index.html"
class="nav-btn-primary"
title="Return to Landing Page"
>
<i class="fas fa-home"></i>
<span>Home</span>
</a>
</div>
</div>
</nav>
<main id="landing-page">
<section class="hero">
<h1>My Giulia</h1>
<p>
Advanced telemetry and diagnostics for the Alfa Romeo enthusiast.
Native support for 2.0 GME, 2.2 Multijet, and 2.9 QV engines.
</p>
<div class="hero-buttons">
<a href="#analyzer" class="btn-green btn-brand-red">
<i class="fas fa-chart-line"></i> Launch Analyzer
</a>
<a
href="https://play.google.com/store/apps/details?id=org.obd.graphs.my.giulia"
class="btn-green"
>
<i class="fab fa-google-play"></i> Download App
</a>
</div>
<div class="video-grid">
<div class="video-container">
<iframe
src="https://www.youtube.com/embed/SJe4QkUgMKs"
title="My Giulia Telemetry Tutorial"
allow="
accelerometer;
autoplay;
clipboard-write;
encrypted-media;
gyroscope;
picture-in-picture;
web-share;
"
allowfullscreen
></iframe>
</div>
<div class="video-container">
<iframe
src="https://www.youtube.com/embed/ctQZKFzSG80"
title="My Giulia Advanced Features"
allow="
accelerometer;
autoplay;
clipboard-write;
encrypted-media;
gyroscope;
picture-in-picture;
web-share;
"
allowfullscreen
></iframe>
</div>
</div>
</section>
<section class="features">
<div class="feature-card">
<i class="fas fa-car-side"></i>
<h3>Native Vehicle Support</h3>
<p>
Advanced telemetry and diagnostics for the Alfa Romeo enthusiast.
Native support for 2.0 GME, 2.2 Multijet, and 2.9 QV engines.
</p>
</div>
<div class="feature-card">
<i class="fab fa-google-drive"></i>
<h3>Cloud Synchronization</h3>
<p>
Seamlessly upload your recorded trip logs to Google Drive from the
mobile app and access them instantly here for advanced analysis.
</p>
</div>
<div class="feature-card">
<i class="fas fa-mobile-alt"></i>
<h3>Android Auto Integration</h3>
<p>
Dedicated dashboards for performance metrics and trip information
directly on your car's screen.
</p>
</div>
<div class="feature-card">
<i class="fas fa-bell"></i>
<h3>Advanced Alerting</h3>
<p>
Set custom upper and lower thresholds for individual metrics to
monitor engine health in real-time.
</p>
</div>
<div class="feature-card">
<i class="fas fa-database"></i>
<h3>Data Logging</h3>
<p>
Automatically record trip data and review historical telemetry
sessions at any time.
</p>
</div>
<div class="feature-card">
<i class="fas fa-cogs"></i>
<h3>Configurable Views</h3>
<p>
Visualize data through multiple gauge types, including Boost, MAF,
and Oil Temperature.
</p>
</div>
<div class="feature-card">
<i class="fas fa-user-circle"></i>
<h3>Vehicle Profiles</h3>
<p>
Create customizable profiles with vehicle-specific settings and
external PID configurations via JSON.
</p>
</div>
</section>
<section class="tech-specs">
<div class="container text-center">
<h2>Hardware & Connectivity</h2>
<p>
Compatible with high-performance adapters including ELM327 and
STN1170/STN2120.
</p>
<div class="spec-tags">
<span class="tag">STNxxx Support</span>
<span class="tag">ObdMetrics Framework</span>
<span class="tag">Bluetooth</span>
<span class="tag">Wi-Fi</span>
<span class="tag">USB</span>
</div>
</div>
</section>
</main>
<main id="analyzer-page">
<div class="app-container">
<div class="sidebar" id="sidebar">
<button
class="mobile-close-btn"
onclick="toggleSidebar()"
aria-label="Close sidebar"
>
<i class="fas fa-times"></i>
</button>
<h2>My Giulia Telemetry Analyzer</h2>
<div
class="control-group gray-box source-container"
id="driveListContainer"
>
<h3 class="group-header">Cloud Files</h3>
<input
type="file"
id="fileInput"
class="hidden"
accept=".csv,.json,.gz,application/json,text/plain,application/gzip"
/>
<div id="driveList" class="drive-list-modern">
<div class="empty-drive-msg">
<i class="fab fa-google-drive"></i>
<br />
Click <strong>Drive Scan</strong> in the top toolbar to load
your logs.
</div>
</div>
<div id="fileInfo" class="status-text-subtle"></div>
</div>
<div
id="projectUnifiedPanel"
class="control-group gray-box"
style="
display: flex;
flex-direction: column;
gap: 16px;
padding: 12px;
"
>
<div
class="group-header-row"
style="
display: flex;
justify-content: space-between;
align-items: flex-end;
border-bottom: 1px solid var(--border-color);
padding-bottom: 8px;
cursor: pointer;
"
>
<div>
<span
style="
display: block;
font-size: 0.7em;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 2px;
"
>Active Session</span
>
<h3
id="projectNameDisplay"
style="
margin: 0;
font-size: 1.1em;
line-height: 1.2;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 180px;
"
>
Default Project
</h3>
</div>
<div style="display: flex; gap: 6px">
<button
class="btn-icon"
onclick="editProjectName()"
title="Rename Project"
style="
width: 24px;
height: 24px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
"
>
<i class="fas fa-pen" style="font-size: 0.8em"></i>
</button>
</div>
</div>
<div id="librarySlot"></div>
<div
id="historySlot"
style="
border-top: 1px solid var(--border-color);
padding-top: 12px;
"
>
<h4
style="
margin: 0 0 8px 0;
font-size: 0.85em;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-muted);
"
>
Session Timeline
</h4>
<div
id="projectHistoryList"
class="history-list custom-scrollbar"
style="max-height: 180px; overflow-y: auto"
></div>
<div style="margin-top: 10px">
<button
id="btnReplayProject"
class="btn btn-sm btn-primary"
style="
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
"
onclick="replayProjectHistory()"
>
<i class="fas fa-play"></i> Replay Steps
</button>
</div>
</div>
</div>
<div class="control-group gray-box">
<h3>Anomaly Scanner</h3>
<p class="section-description">
Define rules (e.g., Temp > 100) to quickly locate specific events.
</p>
<div class="mb-10">
<select
id="anomalyTemplate"
onchange="applyTemplate()"
class="template-select"
>
<option value="">-- Load a Template --</option>
</select>
</div>
<div id="filtersContainer"></div>
<button class="btn btn-add" onclick="addFilterRow()">
+ Add Condition
</button>
<button class="btn btn-primary mt-10" onclick="scanAnomalies()">
Scan Log
</button>
<div id="scanCount" class="result-count"></div>
<div id="scanResults" class="results-list"></div>
</div>
<div class="control-group flex-grow gray-box">
<div class="group-header-row">
<h3>Signals</h3>
<div class="button-row-sw">
<button class="btn btn-sm" onclick="toggleAllSignals(true)">
All
</button>
<button class="btn btn-sm" onclick="toggleAllSignals(false)">
None
</button>
</div>
</div>
<p class="section-description">
Search and select signals to display on the chart.
</p>
<div id="signalList" class="signal-list"></div>
</div>
<div class="control-group gray-box">
<h3>Settings & Preferences</h3>
<p class="section-description">
Customize the theme, colors, and cloud integration.
</p>
<div class="preferences-list">
<div class="pref-item">
<div class="pref-info">
<span class="pref-title">Dark Mode</span>
<span class="pref-desc">Switch to a dark visual theme</span>
</div>
<label class="switch">
<input type="checkbox" id="pref-theme-dark" />
<span class="slider-round"></span>
</label>
</div>
<hr />
<div class="pref-item">
<div class="pref-info">
<span class="pref-title">Show GPS Map</span>
<span class="pref-desc">Display vehicle track on map</span>
</div>
<label class="switch">
<input type="checkbox" id="pref-load-map" checked />
<span class="slider-round"></span>
</label>
</div>
<div class="pref-item">
<div class="pref-info">
<span class="pref-title">Remember active files</span>
<span class="pref-desc">Remember recently viewed files.</span>
</div>
<label class="switch">
<input type="checkbox" id="pref-remember-files" checked />
<span class="slider-round"></span>
</label>
</div>
<div class="pref-item">
<div class="pref-info">
<span class="pref-title">Show Area Fills</span>
<span class="pref-desc"
>Switch to fill area bellow the chart</span
>
</div>
<label class="switch">
<input type="checkbox" id="pref-show-area-fills" />
<span class="slider-round"></span>
</label>
</div>
<hr />
<div class="pref-item">
<div class="pref-info">
<span class="pref-title">Smooth Lines</span>
<span class="pref-desc"
>Interpolate points for smoother curves</span
>
</div>
<label class="switch">
<input type="checkbox" id="pref-smooth-lines" />
<span class="slider-round"></span>
</label>
</div>
<hr />
<div class="pref-item">
<div class="pref-info">
<span class="pref-title">Color Palette</span>
<span class="pref-desc"
>Override theme colors with your own</span
>
</div>
<label class="switch">
<input type="checkbox" id="pref-custom-palette" />
<span class="slider-round"></span>
</label>
</div>
<hr />
<div class="pref-subgroup">
<div class="pref-item">
<div class="pref-info">
<span class="pref-title">Google Drive Integration</span>
<span class="pref-desc">Cloud access configuration</span>
</div>
<button
class="btn btn-sm btn-add"
id="toggle-drive-config"
onclick="toggleDriveConfig()"
>
<i class="fas fa-cog"></i> Config
</button>
</div>
<div id="configPanel" class="config-panel">
<input
type="text"
id="gClientId"
placeholder="Enter Google Client ID"
class="mb-8"
/>
<button
class="btn btn-primary btn-sm"
onclick="saveDriveConfig()"
>
Save ID
</button>
</div>
</div>
<hr />
<div class="pref-item">
<div class="pref-info">
<span class="pref-title">Remember Layout</span>
<span class="pref-desc">Persist collapsed sections</span>
</div>
<label class="switch">
<input type="checkbox" id="pref-persistence" checked />
<span class="slider-round"></span>
</label>
</div>
<div class="pref-item">
<div class="pref-info">
<span class="pref-title">High Performance</span>
<span class="pref-desc">Reduce chart rendering overhead</span>
</div>
<label class="switch">
<input type="checkbox" id="pref-performance" />
<span class="slider-round"></span>
</label>
</div>
</div>
</div>
</div>
<div id="resizer" class="resizer"></div>
<div class="main-content" id="mainContent">
<div id="chartContainer">
<div id="empty-state" class="empty-state-container">
<div class="empty-state-content">
<i class="fas fa-chart-area empty-icon"></i>
<h3>No Telemetry Loaded</h3>
<p>
Start by scanning your Google Drive or uploading a local JSON
trip log.
</p>
<div class="empty-state-actions">
<button
class="btn btn-primary mobile-only-btn"
onclick="toggleSidebar()"
>
<i class="fas fa-folder-open"></i> Open Log Source
</button>
<button class="btn" onclick="loadSampleData(false)">
<i class="fas fa-vial"></i> Load Sample Trip
</button>
</div>
</div>
</div>
</div>
<div id="mapContainer" class="map-view-container hidden"></div>
<div id="dropZone" class="drop-zone">
<div class="drop-zone-content">
<i class="fas fa-file-upload"></i>
<p>Drag & Drop telemetry JSON here or <span>browse</span></p>
<input type="file" id="fileInputDropZone" accept=".json" hidden />
</div>
</div>
</div>
</div>
<div id="loadingOverlay" class="loading-overlay hidden">
<div class="spinner"></div>
<div id="loadingText">Loading...</div>
<button id="cancelLoadBtn" class="btn">Cancel</button>
</div>
<div id="infoModal" class="modal-overlay">
<div class="modal-content">
<div class="modal-header">
<h2>Application Overview</h2>
<button class="btn-close" onclick="toggleInfo()">×</button>
</div>
<div class="modal-body">
<p class="app-description">
<strong>My Giulia Telemetry Analyzer:</strong> A professional tool
for visualizing and scanning vehicle OBD data. Compare multiple
logs, sync timelines, and detect mechanical anomalies
automatically.
</p>
<div class="info-grid">
<div class="info-card data-source-card grid-span-2">
<h4>📱 Data Source</h4>
<div class="data-source-flex">
<img
src="https://lh3.googleusercontent.com/d_S-jY_V_7z9_x_W5y_6z5z6z5z6z5z6z5z6z5z6z5z6z5z6z5z6z5z6z5z6z5z6=s128"
alt="MyGiulia Logo"
class="app-icon"
onerror="
this.src =
'https://img.icons8.com/color/96/google-play.png'
"
/>
<div class="data-source-text">
<p>
Telemetry data is collected by the
<strong>MyGiulia</strong> Android application.
</p>
<a
href="https://play.google.com/store/apps/details?id=org.obd.graphs.my.giulia"
target="_blank"
class="play-store-btn"
>
<img
src="https://upload.wikimedia.org/wikipedia/commons/7/78/Google_Play_Store_badge_EN.svg"
alt="Get it on Google Play"
height="30"
/>
</a>
</div>
</div>
</div>
<div class="info-card grid-span-2">
<h4>📥 How to Import Logs</h4>
<ol class="import-steps">
<li>
Open <strong>MyGiulia</strong> on your Android device.
</li>
<li>
Navigate to the <strong>Graph</strong> view and select
<strong>Manage recorded trips</strong>.
</li>
<li>
Select your log and tap <strong>Send to Cloud</strong>.
</li>
<li>
Upload the file here using the
<strong>"Upload Log"</strong> button.
</li>
</ol>
<div class="sample-data-box">
<p>No log files handy? Try this real-world trip profile:</p>
<button class="btn btn-sample" onclick="loadSampleData(true)">
📂 Load Sample Trip (JSON)
</button>
</div>
</div>
<div class="info-card">
<h4>⌨️ Keyboard Shortcuts</h4>
<ul class="shortcuts-list">
<li><strong>A</strong> - Add Annotation at cursor</li>
<li><strong>E</strong> - Export visible area to CSV</li>
<li><strong>L</strong> - Toggle Floating Legend</li>
<li>
<strong>Arrows</strong> - Pan Left/Right (Shift for faster)
</li>
<li><strong>+ / -</strong> - Zoom In / Out</li>
<li><strong>R</strong> - Reset View</li>
</ul>
</div>
<div class="info-card">
<h4>🔍 Anomaly Scanning</h4>
<p>
Uses logic templates to pinpoint events like boost leaks with
contextual zoom.
</p>
</div>
<div class="info-card">
<h4>🔄 Multi-Sync</h4>
<p>
Pan or zoom on any chart to automatically align all loaded
logs.
</p>
</div>
<div class="info-card">
<h4>📚 Technical Guides</h4>
<p class="guide-text">Deep dive into engine parameters.</p>
<a
href="help_spark.html"
target="_blank"
class="btn-secondary guide-btn"
>
<i class="fas fa-bolt guide-icon"></i>
Spark Advance Guide
</a>
</div>
</div>
<div class="modal-footer">
<div class="modal-preferences">
<label class="custom-checkbox-container">
<input type="checkbox" id="hideInfoCheckbox" />
<span class="checkmark"></span>
<span class="label-text">Don't show this again</span>
</label>
<button id="closeInfoBtn" class="btn btn-primary">
Got it!
</button>
</div>
</div>
</div>
</div>
</div>
<div id="customAlert" class="modal-overlay hidden">
<div class="modal-content alert-modal">
<div class="modal-header alert-header">
<h2 id="alertTitle">Notification</h2>
<button class="btn-close" onclick="hideAlert()">×</button>
</div>
<div class="modal-body">
<p id="alertMessage"></p>
</div>
<div class="modal-footer">
<button class="btn btn-primary" onclick="hideAlert()">OK</button>
</div>
</div>
</div>
<div id="xyModal" class="modal-overlay">
<div class="modal-content xy-modal-container">
<div class="modal-header">
<h2>XY Scatter Analysis</h2>
<button class="btn-close" onclick="closeXYModal()">×</button>
</div>
<div class="modal-body xy-modal-body">
<div class="xy-global-toolbar">
<label class="xy-toolbar-label">Log File:</label>
<select
id="xyGlobalFile"
class="template-select xy-file-select"
onchange="onFileChange()"
></select>
<button class="btn btn-auto" onclick="resetAllZooms()">
<i class="fas fa-compress-arrows-alt"></i> Reset All
</button>
</div>
<div id="xySplitView" class="xy-split-view">
<div class="xy-panel border-right">
<div class="xy-panel-toolbar">
<div class="flex-1-min-0">
<div class="label-tiny">X Axis</div>
<select id="xyX-0" class="template-select w-full"></select>
</div>
<div class="flex-1-min-0">
<div class="label-tiny">Y Axis</div>
<select id="xyY-0" class="template-select w-full"></select>
</div>
<div class="flex-1-min-0">
<div class="label-tiny">Z Axis (Color)</div>
<select id="xyZ-0" class="template-select w-full"></select>
</div>
<button class="btn btn-primary btn-plot" onclick="plot(0)">
Plot
</button>
</div>
<div class="xy-chart-area">
<div class="flex-1-relative">
<canvas id="xyCanvas-0"></canvas>
</div>
<div id="xyLegend-0" class="xy-legend-strip hidden"></div>
</div>
</div>
<div class="xy-panel">
<div class="xy-panel-toolbar">
<div class="flex-1-min-0">
<div class="label-tiny">X Axis</div>
<select id="xyX-1" class="template-select w-full"></select>
</div>
<div class="flex-1-min-0">
<div class="label-tiny">Y Axis</div>
<select id="xyY-1" class="template-select w-full"></select>
</div>
<div class="flex-1-min-0">
<div class="label-tiny">Z Axis (Color)</div>
<select id="xyZ-1" class="template-select w-full"></select>
</div>
<button class="btn btn-primary btn-plot" onclick="plot(1)">
Plot
</button>
</div>
<div class="xy-chart-area">
<div class="flex-1-relative">
<canvas id="xyCanvas-1"></canvas>
</div>
<div id="xyLegend-1" class="xy-legend-strip hidden"></div>
</div>
</div>
</div>
<div id="xyTimelineView" class="xy-timeline-container">
<div class="timeline-header">
<i class="fas fa-clock"></i> Timeline Reference (Active Signals)
</div>
<div class="flex-1-relative">
<canvas id="xyTimelineCanvas"></canvas>
</div>
</div>
</div>
</div>
</div>
<div id="mathModal" class="modal-overlay">
<div class="modal-content">
<div class="modal-header">
<h2>Create Math Channel</h2>
<button class="btn-close" onclick="closeMathModal()">×</button>
</div>
<div class="modal-body">
<div class="control-group">
<label>Select Formula:</label>
<select
id="mathFormulaSelect"
class="template-select"
onchange="onMathFormulaChange()"
></select>
</div>
<div
id="mathDescriptionContainer"
class="math-desc-container hidden"
>
<p id="mathFormulaDescription" class="math-desc-text"></p>
</div>
<div id="mathInputsContainer" class="math-inputs-list"></div>
<div
id="mathNameContainer"
class="control-group math-name-box hidden"
>
<label>New Channel Name:</label>
<input
type="text"
id="mathChannelName"
placeholder="e.g. My Boost Pressure"
class="math-name-input"
/>
</div>
</div>
<div class="modal-footer math-modal-footer">
<button
id="btnCreate"
class="btn btn-primary"
onclick="createMathChannel()"
>
Create Channel
</button>
</div>
</div>
</div>
</main>
<div class="footer">
<p>
© 2026 Tomasz Żebrowski. All rights reserved.<br />
<em
>MyGiulia is an independent project and is not affiliated with any
vehicle manufacturer.</em
>
</p>
<div class="footer-links-container">
<a href="policy.html" class="footer-link-item">
<i class="fas fa-shield-alt"></i> Privacy Policy
</a>
<span id="appVersion" class="app-version-container"></span>
</div>
</div>
<script type="module" src="./src/config.js"></script>
<script type="module" src="./src/signalregistry.js"></script>
<script type="module" src="./src/alert.js"></script>
<script type="module" src="./src/auth.js"></script>
<script type="module" src="./src/drive.js"></script>
<script type="module" src="./src/chartmanager.js"></script>
<script type="module" src="./src/ui.js"></script>
<script type="module" src="./src/analysis.js"></script>
<script type="module" src="./src/dataprocessor.js"></script>
<script type="module" src="./src/entry.js"></script>
<script type="module" src="./src/debounce.js"></script>
<script type="module" src="./src/xyanalysis.js"></script>
<script type="module" src="./src/bus.js"></script>
<script type="module" src="./src/navigation.js"></script>
<script type="module" src="./src/mathchannels.js"></script>
<script type="module" src="./src/projectmanager.js"></script>
<script type="module" src="./src/mapmanager.js"></script>
</body>
</html>