Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
80 lines (68 loc) · 2.75 KB
/
Copy pathindex.html
File metadata and controls
80 lines (68 loc) · 2.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Algorithm Visualizer</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<h1>WebP Algorithm Visualizer</h1>
<!-- controls -->
<div class="controls">
<div class="form-group">
<label for="fileInput">Select Image</label>
<input type="file" id="fileInput" accept=".png, .jpg, .jpeg, .jfif">
</div>
<div class="form-group">
<label for="algoSelect">Algorithm</label>
<select id="algoSelect">
<option value="BUBBLE_SORT"> Bubble Sort </option>
<option value="COMB_SORT"> Comb Sort </option>
<option value="INSERT_SORT"> Insert Sort </option>
<option value="SELECT_SORT"> Select Sort </option>
<option value="SHAKER_SORT"> Shaker Sort </option>
<option value="QUICK_SORT"> Quick Sort </option>
<option value="MERGE_SORT"> Merge Sort </option>
<option value="HEAP_SORT"> Heap Sort </option>
<option value="SEAM_CARVING"> Seam Carving </option>
</select>
</div>
<div class="form-group">
<label for="rowHeight">Row Height (<span id="maxHeightLabel">max: -</span>)</label>
<input type="number" id="rowHeight" value="1" min="1">
</div>
<div class="form-group">
<label for="delay">Frame Delay (ms)</label>
<input type="number" id="delay" value="50" min="10" step="5">
</div>
<div class="form-group">
<label for="quality">Quality (<span id="qualityVal">80</span>)</label>
<input type="range" id="quality" value="80" min="0" max="100">
</div>
<div id="performanceWarning" class="warning-box hidden">
Warning: Visualization generation is slow ...
</div>
<!--
<div class="form-group checkbox-group">
<input type="checkbox" id="reverse">
<label for="reverse">Reverse Animation</label>
</div>
-->
<button id="processBtn" disabled>Loading WASM...</button>
</div>
<!-- output -->
<div class="output">
<div class="spinner" id="spinner"></div>
<p class="status" id="statusText">Awaiting image...</p>
<img id="resultImg" alt="Generated WebP Animation">
<a id="downloadBtn" download="animated.webp" tag="button">
<button>Download WebP</button>
</a>
</div>
</div>
<script src="AlgoVisualizer_wasm.js"></script>
<script src="script.js"></script>
</body>
</html>