-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
38 lines (35 loc) · 1.51 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
<!doctype html>
<html ng-app>
<head>
<title>Get Your Free Technical Debt Score Today!</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script>
<script src="score.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-45868951-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
Get your free technical debt score!
<div ng-controller="ScoreCtrl">
<label>What language is your project written in?</label>
<select ng-model="languageUsed" ng-options="l.name for l in languages">
</select>
<br>
<label>How many unit tests do you have?</label>
<input type="text" ng-model="testCount" placeholder="You do test, right?">
<br>
<label>How many languages are in your project?</label>
<input type="number" ng-model="langCount" placeholder="Probably too many...">
<div>
Your current score is {{score()}}.
</div>
</div>
</body>
</html>