forked from flipbit/jquery-image-annotate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo-static.html
78 lines (72 loc) · 2.03 KB
/
demo-static.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<html>
<head>
<title>Image Annotations</title>
<style type="text/css" media="all">@import "css/annotation.css";</style>
<script type="text/javascript" src="dist/js/jquery.min.js"></script>
<script type="text/javascript" src="dist/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/jquery.annotate.js"></script>
<style>
.image-annotate-canvas {
background-size: cover
}
#image-annotate-edit-form {
z-index: 1
}
#image-annotate-edit-form {
width: 310px;
height: 160px;
background: #fff
}
#image-annotate-edit-form textarea {
width: 300px;
height: 100px
}
.image-annotate-area-editable-hover div {
border: none !important
}
.image-annotate-area {
border: none;
}
.image-annotate-area div {
color: white;
border: none;
border-bottom: 1px solid white;
}
</style>
<script language="javascript">
$(window).load(function () {
$("#toAnnotate").annotateImage({
editable: true,
useAjax: false,
notes: [
{
"top": 286,
"left": 161,
"width": 300,
"height": 30,
"label": "Label 1",
"text": "Small people on the steps",
"id": "e69213d0-2eef-40fa-a04b-0ed998f9f1f5",
"editable": false
},
{
"top": 134,
"left": 179,
"width": 300,
"height": 30,
"label": "Label 2",
"text": "National Gallery Dome",
"id": "e7f44ac5-bcf2-412d-b440-6dbb8b19ffbe",
"editable": true
}
]
});
});
</script>
</head>
<body>
<div>
<img id="toAnnotate" src="images/trafalgar-square-annotated.jpg" alt="Trafalgar Square" width="600" height="398"/>
</div>
</body>
</html>