-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (48 loc) · 1.32 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="styles.css" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<title>Rotation Task</title>
</head>
<body>
<div class="container" id="container">
<div class="btnDiv">
<input
type="file"
id="fileInput"
onclick="this.value=null;"
accept=".jpg, .jpeg, .png"
style="display: none"
/>
<label for="fileInput" class="btnClass">Add Image</label>
<button
type="button"
onclick="rotateImg(parseFloat(document.getElementById('angleInput').value), 'left')"
class="btnClass"
>
Left
</button>
<button
type="button"
onclick="rotateImg(parseFloat(document.getElementById('angleInput').value), 'right')"
class="btnClass"
>
Right
</button>
<label class="inputClass">Angle</label>
<input
type="number"
id="angleInput"
class="inputClass"
placeholder="0"
min="0"
max="180"
/>
</div>
</div>
<script src="script.js" type="text/javascript"></script>
<script async src="opencv.js" type="text/javascript"></script>
</body>
</html>