-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (63 loc) · 1.56 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
<!DOCTYPE html>
<html>
<head>
<title>Image sorter</title>
<script type="module" src="src/main.js"></script>
<style>
@media (prefers-color-scheme: dark) {
body {
background: #222;
color: #fff;
}
}
</style>
</head>
<body>
<noscript>
JS is required for this program to work.
<style>
body *:not(noscript) {
display: hidden;
}
</style>
</noscript>
<p>
Upload an image, paste it, or drag and drop it<br />
<button onclick="document.getElementById('upload').click()">
Upload
</button>
<input type="file" value="Upload" id="upload" hidden />
</p>
<canvas></canvas>
<div class="controls">
<p>
<input id="descending" type="checkbox" />
<label for="descending">Descending</label>
</p>
<p>
<label for="sortDirection">Sort direction</label>
<select id="sortDirection">
<option value="global">Global</option>
<option value="line">By line</option>
<option value="column">By column</option>
</select>
</p>
<p>
<label for="sortBy">Sort by</label>
<select id="sortBy">
<option value="rgba">RGBA</option>
<option value="abgr">ABGR</option>
<option value="red">Red</option>
<option value="green">Green</option>
<option value="blue">Blue</option>
<option value="alpha">Alpha</option>
<option value="hue">Hue</option>
<option value="saturation">Saturation</option>
<option value="lightness">Lightness</option>
</select>
</p>
<button id="exec">Sort</button>
<button id="restore">Restore</button>
</div>
</body>
</html>