-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpeople.html
113 lines (98 loc) · 4.12 KB
/
people.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="website for the Neural Dynamics and Computation lab">
<meta name="author" content="Surya Ganguli">
<title>Neural Dynamics and Computation Lab</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/cosmo.css" rel="stylesheet">
<link href="css/navbar.css" rel="stylesheet" media="screen">
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="../../assets/js/html5shiv.js"></script>
<script src="../../assets/js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!--<h1>The Theoretical Neuroscience lab</h1>-->
<!--<script src="http://code.jquery.com/jquery-latest.js"></script>-->
<!--<script src="js/bootstrap.min.js"></script>-->
<div class="container">
<!-- Static navbar -->
<div class="navbar navbar-default">
<!-- toggle used on mobile screens -->
<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>
<a class="navbar-brand" href="index.html">Neural Dynamics & Computation Lab</a>
</div>
<!-- full width (desktop) content -->
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="index.html">Home</a></li>
<li class="active"><a href="#">People</a></li>
<li><a href="pubs.html">Publications</a></li>
<li><a href="teaching.html">Teaching</a></li>
</ul>
</div><!--/.nav-collapse -->
</div> <!-- /navbar -->
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div id="people-placeholder">Loading ...</div>
</div>
</div>
</div> <!-- /container -->
<!-- javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/handlebars.js"></script>
<!-- People template -->
<script id="people-template" type="text/x-handlebars-template">
<h2 class="">Current Members</h2>
{{#people}}
<div class="thumbnail profiles">
<div class="col-sm-12 col-md-3">
<img class="profileImg img-responsive" src="{{imgsrc}}" alt="{{firstname}} {{lastname}}">
</div>
<div class="col-sm-12 col-md-9">
<p class="lead">{{firstname}} {{lastname}} <span class="muted">{{email}}</span></p>
<p class="profileDescription">{{getDesc}}</p>
</div>
</div>
{{/people}}
<hr>
<h2 class="">Lab Alumni</h2>
{{#alum}}
<div class="thumbnail profiles">
<div class="col-sm-12 col-md-3">
<img class="profileImg img-responsive" src="{{imgsrc}}" alt="{{firstname}} {{lastname}}">
</div>
<div class="col-sm-12 col-md-9">
<p class="lead">{{firstname}} {{lastname}} <span class="muted">{{email}}</span></p>
<p class="profileDescription">{{getDesc}}</p>
</div>
</div>
{{/alum}}
</script>
<!-- Template insertion code -->
<script type="text/javascript">
$.getJSON('data/people.json', function(data) {
var src = document.getElementById("people-template").innerHTML;
var tmpl = Handlebars.compile(src);
Handlebars.registerHelper('getDesc', function() {
return new Handlebars.SafeString(this.description);
});
document.getElementById("people-placeholder").innerHTML = tmpl(data);
});
</script>
</body>
</html>