-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (45 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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style>
body,html{
padding: 0; margin: 0;
}
</style>
<link href="css/imagecomment.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-3.1.1.min.js"></script>
<script src="js/jcanvas.min.js"></script>
<script src="js/canvas2image.js"></script>
<script src="js/imagecomment.js"></script>
<script>
$(document).ready(function(){
var im=new ImageComment({
//you can input parameter here.
canvasWrapper:"canvasWrapper",
loadImageInput:"libtn",
confirmbtn:"confirmbtn",
circleBtn:"ucbtn",
rectBtn:"urbtn",
textBtn:"utbtn",
clearCanvasBtn:"ccbtn",
exportBtn:"eibtn"
});
im._init();
})
</script>
</head>
<body>
<div style="text-align: center;margin: 15px 0;">
<input id="libtn" type="text" placeholder="Input the image url here." value="" />
<input id="confirmbtn" type="button" value="Go to Comment"/> |
<input id="urbtn" type="button" value="Add Rectangle Mark" />
<input id="ucbtn" type="button" value="Add Circle Mark" />
<input id="utbtn" type="button" value="Add Text" />
<input id="ccbtn" type="button" value="Remove Selected Mark" />
<input id="eibtn" type="button" value="Export" />
</div>
<div id="canvasWrapper"></div>
</body>
</html>