-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreport.html
180 lines (158 loc) · 6.15 KB
/
report.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="assets/ico/favicon.png">
<title>TestRoots - WatchDog Eclipse Plugin - Project Reports</title>
<!-- Bootstrap core CSS -->
<link href="assets/css/bootstrap.css" rel="stylesheet">
<link href="assets/css/font-awesome.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="assets/css/main.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
<script>
(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','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-49032236-3', 'auto');
ga('require', 'displayfeatures');
ga('send', 'pageview');
</script>
</head>
<body>
<!-- Fixed navbar -->
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<img src="assets/img/testroots_small_white.png" />
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="index.html">HOME</a></li>
<li><a href="testroots_watchdog.html">WATCHDOG</a></li>
<li class="active"><a href="report.html">REPORT</a></li>
<li><a href="about.html">TEAM</a></li>
<li><a href="hiring.html">VACANCIES</a></li>
<li><a href="publications.html">PUBLICATIONS</a></li>
<li><a data-toggle="modal" data-target="#myModal" href="#myModal"><i class="fa fa-envelope-o"></i></a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<div id="blue">
<div class="container">
<div class="row centered">
<div class="col-lg-8 col-lg-offset-2">
<h4>Access your personal TestRoots WatchDog report here!</h4>
<p>YOUR REPORT IS UPDATED DAILY.</p>
</div>
</div><!-- row -->
</div><!-- container -->
</div><!-- bluewrap -->
<div class="container desc">
<div class="row centered"><h4>FIND YOUR TRUE DEVELOPER-SELF!</h4></div>
<div class="row">
<br><br>
<div class="col-lg-6 centered"><img src="assets/img/report.png" alt=""><br><br>
</div><!-- col-lg-6 -->
<div class="col-lg-6" style="vertical-align:middle">
<form id="reportform">
<p><label for="pid">Project-ID (PID) for which you want your report</label>
<br><input type="text" name="pid" id="pid" size="40" maxlength="40">
<input type="submit" value="Get Report!" id="getreport" disabled></p>
</form>
<p>Project reports are available for all projects with more than 100 transfered intervals.</p>
<p><a href="assets/papers/sample_watchdog_report.pdf">Sample Report.</a></p>
</div>
</div><!-- row -->
</div><!-- container -->
<!-- FOOTER -->
<div id="f">
<div class="container">
<div class="row centered">
<img src="assets/img/tudelft_logo.png" alt="">
</div><!-- row -->
</div><!-- container -->
</div><!-- Footer -->
<!-- MODAL FOR CONTACT -->
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">contact us</h4>
</div>
<div class="modal-body">
<div class="row centered">
<p>We would like to be in touch with you, so don't hesitate to contact us.</p>
<p><b>info -AT- testroots.org</b></p>
<p>
Software Engineering Research Group (SERG),<br />
The TestRoots Team<br />
Mekelweg 4<br/>
Delft, The Netherlands.<br/>
+31 15 278 2518<br/>
</p>
<div id="mapwrap">
<iframe width="100%" height="500" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.com/maps/embed/v1/place?q=Elektrotechniek%2C%20Wiskunde%20en%20Informatica%2C%20Mekelweg%2C%20Delft%2C%20Nederland&key=AIzaSyDTQB3T4_0gSDBSXX0vuloJ9xMn_ellw4k&zoom=15"></iframe>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script>
// Dynamic access of report project pages
// source: http://stackoverflow.com/questions/3646914/how-do-i-check-if-file-exists-in-jquery-or-javascript
function UrlExists(url)
{
var http = new XMLHttpRequest();
http.open('HEAD', url, false);
http.send();
return http.status===200;
}
var baseURL = "/reports/project/";
var requestedURL;
$('#pid').on('input', function() {
var value = $( '#pid').val();
if(value.length != 40) {
$('#getreport').attr('disabled', 'disabled');
return;
}
requestedURL = baseURL + value + ".html";
if(UrlExists(requestedURL)) {
$('#getreport').removeAttr('disabled');
} else {
$('#getreport').attr('disabled', 'disabled');
}
});
$('#reportform').submit(function() {
window.location.href = requestedURL;
return false;
});
</script>
</body>
</html>