Skip to content

Commit 856743a

Browse files
author
Tyler Ayers
committed
added appinsights, fixed #7
1 parent 7f1abd3 commit 856743a

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

AzureResourceWeb/wwwroot/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@
1515
<link rel="icon"
1616
type="image/png"
1717
href="img/calendar-icon.png">
18+
19+
<!-- App Insights integration -->
20+
<script type="text/javascript">
21+
var appInsights = window.appInsights || function (a) {
22+
function b(a) { c[a] = function () { var b = arguments; c.queue.push(function () { c[a].apply(c, b) }) } } var c = { config: a }, d = document, e = window; setTimeout(function () { var b = d.createElement("script"); b.src = a.url || "https://az416426.vo.msecnd.net/scripts/a/ai.0.js", d.getElementsByTagName("script")[0].parentNode.appendChild(b) }); try { c.cookie = d.cookie } catch (a) { } c.queue = []; for (var f = ["Event", "Exception", "Metric", "PageView", "Trace", "Dependency"]; f.length;)b("track" + f.pop()); if (b("setAuthenticatedUserContext"), b("clearAuthenticatedUserContext"), b("startTrackEvent"), b("stopTrackEvent"), b("startTrackPage"), b("stopTrackPage"), b("flush"), !a.disableExceptionTracking) { f = "onerror", b("_" + f); var g = e[f]; e[f] = function (a, b, d, e, h) { var i = g && g(a, b, d, e, h); return !0 !== i && c["_" + f](a, b, d, e, h), i } } return c
23+
}({
24+
instrumentationKey: "cb92c4f3-6e72-4fe5-886d-291f8d8d9a8a"
25+
});
26+
27+
window.appInsights = appInsights, appInsights.queue && 0 === appInsights.queue.length && appInsights.trackPageView();
28+
</script>
1829
</head>
1930
<body>
2031
<a href="https://github.com/tyayers/AzureResourceDiff"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png" alt="Fork me on GitHub"></a>

AzureResourceWeb/wwwroot/view-detail.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@
1717
<link rel="icon"
1818
type="image/png"
1919
href="img/calendar-icon.png">
20+
21+
<!-- App Insights integration -->
22+
<script type="text/javascript">
23+
var appInsights = window.appInsights || function (a) {
24+
function b(a) { c[a] = function () { var b = arguments; c.queue.push(function () { c[a].apply(c, b) }) } } var c = { config: a }, d = document, e = window; setTimeout(function () { var b = d.createElement("script"); b.src = a.url || "https://az416426.vo.msecnd.net/scripts/a/ai.0.js", d.getElementsByTagName("script")[0].parentNode.appendChild(b) }); try { c.cookie = d.cookie } catch (a) { } c.queue = []; for (var f = ["Event", "Exception", "Metric", "PageView", "Trace", "Dependency"]; f.length;)b("track" + f.pop()); if (b("setAuthenticatedUserContext"), b("clearAuthenticatedUserContext"), b("startTrackEvent"), b("stopTrackEvent"), b("startTrackPage"), b("stopTrackPage"), b("flush"), !a.disableExceptionTracking) { f = "onerror", b("_" + f); var g = e[f]; e[f] = function (a, b, d, e, h) { var i = g && g(a, b, d, e, h); return !0 !== i && c["_" + f](a, b, d, e, h), i } } return c
25+
}({
26+
instrumentationKey: "cb92c4f3-6e72-4fe5-886d-291f8d8d9a8a"
27+
});
28+
29+
window.appInsights = appInsights, appInsights.queue && 0 === appInsights.queue.length && appInsights.trackPageView();
30+
</script>
2031
</head>
2132
<body>
2233
<a href="https://github.com/tyayers/AzureResourceDiff"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png" alt="Fork me on GitHub"></a>

0 commit comments

Comments
 (0)