-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathia.html
184 lines (156 loc) · 5.82 KB
/
ia.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- load styles for instant annotations -->
<link rel="stylesheet" href="https://rawgit.com/semantifyit/instant-annotator/master/css/instantAnnotations.css"/>
<style>
h1,h4{
color: rgb(51, 51, 51);
font-family: Roboto, Helvetica, Arial, sans-serif;
}
h1{
font-size: 40px !important;
font-weight: bold;
}
h4{
font-size: 18px;
font-family: Roboto, Helvetica, Arial, sans-serif;
font-weight: 300;
}
h1, h2, h3, h4, h5 {
margin: 5px !important;
}
a, a:focus, a:hover {
color:#009688;
}
.container {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
@media (min-width:768px) {
.container {
width: 750px
}
}
@media (min-width:992px) {
.container {
width: 970px
}
}
@media (min-width:1200px) {
.container {
width: 1170px
}
}
.btn-group-vertical > .btn-group::after, .btn-group-vertical > .btn-group::before, .btn-toolbar::after, .btn-toolbar::before, .clearfix::after, .clearfix::before, .container-fluid::after, .container-fluid::before, .container::after, .container::before, .dl-horizontal dd::after, .dl-horizontal dd::before, .form-horizontal .form-group::after, .form-horizontal .form-group::before, .modal-footer::after, .modal-footer::before, .modal-header::after, .modal-header::before, .nav::after, .nav::before, .navbar-collapse::after, .navbar-collapse::before, .navbar-header::after, .navbar-header::before, .navbar::after, .navbar::before, .pager::after, .pager::before, .panel-body::after, .panel-body::before, .row::after, .row::before {
display:table;
content:" ";
}
.btn-group-vertical > .btn-group::after, .btn-toolbar::after, .clearfix::after, .container-fluid::after, .container::after, .dl-horizontal dd::after, .form-horizontal .form-group::after, .modal-footer::after, .modal-header::after, .nav::after, .navbar-collapse::after, .navbar-header::after, .navbar::after, .pager::after, .panel-body::after, .row::after {
clear:both;
}
.container-fluid > .navbar-collapse, .container-fluid > .navbar-header,
.container > .navbar-collapse, .container > .navbar-header {
margin-right: -15px;
margin-left: -15px
}
@media (min-width:768px) {
.container-fluid > .navbar-collapse, .container-fluid > .navbar-header,
.container > .navbar-collapse, .container > .navbar-header {
margin-right: 0;
margin-left: 0
}
}
body {
background-color:#EEE;
}
</style>
<title>Instant Annotation Demo</title>
</head>
<body>
<br/>
<div class="container">
<h1>Instant Annotation Demo</h1>
<br/>
<h4>Confused or need help, check out the documentation on github:
<a target="_blank" href="https://github.com/semantifyit/instant_annotator">README</a>
</h4>
<br/>
<div class="semantify-instant-annotations">
<div class="row">
<div id="divid1"></div>
<div id="divid2"></div>
<div id="divid3"></div>
<div id="divid4"></div>
<div id="divid5"></div>
</div>
</div>
</div>
<!-- load script for instant annotations-->
<script src="https://cdn.jsdelivr.net/gh/semantifyit/instant-annotator/dist/instantAnnotation.bundle.js"></script>
<script>
var settings = {
colClass: "col-lg-3 col-md-4 col-sm-6 col-xs-12",// OPTIONAL
panelIdPrefix: "IAPanel", //the prefix id of the panels OPTIONAL
uid:undefined, //your website-uid OPTIONAL
secret:undefined //your website-secret OPTIONAL
};
let annotation2= {
"@context": "http://schema.org/",
"@type": "Place",
"name": [
"1",
"2",
"3"
],
"description": "gh",
"address": {
"@type": [
"PostalAddress",
"Offer",
"Order"
],
"availability": "PreOrder",
"orderStatus": "OrderProcessing",
"name": [
"g1",
"g2"
],
"identifier": "g"
},
"identifier": "g"
};
InstantAnnotation.createIABox('divid1', 'vVAnlt2Q7', {withMultValues: true});
InstantAnnotation.createIABox('divid1', 'vVAnlt2Q7', {withMultValues: true, annotation: annotation2});
InstantAnnotation.createIABox('divid1', 'TQyCYm-r5', null);
let annotation = {
'@type': 'Event',
name: 'foo',
location: {
address: {
streetAddress: 'addre'
}
},
description: '0100010'
};
let options = {
annotation,
smtfySemantifyWebsiteUID: 'XWMhZ5jX_',
smtfySemantifyWebsiteSecret: 'ba10144ca5ee236355d562ee25352e0c',
};
InstantAnnotation.createIABox('divid2', 'SyqlG3b4Mkf', options);
InstantAnnotation.createIABox('divid3', null, {annotation});
let alertButton = {
name: 'Alert',
icon:'add_alert',
"onlyIcon": false,
onclick: function() { alert("Hello World")}
};
InstantAnnotation.createIABox('divid4', 'SyqlG3b4Mkf', {buttons: ['preview', alertButton]});
InstantAnnotation.createIABox('divid5', 'SyqlG3b4Mkf', {smtfyAnnotationUID: 'ZEbX5q3Xz'});
</script>
</body>
</html>