forked from SciTools/scitools.org.uk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.html
47 lines (43 loc) · 1.72 KB
/
about.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
<!--#include virtual="includes/title.shtml" -->
<!--#include virtual="includes/css.shtml" -->
<title>About</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script
</head>
<body>
<div class="wrapper">
<!--#include virtual="includes/forkbar.shtml" -->
<!--#include virtual="includes/navbar.shtml" -->
<div id="bd">
<h1>About</h1>
<h2>Contributors</h2>
<p>Iris logo designed by richh98 ([email protected])</p>
<div class="contributors" id="contributors"></div>
<script language="Javascript" type="text/javascript">
$(document).ready(function() {
var fjson = "jsondata/contributors.json";
var patharray = window.location.pathname.split('/');
var path = "";
for (i=0; i < patharray.length-1; i++){
path += patharray[i] + '/';
}
var url = location.protocol + "//" + location.host + path + fjson
// get data
$.getJSON(url, function(data) {
for (var i=0; i<data.contributors.length; i++){
$('#contributors').append("<p>"+data.contributors[i].profile_name+"   "+data.contributors[i].organisation+"<\/p>")
}
$('#contributors').append("<h2>Alumni</h2>");
for (var i=0; i<data.alumni.length; i++){
$('#contributors').append("<p>"+data.alumni[i].profile_name+"<\/p>")
}
});
});
</script>
</div>
<div id="ft">
<!--#include virtual="includes/copyright.shtml" --><br>
</div>
</div>
<!--#include virtual="includes/validator.shtml" -->
</body>
</html>