-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
126 lines (112 loc) · 5.03 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
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
<!DOCTYPE html>
<html>
<head>
<title>Spatial Pattern Analysis & Research Laboratory</title>
<meta charset="UTF-8">
<link rel='shortcut icon' href='favicon.ico' type='image/x-icon'/ >
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
<link rel="shortcut icon" type="image/png" href="http://eg.com/favicon.png"/>
<!-- CSS -->
<link rel="stylesheet" href="./src/vendor/bootswatch/bootstrap.min.css" media="screen">
<link rel="stylesheet" href="./src/css/master.css" media="screen">
<!-- Google Analytics -->
<script type="text/javascript">
(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-53442345-2', 'auto');
ga('send', 'pageview');
</script>
</head>
<body data-spy="scroll" data-target="#spar-nav">
<div class="container">
<!-- Page header -->
<div class="page-header">
<h1>
<img class="img-responsive" src="./src/images/headers/SPAR_logo2_transparent.png" alt="SPARLab" width="350" />
<small>Spatial Pattern Analysis & Research Lab</small>
</h1>
</div>
<!-- Page body -->
<div class="row">
<!-- Content gets inserted here from /html via jQuery-->
<div class="col-xs-12 col-sm-10">
<div id="about"></div>
<div id="publications"></div>
<div id="people"></div>
<div id="downloads"></div>
<div id="contact-info"></div>
<div id="social-media"></div>
</div>
<!-- Navigation bar -->
<div class="hidden-xs col-sm-2 category-nav">
<!-- Links -->
<div id="spar-nav" data-spy="affix" data-offset="217">
<ul class="nav nav-stacked">
<li><a href="#about">About</a></li>
<li>
<a href="#publications">Publications</a>
<ul class="nav nav-stacked">
<li><a href="#recent-publications">Recent publications</a></li>
<li><a href="#more-publications">More publications</a></li>
</ul>
</li>
<li>
<a href="#people">People</a>
<ul class="nav nav-stacked">
<li><a href="#lead-researcher">Lead researcher</a></li>
<li><a href="#students">Students</a></li>
<li><a href="#staff">Staff</a></li>
<li><a href="#grads">Grads</a></li>
</ul>
</li>
<li><a href="#downloads">Software</a></li>
<li><a href="#contact-info">Contact</a></li>
<li><a href="#social-media">Social Media</a></li>
<!-- <li><a href="#photos">Photos</a></li> -->
<li><a href="#"><small>Back to top</small></a></li>
</ul>
</div>
</div>
</div>
</div>
<!-- Used by isBreakpoint() js function -->
<div class="device-xs visible-xs"></div>
<div class="device-sm visible-sm"></div>
<div class="device-md visible-md"></div>
<div class="device-lg visible-lg"></div>
<!-- JAVASCRIPT -->
<script src="https://code.jquery.com/jquery-2.1.4.min.js" type="text/javascript"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/stellar.js/0.6.2/jquery.stellar.min.js" type="text/javascript"></script>
<script type="text/javascript">
function isBreakpoint( alias ) {
return $('.device-' + alias).is(':visible');
}
$(function(){
// Load pages
$.when(
$.get('sections/about.html', function(data){ $('#about').html(data) }),
$.get('sections/people.html', function(data){ $('#people').html(data) }),
$.get('sections/downloads.html', function(data){ $('#downloads').html(data) }),
$.get('sections/publications.html', function(data){ $('#publications').html(data) }),
$.get('sections/contact.html', function(data){ $('#contact-info').html(data) }),
$.get('sections/social_media.html', function(data){ $('#social-media').html(data) })//,
).done(function() {
// Init parallax
if (isBreakpoint('md') || isBreakpoint('lg')){
$.stellar({ horizontalScrolling: false, verticalOffset: 300 });
}
// Refresh scrollspy
$('[data-spy="scroll"]').each(function () {
$(this).scrollspy('refresh');
});
});
// Make affixed nav width 100% of parent col
$(window).resize(function () { $('#spar-nav.affix').width($('.category-nav').width()); });
$(window).scroll(function () { $('#spar-nav.affix').width($('.category-nav').width()); });
});
</script>
</body>
</html>