-
Notifications
You must be signed in to change notification settings - Fork 2
/
page.html
101 lines (92 loc) · 3.84 KB
/
page.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hello World</title>
<script src="sdk/VSS.SDK.js"></script>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
<link type="text/css" rel="stylesheet" href="bootstrap.min.css"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="sdk/bootstrap.min.js"></script>
</head>
<body>
<script type="text/javascript"> VSS.init({
explicitNotifyLoaded: true,
usePlatformScripts: true,
usePlatformStyles: true
});
</script>
<script>
function addEvent(obj, event, func) {
if (obj.addEventListener) {
obj.addEventListener(event, func, false);
return true;
} else if (obj.attachEvent) {
obj.attachEvent('on' + event, func);
} else {
var f = obj['on' + event];
obj['on' + event] = typeof f === 'function' ? function() {
f();
func();
} : func
}
}
</script>
<div id="Tabs">
<ul id="container" class="nav nav-tabs">
<script type="text/javascript"> VSS.require(["out/Tabs"], function (dashboard) { }); </script>
<script type="text/javascript">
$(document).ready(function()
{
$('.nav').on('click', 'li', function()
{
$('.nav li').removeClass('active');
$(this).addClass('active');
});
/*$("ul").delegate("li", "click", function()
{
//$('ul li').removeClass('active');
$("li").addClass("active");
});*/
});
</script>
</ul>
</div>
<div id="Features">
<h2>Features in progress</h2>
<script type="text/javascript"> VSS.require(["out/Features"], function (dashboard) { }); </script>
</div>
<div id="PBI">
<h2>Product backlog items</h2>
<script type="text/javascript"> VSS.require(["out/PBIs"], function (dashboard) { }) ;
addEvent(document.getElementById('PBI'), 'click', function() {
var vsoContext = VSS.getWebContext();
var extensionContext = VSS.getExtensionContext();
var baseUrl = vsoContext.host.uri;
console.log(baseUrl);
window.parent.location.href = vsoContext.host.uri
+ vsoContext.project.name
+ "/_backlogs";
});
</script>
</div>
<div id="Burnchart">
<h2>Burnchart</h2>
<img id="imgBurnChart">
<script type="text/javascript"> VSS.require(["out/burnchart"], function (dashboard) { }) ; </script>
</div>
<div id="Quality">
<h2>Quality Stats - Current Sprint</h2>
<script type="text/javascript"> VSS.require(["out/Quality"], function (dashboard) { }); </script>
</div>
<div id="Build">
<h2>Last Build</h2>
<script type="text/javascript"> VSS.require(["out/build"], function (dashboard) { }); </script>
</div>
<div id="BuildStatus">
<h2>Build Status</h2>
<canvas id="canvasChart" height="225" width="350"></canvas>
<script type="text/javascript" src="out/Chart.js"> </script>
<script type="text/javascript"> VSS.require(["out/buildChart"], function (dashboard) { }); </script>
</div>
</body>
</html>