-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
66 lines (61 loc) · 2.58 KB
/
Copy pathindex.html
File metadata and controls
66 lines (61 loc) · 2.58 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Shader Playground</title>
<link rel="stylesheet" href="./app.css" />
</head>
<body class="min-h-dvh text-foreground bg-gray-800">
<main class="flex flex-col gap-2 p-2">
<section class="flex items-center justify-center gap-2 overflow-x-auto">
<button class="px-3 border border-gray-500 disabled:opacity-50">Play</button>
<input
class="min-w-80 flex-1 px-3 border border-gray-500"
type="url"
id="videoUrl"
value="https://rqbit.anitrack.frixaco.com/torrents/0/stream/0/[SubsPlease]%20Fate%20Strange%20Fake%20-%2008%20(1080p)%20[1E8A7377].mkv"
/>
<input class="px-3 border border-gray-500" type="file" id="inputImg" accept="image/*" />
<button id="processBtn" class="px-3 disabled:opacity-50 border border-gray-500">
Process
</button>
<button id="benchmarkBtn" class="px-3 disabled:opacity-50 border border-gray-500" disabled>
Benchmark
</button>
<button id="saveBtn" class="px-3 disabled:opacity-50 border border-gray-500" disabled>
Save output PNG
</button>
<div class="relative">
<pre id="status" class="max-w-80 overflow-auto px-3 text-sm whitespace-pre-wrap"></pre>
<div
id="benchmarkPopup"
class="absolute top-0 right-0 z-10 hidden min-w-80 border border-gray-500 p-2"
>
<div class="flex items-start justify-between gap-2">
<pre id="benchmarkMeta" class="text-sm whitespace-pre-wrap"></pre>
<button id="benchmarkCloseBtn" class="px-2 border border-gray-500">Close</button>
</div>
</div>
</div>
</section>
<section class="flex flex-col gap-2">
<div id="comparison" class="group relative aspect-video w-full overflow-hidden">
<img
id="original"
class="absolute inset-0 h-full w-full object-fill"
alt="Original source preview"
/>
<canvas id="canvas" class="absolute inset-0 hidden h-full w-full object-fill"></canvas>
<div
id="comparisonEmpty"
class="absolute inset-x-3 bottom-3 p-2 group-has-[#original[src]]:hidden sm:inset-x-auto sm:left-3"
>
<strong class="block text-sm">No image loaded</strong>
</div>
</div>
</section>
</main>
<script type="module" src="./main.ts"></script>
</body>
</html>