forked from AidData-WM/activitycoding
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
79 lines (70 loc) · 1.9 KB
/
index.html
File metadata and controls
79 lines (70 loc) · 1.9 KB
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
<html>
<head>
<meta chartset="utf-8"/>
<title>AidData Activity Coding Challenge Homepage</title>
<link rel="stylesheet" type="text/css" href="css\bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="css\style.css"/>
</head>
<body>
<div class="container">
<div class="row-fluid header">
<h3>AidData Activity Coding Challenge</h3>
</div>
<div class="row-fluid">
<h4>Overview</h4>
<p>Description and link to problem sets here</p>
</div>
<div class="row-fluid">
<h4>Results</h4>
<table class="table table-striped">
<thead>
<tr>
<th>Submission Name</th>
<th>Word Bank Donor</th>
<th>AfDB Donor</th>
<th>Education Sector</th>
<th>Health Sector</th>
<th>Agriculture Sector</th>
<th>Short (<=20 chars) Description Length</th>
<th>Medium (21 to 100 chars) Description Length</th>
<th>Long (100+ chars) Description Length</th>
</tr>
</thead>
<tbody id="table-body">
</tbody>
<table>
</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/underscore-min.js"></script>
<script type="text/javascript">
//========= add your team's results here =========
var results = [
{
name:'Foo',
repoLink:'#',
authors: [],
accuracy: {
one:34,
two:45,
three:12
},
verified:false
},
{
name:'Bar',
authors: [],
repoLink:'#',
accuracy: {
one:12,
two:78,
three:2
},
verified:false
}
]
//=================================================
_.each(results, function(result) {
$('#table-body').append('<tr><td><a href="' + result.repoLink + '">' + result.name + '</a></td>' + _.map( _.values(result.accuracy), function(value) { return '<td>' + value + '</td>'; }).join('') + '</tr>');
});
</script>
</body>