forked from adhbh/app-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ejs
41 lines (29 loc) · 1.23 KB
/
index.ejs
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
<!DOCTYPE html>
<html ng-app='eRegistry'>
<head>
<title>E-Registry</title>
<meta name="description" content="DHIS 2">
<meta name="keywords" content="DHIS 2">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%= htmlWebpackPlugin.options.stylesheets(webpack.hash) %>
<script>
//Global variables
BASEURL = '<%= htmlWebpackPlugin.options.BASEURL %>'
BASEAPIURL = '<%= htmlWebpackPlugin.options.BASEAPIURL %>';
</script>
<%= htmlWebpackPlugin.options.vendorScripts %>
<script>
// Needs to be wrapped in jQuery to be sure the DOM is parsed as the script is not at the bottom.
jQuery(function () {
Dhis2HeaderBar.initHeaderBar(document.querySelector('#header'), BASEAPIURL, { noLoadingIndicator: true });
});
</script>
<script src="<%= htmlWebpackPlugin.options.BASEAPIURL %>/files/script"></script>
</head>
<body>
<div id="header"></div>
<div id="headerMessage"></div>
<div ng-view></div>
</body>
</html>