-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
122 lines (113 loc) · 3.01 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<meta
name="description"
content="Player for local videos with keyboard shortcuts."
/>
<meta name="color-scheme" content="light dark" />
<title>Player for local videos</title>
<link rel="icon" href="icons/icon.svg" type="image/svg+xml" sizes="any" />
<link
rel="alternate icon"
href="icons/icon-180.png"
type="image/png"
sizes="180x180"
/>
<link
rel="apple-touch-icon"
href="icons/icon-180.png"
type="image/png"
sizes="180x180"
/>
<link rel="stylesheet" href="styles/main.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:wght,FILL@275,0..1&family=JetBrains+Mono"
rel="stylesheet"
/>
<link rel="manifest" href="app.webmanifest" />
<script src="scripts/script.js" defer></script>
<div class="droppable" id="drag-panel">
<span id="message">Drag and drop a video</span>
<button type="button" id="file-picker">Choose file</button>
</div>
<div id="drop-overlay" hidden></div>
<div class="droppable" id="player" hidden>
<video id="video"></video>
<div id="controls" aria-controls="video">
<input
type="range"
aria-label="Video bar"
value="0"
step="any"
tabindex="-1"
id="video-bar"
/>
<button
type="button"
aria-label="Rewind 10 seconds"
class="material-symbols-rounded"
id="replay-btn"
>
replay_10
</button>
<button
type="button"
aria-label="Toggle play/pause"
class="material-symbols-rounded"
id="play-btn"
tabindex="1"
>
play_arrow
</button>
<button
type="button"
aria-label="Forward 10 seconds"
class="material-symbols-rounded"
id="forward-btn"
>
forward_10
</button>
<button
type="button"
aria-label="Toggle time indicator"
id="time-indicator-toggle"
data-state="default"
>
<time role="timer" id="time-indicator">00:00</time>
<time role="timer" id="duration-or-finish-at"></time>
</button>
<div aria-label="Video name" id="file-name-container">
<span id="file-name"></span>
</div>
<input
type="number"
aria-label="Speed controls"
value="1.00"
min="0.1"
max="16"
step="0.1"
id="speed-controls"
/>
<button
type="button"
aria-label="Toggle zoom"
class="material-symbols-rounded"
id="zoom-btn"
>
zoom_out_map
</button>
<button
type="button"
aria-label="Toggle fullscreen"
class="material-symbols-rounded"
id="fullscreen-btn"
>
fullscreen
</button>
</div>
</div>
</html>