-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
176 lines (176 loc) · 10.1 KB
/
index.html
File metadata and controls
176 lines (176 loc) · 10.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
<!DOCTYPE html>
<html>
<head>
<title>Clip Library</title>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=Figtree:wght@400;500&family=Geist:wght@400;500&family=Inter:wght@400;500&family=Manrope:wght@400;500&family=Outfit:wght@400;500&family=Plus+Jakarta+Sans:wght@400;500&family=Public+Sans:wght@400;500&family=Roboto:wght@400;500&family=Space+Grotesk:wght@400;500&family=Work+Sans:wght@400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css" />
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/2.3.3/purify.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@24,400,1" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&icon_names=stadia_controller" />
</head>
<body>
<!-- Secret Easter Egg Overlay -->
<div id="secret-overlay" class="secret-overlay" style="display: none;">
<img src="https://i.pinimg.com/736x/db/95/e1/db95e1ed08f7009ee11afbe79b4857a3.jpg" alt="">
</div>
<div id="app-content">
<div id="export-toast" class="export-toast">
<div class="export-toast-content">
<div class="export-toast-header">
<svg class="export-icon" viewBox="0 0 24 24">
<path d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"/>
</svg>
<div class="export-text">
<h3 class="export-title">Exporting...</h3>
<p class="export-progress-text">0%</p>
</div>
</div>
</div>
</div>
<div id="loading-screen">
<div class="loading-content">
<div class="logo-container">
<div class="particle-field"></div>
<img src="assets/title.png" alt="App Logo and Title" class="app-logo-title">
</div>
</div>
<div class="blur-layer"></div>
</div>
<div id="clip-counter-container">
<div id="clip-counter">Clips: 0</div>
<div id="controller-indicator" class="controller-indicator" style="display: none;" title="Controller Connected">
<span class="material-symbols-rounded">stadia_controller</span>
</div>
</div>
<div id="top-bar">
<button id="settingsButton" aria-label="Settings">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="3"></circle>
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>
</svg>
</button>
<div id="search-filter-pill">
<div id="search-container">
<input type="text" id="search-input" placeholder="Search clips...">
</div>
<div id="tagv2-filter" class="tagv2-filter">
<button id="tagv2-button">Tags <span id="tagv2-count">(0/0)</span></button>
<div id="tagv2-dropdown" class="tagv2-dropdown">
<div class="tagv2-search-container">
<input type="text" id="tagv2-search" placeholder="Search tags...">
</div>
<div class="tagv2-actions">
<button id="tagv2-select-all">Select All</button>
<button id="tagv2-deselect-all">Deselect All</button>
</div>
<div id="tagv2-list" class="tagv2-list"></div>
</div>
</div>
</div>
</div>
<div id="clip-grid"></div>
<div id="context-menu" class="context-menu">
<div id="context-menu-export" class="context-menu-item">Export</div>
<div id="context-menu-tags" class="context-menu-item">
Manage Tags
<div id="tags-dropdown" class="tags-dropdown" style="display: none;">
<div class="tag-search-container">
<input type="text" id="tag-search-input" placeholder="Search tags...">
<button id="add-tag-button">+</button>
</div>
<div id="tag-list" class="tag-list"></div>
</div>
</div>
<div id="context-menu-reset-trim" class="context-menu-item">Reset Trim Times</div>
<div id="context-menu-reveal" class="context-menu-item">Reveal in Explorer</div>
<div id="context-menu-delete" class="context-menu-item">Delete</div>
</div>
</div>
<div id="custom-modal" class="modal">
<div class="modal-content">
<p id="modal-message"></p>
<div class="modal-buttons">
<button id="modal-ok">OK</button>
<button id="modal-cancel" style="display: none;">Cancel</button>
</div>
</div>
</div>
<div id="player-overlay" style="display: none">
<div id="player-container">
<button id="prev-video" class="video-nav-button"><</button>
<button id="next-video" class="video-nav-button">></button>
<canvas id="ambient-glow-canvas" class="hidden" width="10" height="6" aria-hidden="true"></canvas>
<div id="fullscreen-player" style="display: none">
<div id="video-container">
<div id="video-click-target"></div>
<video id="video-player"></video>
<div id="loading-overlay" style="display: none;">
<div class="loading-spinner"></div>
</div>
</div>
<div id="video-controls">
<div id="bottom-controls">
<div class="left-controls">
<div id="current-time">0:00</div>
<div id="speed-container">
<button id="speed-button" title="Playback Speed">
<span id="speed-text">1x</span>
</button>
<input type="range" id="speed-slider" min="0.5" max="2" step="0.25" value="1" class="collapsed">
</div>
<button id="fullscreen-button" aria-label="Fullscreen">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/>
</svg>
</button>
<input type="text" id="clip-title" placeholder="Clip Title" />
<div id="volume-container">
<button id="volume-button" aria-label="Volume">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#e8eaed"><path d="M753.85-481q0-82.5-44.21-150.58-44.21-68.09-118.56-101.88-11.54-5.46-17-16.31-5.46-10.84-1.34-22.12 4.95-12.03 17.18-16.72 12.23-4.7 24.77.77 90.46 41.07 144.81 123.6 54.34 82.52 54.34 183.23 0 100.7-54.34 183.24-54.35 82.54-144.81 123.61-12.54 5.47-24.77.77-12.23-4.69-17.18-16.72-4.12-11.28 1.34-22.12 5.46-10.85 17-16.31 74.35-33.79 118.56-101.88Q753.85-398.5 753.85-481ZM294.62-380H182.31q-15.37 0-25.76-10.4-10.39-10.39-10.39-25.76v-127.68q0-15.37 10.39-25.76 10.39-10.4 25.76-10.4h112.31l119.69-119.69q14.38-14.38 33.11-6.49 18.73 7.89 18.73 28.18v396q0 20.29-18.73 28.18-18.73 7.89-33.11-6.49L294.62-380Zm351.53-99.96q0 37.43-15.54 70.85-15.53 33.42-41.88 56.19-8.5 5.69-17.85 1.15-9.34-4.54-9.34-15v-228.46q0-10.46 9.34-15 9.35-4.54 17.85 1.09 26.35 23.45 41.88 57.6 15.54 34.16 15.54 71.58ZM406.15-606l-86 86h-114v80h114l86 86v-252Zm-100 126Z"/></svg>
</button>
<input type="range" id="volume-slider" min="0" max="2" step="0.1" value="1" class="collapsed">
</div>
</div>
<div class="right-controls">
<div id="total-time">0:00</div>
<div class="button-tooltip-container">
<button id="export-button">Export</button>
<div class="tooltip">
Click: Export video to clipboard<br>
Ctrl + Click: Save video as...<br>
Shift + Click: Export audio to clipboard<br>
Ctrl + Shift + Click: Save audio as...
</div>
</div>
<button id="share-button" class="share-hidden" aria-label="Publish" title="Publish">
<svg class="action-icon-svg" viewBox="0 0 24 24" aria-hidden="true">
<path d="M5 20v-2h14v2H5Zm6-4V8.83l-3.59 3.58L6 11l6-6 6 6-1.41 1.41L13 8.83V16h-2Z"></path>
</svg>
</button>
<button id="delete-button" aria-label="Delete">
<svg class="action-icon-svg" viewBox="0 0 24 24" aria-hidden="true">
<path d="M7 21q-.825 0-1.412-.587Q5 19.825 5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413Q17.825 21 17 21H7Zm10-15H7v13h10V6ZM9 17h2V8H9v9Zm4 0h2V8h-2v9Z"></path>
</svg>
</button>
</div>
</div>
<div id="trim-controls">
<div id="progress-bar-container">
<div id="progress-bar"></div>
<div id="trim-start"></div>
<div id="trim-end"></div>
<div id="playhead"></div>
<div id="timeline-preview" className="timeline-preview">
<canvas id="preview-canvas" width="160" height="90"></canvas>
<div id="preview-timestamp"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="renderer.js"></script>
</body>
</html>