-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (54 loc) · 1.59 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image Annotation Tool</title>
<style>
body {
font-family: Arial, sans-serif;
}
#container {
display: flex;
flex-direction: column;
align-items: center;
}
#canvas {
border: 1px solid black;
cursor: crosshair;
}
.controls {
margin: 10px;
display: flex;
flex-direction: column;
align-items: center;
}
.controls > * {
margin: 5px;
}
.line-options {
display: flex;
flex-direction: column;
align-items: center;
}
</style>
</head>
<body>
<div id="container">
<input type="file" id="upload" accept="image/*">
<canvas id="canvas"></canvas>
<div class="controls">
<button id="export-json">Export as JSON</button>
<button id="delete-mode">Toggle Eraser Mode</button>
<button id="brightness-increase">Increase Brightness</button>
<button id="brightness-decrease">Decrease Brightness</button>
<button id="contrast-increase">Increase Contrast</button>
<button id="contrast-decrease">Decrease Contrast</button>
<div class="line-options">
<input type="color" id="line-color" value="#000000">
</div>
</div>
</div>
<script src="app.js"></script>
</body>
</html>