Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
122 lines (109 loc) · 5.19 KB
/
Copy pathindex.html
File metadata and controls
122 lines (109 loc) · 5.19 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Welcome Light Visualizer v0.1</title>
<script src="templates.js"></script>
<script src="vehicles.js"></script>
<script src="config.js"></script>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h2>Advanced Welcome Light Visualizer</h2>
<div class="selector-row">
<div>
<label for="templateSelect" class="selector-label">Load Template:</label>
<select id="templateSelect" onchange="loadSelectedTemplate(); buildDynamicFields(); updateURLParams()">
<option value="">-- Select a Template --</option>
</select>
</div>
<div>
<label for="vehicleSelect" class="selector-label">Vehicle Model:</label>
<select id="vehicleSelect" onchange="buildDynamicFields(); updateURLParams()">
<!-- Populated dynamically -->
</select>
</div>
</div>
<div class="main-section">
<!-- Group 1: FLM2 left [0x43] -->
<div class="group-container">
<h3>FLM2 Left [0x43]</h3>
<label for="leftStaging1" id="label_leftStaging1">Staging1_Data (max 252 Byte):<span class="byte-counter-info"
id="counter_leftStaging1"></span></label>
<div class="input-row">
<input type="text" id="leftStaging1" placeholder="252 Byte, z.B. 00, 01, ..." />
<button class="copy-btn" title="Copy to Clipboard" onclick="copyToClipboard('leftStaging1')">⧉</button>
<button class="paste-btn" title="Paste from Clipboard" onclick="pasteFromClipboard('leftStaging1')">⤶</button>
</div>
<label for="leftStaging2" id="label_leftStaging2">Staging2_Data (max 168 Byte):<span class="byte-counter-info"
id="counter_leftStaging2"></span></label>
<div class="input-row">
<input type="text" id="leftStaging2" placeholder="168 Byte, z.B. 00, 01, ..." />
<button class="copy-btn" title="Copy to Clipboard" onclick="copyToClipboard('leftStaging2')">⧉</button>
<button class="paste-btn" title="Paste from Clipboard" onclick="pasteFromClipboard('leftStaging2')">⤶</button>
</div>
</div>
<!-- Group 2: FLM2 right [0x44] -->
<div class="group-container">
<h3>FLM2 Right [0x44]</h3>
<label for="rightStaging1" id="label_rightStaging1">Staging1_Data (max 252 Byte):<span class="byte-counter-info"
id="counter_rightStaging1"></span></label>
<div class="input-row">
<input type="text" id="rightStaging1" placeholder="252 Byte, z.B. 00, 01, ..." />
<button class="copy-btn" title="Copy to Clipboard" onclick="copyToClipboard('rightStaging1')">⧉</button>
<button class="paste-btn" title="Paste from Clipboard" onclick="pasteFromClipboard('rightStaging1')">⤶</button>
</div>
<label for="rightStaging2" id="label_rightStaging2">Staging2_Data (max 168 Byte):<span class="byte-counter-info"
id="counter_rightStaging2"></span></label>
<div class="input-row">
<input type="text" id="rightStaging2" placeholder="168 Byte, z.B. 00, 01, ..." />
<button class="copy-btn" title="Copy to Clipboard" onclick="copyToClipboard('rightStaging2')">⧉</button>
<button class="paste-btn" title="Paste from Clipboard" onclick="pasteFromClipboard('rightStaging2')">⤶</button>
</div>
</div>
</div>
<div class="action-buttons">
<button onclick="buildDynamicFields()">Parse & Build Dynamic Fields</button>
<button onclick="clearAllFields(); buildDynamicFields()">Clear All</button>
<button onclick="copyAllFields()" title="Copy all four fields as JSON to clipboard">Copy All</button>
<button onclick="pasteAllFields()" title="Paste JSON with all four fields from clipboard">Paste All</button>
</div>
<div class="animation-player" id="animationPlayer">
<h3>Real-time Animation</h3>
<div class="controls">
<button onclick="togglePlay()">Play/Pause</button>
<button onclick="stopAnimation()">Stop</button>
<label for="speedSelect" class="speed-label">Speed:</label>
<select id="speedSelect" onchange="changeSpeed(this.value)">
<option value="0.5">0.5x</option>
<option value="1" selected>1.0x</option>
<option value="1.5">1.5x</option>
<option value="2">2.0x</option>
</select>
<span class="time-display" id="timeDisplay">0 ms</span>
<input type="range" id="seekSlider" min="0" max="10000" value="0" step="10" oninput="seekAnimation(this.value)">
<span class="time-display" id="totalTimeDisplay">0 ms</span>
</div>
<div class="lights-container">
<div class="light-group">
<h4 class="side-label-left">L</h4>
<div class="lights-grid" id="leftLights"></div>
</div>
<div class="light-group right-group">
<h4 class="side-label-right">R</h4>
<div class="lights-grid" id="rightLights"></div>
</div>
</div>
</div>
<div class="dynamic-container" id="dynamicContainer">
<!-- Dynamic Sequences + Diagrams -->
</div>
<script src="js/core.js"></script>
<script src="js/animation.js"></script>
<script src="js/svg-utils.js"></script>
<script src="js/chart.js"></script>
<script src="js/editor.js"></script>
<script src="js/timeline.js"></script>
<script src="js/init.js"></script>
</body>
</html>