This repository was archived by the owner on Mar 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.html
202 lines (179 loc) · 10.4 KB
/
client.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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Reactive CEP</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Google Maps-->
<script src="https://maps.googleapis.com/maps/api/js"></script>
<!--JQuery-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!--Bootstrap-->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!--JQuery QueryBuilder-->
<script src="https://cdn.jsdelivr.net/npm/jQuery-QueryBuilder/dist/js/query-builder.standalone.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/jQuery-QueryBuilder/dist/css/query-builder.default.min.css" rel="stylesheet">
<script src="./js/rcep.min.js"></script>
<!--local configs-->
<script src="./js/initmarkers.js"></script>
<script src="./js/configmaps.js"></script>
<link href="./css/style.css" rel="stylesheet">
</head>
<body>
<!-- Modal -->
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title"></h4>
</div>
<div class="modal-body"></div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="panel panel-default main-panel">
<div class="panel-heading">Reactive CEP Example</div>
<div class="panel-body">
<div class="panel panel-default">
<div class="panel-body">
<form>
<div class="row" id="firstRow">
<div class="col-sm-6 form-inline alignTextCenter">
<h4>Distance Pattern Type</h4>
<div class="form-group">
<select class="form-control" id="pattype">
<option value="minDistancePattern">Min Distance Pattern</option>
<option value="maxDistancePattern">Max Distance Pattern</option>
<option value="avgDistancePattern">Average Distance Pattern</option>
</select>
</div>
</div>
<div class="col-sm-6 form-inline alignTextCenter">
<h4>Window</h4>
<div class="form-group">
<select class="form-control" id="wintype">
<option value="tumblingCountWindow">Tumbling Count Window</option>
<option value="slidingCountWindow">Sliding Count Window</option>
<option value="hoppingCountWindow">Hopping Count Window</option>
<option value="tumblingTemporalWindow">Tumbling Temporal Window</option>
<option value="hoppingTemporalWindow">Hopping Temporal Window</option>
</select>
</div>
<div class="form-group">
<input type="number" class="form-control winOptions" id="windowSize" placeholder="size" min="0" required>
<input type="number" class="form-control winOptions" id="size" placeholder="" min="0" disabled>
</div>
</div>
</div>
<div class="row latlon alignTextCenter">
<hr />
<h4>Location
<a href="#" data-toggle="tooltip" title="Drag the direction marker to set the location">
<i class="material-icons doubtLocation">help_outline</i>
</a>
</h4>
<div class="form-inline">
<div class="form-group">
<label for="latitude">Latitude:</label>
<input type="text" class="form-control" id="latitude" value="-8.008" readonly>
</div>
<div class="form-group marginLeft10">
<label for="longitude">Longitude:</label>
<input type="text" class="form-control" id="longitude" value="-34.891" readonly>
</div>
</div>
</div>
<hr />
<div class="alignTextCenter">
<h4>Pattern Assertion</h4>
<div class="row" style="text-align: start;">
<div class="col-md-3 col-lg-2"></div>
<div class="col-md-6 col-lg-8">
<div id="builderMin" class="builder"></div>
<div id="builderMax" style="display: none" class="builder"></div>
<div id="builderAvg" style="display: none" class="builder"></div>
</div>
<div class="col-md-3 col-lg-2"></div>
</div>
</div>
<hr />
<div class="row startPattern alignTextCenter">
<div class="form-inline">
<h4>New Event Type Id</h4>
<div class="form-group evtTypeParent">
<input type="text" class="form-control" id="newEventTypeId" required>
</div>
<div class="row setunset">
<div class="col-sm-6 col-sm-offset-3">
<button type="submit" style="display: none"></button>
<button class="btn btn-primary" onclick="validate()" id="setPattern" type="button">Set Pattern</button>
<button class="btn btn-primary" onclick="unset()" type="button" id="unsetPattern" disabled>Unset Pattern</button>
<button class="btn btn-success" type="button" id="viewCode" disabled>View Code</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
<div id="mapElement"></div>
<div class="table-responsive">
<table class="table" id="log">
<thead>
<tr>
<th>Event Type Id</th>
<th>Detection Time</th>
<th>JSON</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marker-animate-unobtrusive/0.2.8/vendor/markerAnimate.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marker-animate-unobtrusive/0.2.8/SlidingMarker.min.js"></script>
<script src="./js/parser-query.js"></script>
<!--Socket.io-->
<!--websocket-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.1.1/socket.io.js"></script>
<script>
function loadScript(src, callback){
var script = document.createElement('script');
if(callback != undefined)
script.onload = callback;
script.src = src;
document.head.appendChild(script);
}
function WhenGoogleLoadedDo(fnt){
if(typeof google != 'undefined' && (marker != undefined))
fnt();
else
setTimeout(function(){
WhenGoogleLoadedDo(fnt);
}, 500);
}
WhenGoogleLoadedDo(() => loadScript('./js/app.js', () => loadScript('./js/config.js')));
</script>
<script src="./js/bootstrap-notify.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap.min.css">
<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap.min.js"></script>
<link rel="stylesheet" href="./css/jquery.jsonview.min.css">
<script src="./js/jquery.jsonview.min.js"></script>
</body>
</html>