-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
36 lines (35 loc) · 1.46 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wasm Image Editor</title>
<link rel="stylesheet" href="resources/app.css">
</head>
<body>
<div class="sidebar">
<h1>Upload a photo:</h1>
<input type="file" accept="image/jpeg, image/png" />
<h3><div id="operation-time"></div></h3>
<h1>Filters:</h1>
<p><button id="reset">Reset filter(s)</button></p>
<div class="list">
<p><button id="grayscale-js">Grayscale filter by JavaScript</button></p>
<p><button id="grayscale-wasm">Grayscale filter by WebAssembly</button></p>
<p><button id="opacity-wasm">Opacity by WebAssembly</button></p>
<p><button id="red-wasm">Red filter by WebAssembly</button></p>
<p><button id="strong-red-wasm">Strong Red filter by WebAssembly</button></p>
<p><button id="blue-wasm">Blue filter by WebAssembly</button></p>
<p><button id="strong-blue-wasm">Strong Blue filter by WebAssembly</button></p>
<p><button id="green-wasm">Green filter by WebAssembly</button></p>
<p><button id="strong-green-wasm">Strong Green filter by WebAssembly</button></p>
<p><button id="sepia-js">Sepia filter by JavaScript</button></p>
<p><button id="sepia-wasm">Sepia filter with u8 <-> f32 (unoptimized) by WebAssembly</button></p>
</div>
</div>
<div class="area">
<img id="image" src="resources/Carta_Marina.jpeg" height="600" />
</div>
<script src="resources/app.js"></script>
</body>
</html>