-
Notifications
You must be signed in to change notification settings - Fork 2
/
plugin.html
38 lines (31 loc) · 1.16 KB
/
plugin.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
<!DOCTYPE html>
<html>
<head>
<title>Plugin test</title>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1"/>
<script src="http://code.jquery.com/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="dhis2/dhis2.util.js"></script>
<script type="text/javascript" src="dhis2/dhis2.storage.js"></script>
<script type="text/javascript" src="dhis2/dhis2.storage.idb.js"></script>
<script type="text/javascript" src="dhis2/dhis2.storage.ss.js"></script>
<script type="text/javascript" src="dhis2/dhis2.storage.memory.js"></script>
<script src="./build/eventchart.js"></script>
<style>div {margin-bottom:10px;}</style>
</head>
<body>
<div class="r" id="r1"></div>
<div class="r" id="r2"></div>
<div class="r" id="r3"></div>
<script>
var r1 = { id: "WIxuUpm5m4U", el: "r1" };
//var r2 = { id: "SEMVWsnVblY", el: "r2" };
//var r3 = { id: "KJFbpIymTAo", el: "r3" };
eventChartPlugin.url = '//localhost:8080';
eventChartPlugin.username = 'admin';
eventChartPlugin.password = 'district';
eventChartPlugin.loadingIndicator = true;
eventChartPlugin.load(r1);
</script>
</body>
</html>