-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
74 lines (68 loc) · 2.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>ElasticSearch polygon geo location query</title>
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
#map-canvas {
height: 100%;
width: 100%;
}
.ui-widget {
background-color: #ccc;
}
</style>
<link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.10.4.min.css">
</head>
<body>
<div id="panel" class="jsb_ jsb_NewsWidget">
<input id="clearOverlays" type=button value="Hide Overlays">
<input id="showOverlays" type=button value="Show All Overlays">
<input id="deleteOverlays" type=button value="Delete Overlays">
<input id="hideInfoWindow" type=button value="Hide InfoWindow">
<!-- <button type="button" class="jsb_ jsb_NotificationWidget">test</button> -->
<form id="queryform" action="hm...">
<input id="search" type="text" placeholder="<searchterm>" />
<input type="submit" value="query" />
</form>
</div>
<div id="map-canvas"></div>
<script type="text/javascript" src="js/require.js"></script>
<script type="text/javascript">
requirejs.config({
baseUrl: 'js/',
urlArgs: "cb=" + (new Date()).getTime(),
waitSeconds : 120,
paths: {
"jquery": "lib/jquery-ui/jquery-1.10.2",
"jqueryui": "lib/jquery-ui/jquery-ui-1.10.4.min",
"jsb": "lib/jsb",
"async": 'require/src/async'
},
shim: {
"jqueryui": {
deps: ["jquery"]
},
"jsb": {
deps: ["jquery"]
}
}
});
requirejs.onError = function (error) {
if (window.console && console.log) {
console.log("RequireJS error:", error);
if (error.requireType === 'timeout') {
console.log('RequireJS Modules: ' + error.requireModules);
}
}
throw error;
};
require(['jsb'], function() {
jsb.applyBehaviour(document.body);
});
</script>
</body>
</html>