forked from mobz/elasticsearch-head
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (51 loc) · 1.85 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>ElasticSearch Head</title>
<link rel="stylesheet" href="lib/es/es.css">
<link rel="stylesheet" href="lib/jsacx/src/jsacx-widgets.css">
<script src="lib/jsacx/src/jquery.js"></script>
<script src="lib/jsacx/src/jsacx.js"></script>
<script src="lib/nohtml/jquery.acx-nohtml.js"></script>
<script src="lib/lang/en_strings.js"></script>
<script>
(function() {
var script0 = document.getElementsByTagName('script')[0];
var userLang = window.navigator.language || window.navigator.userLanguage;
userLang && ['fr'].forEach( function( lang ) {
if( userLang.indexOf( lang ) === 0 ) {
var s = document.createElement("script");
s.src = 'lib/lang/' + lang + '_strings.js';
script0.parentNode.insertBefore(s, script0);
}
});
}());
</script>
<script src="lib/jsacx/src/jsacx-widgets.js"></script>
<script src="lib/jsacx/src/jsacx-fields.js"></script>
<script src="lib/jsacx/src/jsacx-data.js"></script>
<script src="lib/es/core.js"></script>
<script src="lib/es/widgets.js"></script>
<script src="lib/graphael/g.raphael.standalone.js"></script>
<script src="lib/dateRangeParser/date-range-parser.js"></script>
<script>
$(function() {
if(location.href.contains("/_plugin/")) {
var base_uri = location.protocol + "//" + location.host + "/";
}
var args = location.search.substring(1).split("&").reduce(function(r, p) {
r[decodeURIComponent(p.split("=")[0])] = decodeURIComponent(p.split("=")[1]); return r;
}, {});
new es.ElasticSearchHead("body", {
id: "es",
base_uri: args["base_uri"] || base_uri,
auth_user : args["auth_user"] || "",
auth_password : args["auth_password"]
});
});
</script>
<link rel="icon" href="lib/es/images/favicon.png" type="image/png">
</head>
<body></body>
</html>