Fixed sample HTTP REST call to dhis api (pair programming)
[u/erikhf/frm.git] / src / index.html
CommitLineData
4bf38478
EHF
1<!DOCTYPE html>
2<html lang="en">
3<head>
4 <meta charset="UTF-8">
5 <title>Sample App</title>
36d9daeb
EHF
6 <script>
7 var xhReq = new XMLHttpRequest();
8 xhReq.open("GET", "../manifest.webapp", false);
9 xhReq.send(null);
10 var serverResponse = JSON.parse(xhReq.responseText);
11 var dhisAPI = serverResponse.activities.dhis.href;
12 </script>
4bf38478
EHF
13 <script src="../node_modules/systemjs/dist/system.src.js"></script>
14 <script src="../node_modules/angular2/bundles/angular2.dev.js"></script>
36d9daeb 15 <script src="../node_modules/angular2/bundles/http.dev.js"></script>
28765058 16 <script src="../node_modules/angular2/bundles/router.dev.js"></script>
b1a582c2
EHF
17 <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
18 <script src="../node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
19 <link type="text/css" href="../node_modules/bootstrap/dist/css/bootstrap.min.css">
28765058
EHF
20
21
22
4bf38478
EHF
23 <script>
24 System.config({
322acf94 25 packages: {'components': {defaultExtension: 'js'}}
4bf38478 26 });
28765058 27 System.import('components/app');
4bf38478
EHF
28 </script>
29</head>
30<body>
28765058 31 <mou-app>loading...</mou-app>
4bf38478
EHF
32</body>
33</html>