-
Notifications
You must be signed in to change notification settings - Fork 445
/
index.html
81 lines (66 loc) · 2.98 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
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="en">
<head>
<base href="<%= APP_BASE %>">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><%= APP_TITLE %></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="<%= APP_BASE %>assets/favicon/favicon-<%= ENV_CONFIG.ENV %>.ico" type="image/x-icon">
<!-- inject:css -->
<!-- endinject -->
<% if (TARGET_DESKTOP) { %>
<!-- shims:js -->
<!-- endinject -->
<% } %>
<% if (BUILD_TYPE === 'prod') { %>
<!-- segment.io -->
<script type="text/javascript">
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="3.1.0";
// REPLACE with your Segment.io write_key
analytics.load("XVDaTIQYy5g0akx5iTJmPozLKWFLkX6y");
analytics.page()
}}();
</script>
<% } %>
</head>
<body>
<sd-app>Loading...</sd-app>
<script defer>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', '<%= GOOGLE_ANALYTICS_ID %>', 'auto');
ga('send', 'pageview');
</script>
<script>
// Fixes undefined module function in SystemJS bundle
function module() {}
</script>
<% if (!TARGET_DESKTOP) { %>
<!-- shims:js -->
<!-- endinject -->
<% } %>
<% if (BUILD_TYPE === 'dev') { %>
<script src="<%= APP_BASE %>system-config.js"></script>
<% } %>
<!-- libs:js -->
<!-- endinject -->
<!-- inject:js -->
<!-- endinject -->
<% if (BUILD_TYPE === 'dev') { %>
<script>
System.import('<%= BOOTSTRAP_MODULE %>')
.catch(function (e) {
console.error(e.stack || e,
'Not expecting this error? Report it at https://github.com/NathanWalker/angular-seed-advanced/issues');
});
</script>
<% } %>
<% if (TARGET_DESKTOP && BUILD_TYPE !== 'prod') { %>
<script>require('electron-connect').client.create()</script>
<% } %>
</body>
</html>