-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.html
351 lines (307 loc) · 12.6 KB
/
help.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval';" />
<link rel="stylesheet" type="text/css" href="main.css">
<style>
.windows-xp-theme {
--adw-accent: #0055EA;
--adw-accent-hover: #0066FF;
--adw-bg: #ECE9D8;
--adw-card-bg: #FFFFFF;
--adw-border: #7BA2E7;
--adw-text: #000000;
--adw-text-muted: #666666;
--xp-blue: #0055EA;
--xp-gradient-start: #2A5AE0;
--xp-gradient-end: #0F3ACC;
--xp-border: #225AE5;
--adw-radius-sm: 3px;
--adw-radius-lg: 6px;
}
main {
padding: 24px;
overflow-y: scroll;
height: calc(100vh - 75px);
background: var(--adw-bg);
position: relative;
box-sizing: border-box;
}
/* GTK3-style scrollbar - updated for visibility */
::-webkit-scrollbar {
width: 12px;
height: 12px;
background-color: transparent;
}
::-webkit-scrollbar-track {
background-color: transparent;
border-radius: 8px;
margin: 3px;
}
::-webkit-scrollbar-thumb {
background-color: #919191;
border: 3px solid var(--adw-bg);
border-radius: 8px;
min-height: 40px;
}
::-webkit-scrollbar-thumb:hover {
background-color: #757575;
margin: 3px;
}
::-webkit-scrollbar-thumb:active {
background-color: #666666;
}
/* Dark mode scrollbar */
@media (prefers-color-scheme: dark) {
::-webkit-scrollbar-thumb {
background-color: #666666;
border: 3px solid var(--adw-bg);
}
::-webkit-scrollbar-thumb:hover {
background-color: #808080;
}
::-webkit-scrollbar-thumb:active {
background-color: #919191;
}
}
.content-section {
background: var(--adw-card-bg);
border-radius: var(--adw-radius-lg);
padding: var(--spacing-xl);
margin-bottom: var(--spacing-xl);
}
h1,
h2,
h3 {
color: var(--adw-text);
margin-top: 0;
}
.feature {
background: var(--adw-bg);
border-radius: var(--adw-radius-sm);
padding: var(--spacing-l);
margin-bottom: var(--spacing-l);
}
.tip {
background: var(--adw-accent);
color: white;
border-radius: var(--adw-radius-sm);
padding: var(--spacing-l);
margin: var(--spacing-l) 0;
}
ul,
ol {
padding-left: var(--spacing-xl);
}
li {
margin-bottom: var(--spacing-s);
}
/* New styles for table of contents */
.toc {
background: var(--adw-bg);
border-radius: var(--adw-radius-sm);
padding: var(--spacing-l);
margin-bottom: var(--spacing-xl);
}
.toc ul {
list-style-type: none;
padding-left: 0;
}
.toc li {
margin-bottom: var(--spacing-s);
}
.toc a {
color: var(--adw-accent);
text-decoration: none;
-webkit-user-drag: none;
}
.toc a:hover {
text-decoration: underline;
}
/* Windows XP Theme Overrides */
.windows-xp-theme ::-webkit-scrollbar {
width: 16px;
height: 16px;
background-color: var(--adw-bg);
}
.windows-xp-theme ::-webkit-scrollbar-track {
background-color: var(--adw-card-bg);
border: 1px solid var(--adw-border);
border-radius: 0;
}
.windows-xp-theme ::-webkit-scrollbar-thumb {
background: linear-gradient(to right, #EEF3FB, #DCEAFD);
border: 1px solid var(--adw-border);
border-radius: 0;
}
.windows-xp-theme ::-webkit-scrollbar-thumb:hover {
background: linear-gradient(to right, #F2F7FE, #E6F0FE);
}
.windows-xp-theme .about-content,
.windows-xp-theme .content-section {
border: 1px solid var(--adw-border);
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.windows-xp-theme .feature {
border: 1px solid var(--adw-border);
}
.windows-xp-theme .tip {
background: var(--xp-blue);
}
</style>
</head>
<body>
<div class="window-container">
<header class="headerbar">
<div class="headerbar-start">
</div>
<div id="WindowTitle">Help</div>
<div class="headerbar-end">
<div class="window-controls">
<button class="window-control minimize" tabindex="-1" aria-label="Minimize">
<svg width="16" height="16" viewBox="0 0 16 16">
<rect x="4" y="7" width="8" height="2" fill="currentColor" />
</svg>
</button>
<button class="window-control maximize" tabindex="-1" aria-label="Maximize">
<svg width="16" height="16" viewBox="0 0 16 16" class="maximize-icon">
<rect x="4" y="4" width="8" height="8" stroke="currentColor" fill="none" stroke-width="1" />
</svg>
<svg width="16" height="16" viewBox="0 0 16 16" class="restore-icon" style="display: none;">
<g fill="none" stroke="currentColor" stroke-width="1">
<rect x="4" y="6" width="6" height="6" />
<path d="M6 4h6v6" />
</g>
</svg>
</button>
<button class="window-control close" tabindex="-1" aria-label="Close">
<svg width="16" height="16" viewBox="0 0 16 16">
<path d="M5 5l6 6m0-6l-6 6" stroke="currentColor" stroke-width="1.5" />
</svg>
</button>
</div>
</div>
</header>
<main>
<div class="content-section">
<h1>EMS Media System Help Guide</h1>
<p>EMS Media System allows you to play videos, display images, and stream media content on secondary
displays. The application features a control window for preview and management, with fullscreen
presentation capabilities.</p>
<div class="toc">
<h2>Contents</h2>
<ul>
<li><a href="#media-playback" onclick="saveLastSection('media-playback')">Media Playback</a>
</li>
<li><a href="#stream-integration" onclick="saveLastSection('stream-integration')">Stream
Integration</a></li>
<li><a href="#display-settings" onclick="saveLastSection('display-settings')">Display
Settings</a></li>
<li><a href="#presentation-mode" onclick="saveLastSection('presentation-mode')">Presentation
Mode</a></li>
<li><a href="#keyboard-shortcuts" onclick="saveLastSection('keyboard-shortcuts')">Keyboard
Shortcuts</a></li>
</ul>
</div>
</div>
<div id="media-playback" class="content-section">
<h2>Media Playback</h2>
<div class="feature">
<h3>Local Media</h3>
<ul>
<li>Click the "Media" tab to access local media files</li>
<li>Use the "Open" button to select videos or images from your computer</li>
<li>Preview your media in the control window before presentation</li>
<li>Control playback using play, pause, and seek functions</li>
</ul>
</div>
</div>
<div id="stream-integration" class="content-section">
<div class="feature">
<h3>Stream Integration</h3>
<ul>
<li>Select the "Streams" tab for network media content</li>
<li>Enter the URL of your YouTube live stream or other network media</li>
<li>Adjust volume using the slider in the control panel</li>
<li>Note: Stream preview is not available in the control window</li>
</ul>
</div>
</div>
<div id="display-settings" class="content-section">
<div class="feature">
<h3>Display Settings</h3>
<ul>
<li>Choose your target display from the dropdown menu</li>
<li>Note: Your display resolution will be automatically detected</li>
<li>Toggle "Autoplay" for automatic media playback</li>
<li>Enable "Repeat" for looped playback</li>
</ul>
</div>
</div>
<div id="presentation-mode" class="content-section">
<h2>Presentation Mode</h2>
<ol>
<li>Select your desired media or stream</li>
<li>Configure your display settings</li>
<li>Adjust volume if needed</li>
<li>Click "Start Presentation" to begin fullscreen mode on the secondary display</li>
</ol>
<div class="tip">
<strong>Tip:</strong> All playback controls in the control window will be reflected in the
fullscreen presentation on the secondary display.
</div>
</div>
<div id="keyboard-shortcuts" class="content-section">
<h2>Keyboard Shortcuts</h2>
<ul>
<li><strong>Space</strong> - Play/Pause</li>
<li><strong>F5</strong> - Start fullscreen presentation</li>
<li><strong>Esc</strong> - Exit fullscreen presentation</li>
</ul>
</div>
</main>
</div>
<script defer>
const storedSessionID = localStorage.getItem('sessionID');
windowControls.getSessionID().then((currentSessionID) => {
const storedSessionID = localStorage.getItem('sessionID');
if (!storedSessionID || storedSessionID !== currentSessionID) {
console.log("Session ID changed or not set, clearing local storage...");
localStorage.clear();
localStorage.setItem('sessionID', currentSessionID);
} else {
scrollToLastSection();
}
});
function saveLastSection(sectionId) {
localStorage.setItem('lastSection', sectionId);
}
function scrollToLastSection() {
const lastSection = localStorage.getItem('lastSection');
if (lastSection) {
document.getElementById(lastSection)?.scrollIntoView();
}
}
const minimizeButton = document.querySelector('.window-control.minimize');
const maximizeButton = document.querySelector('.window-control.maximize');
const closeButton = document.querySelector('.window-control.close');
minimizeButton.addEventListener('click', windowControls.minimize);
maximizeButton.addEventListener('click', windowControls.maximize);
closeButton.addEventListener('click', close);
windowControls.onMaximizeChange((event, isMaximized) => {
maximizeButton.setAttribute('data-maximized', isMaximized);
document.querySelector('.window-container').classList.toggle('maximized', isMaximized);
});
function saveLastSection(sectionId) {
localStorage.setItem('lastSection', sectionId);
}
function scrollToLastSection() {
const lastSection = localStorage.getItem('lastSection');
if (lastSection) {
document.getElementById(lastSection)?.scrollIntoView();
}
}
</script>
</body>
</html>