This repository was archived by the owner on Feb 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
171 lines (138 loc) · 5.74 KB
/
index.html
File metadata and controls
171 lines (138 loc) · 5.74 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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
---
locale: "en"
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ site.content.title }}</title>
<meta name="description" content="{{site.meta-description}}">
<link rel="shortcut icon" href="favicon.ico" />
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap.no-icons.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/2.0/css/font-awesome.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/2.0/css/font-awesome-ie7.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% if site.google-analytics.use %}
{% include google-analytics.html %}
{% endif %}
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<!-- NAVBAR
================================================== -->
<div class="navbar-wrapper">
<!-- Wrap the .navbar in .container to center it within the absolutely positioned parent. -->
<div class="container">
<div class="navbar navbar-inverse">
<div class="navbar-inner">
<!-- Responsive Navbar Part 1: Button for triggering responsive navbar (not covered in tutorial). Include responsive CSS to utilize. -->
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse" href="#" >
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">{{ site.brigade.name }}</a>
<!-- Responsive Navbar Part 2: Place all navbar contents you want collapsed withing .navbar-collapse.collapse. -->
<div class="nav-collapse collapse">
<ul class="nav">
{% include navbar.html %}
</ul>
</div><!--/.nav-collapse -->
<ul class="nav social-media-nav">
{% include social-media-nav.html %}
</ul>
</div><!-- /.navbar-inner -->
</div><!-- /.navbar -->
</div> <!-- /.container -->
</div><!-- /.navbar-wrapper -->
<!-- Carousel
================================================== -->
<div class="carousel slide">
<div class="carousel-inner">
<div class="item active lazy-load" data-src-small="{{ site.content.banner-small }}" data-src-large="{{ site.content.banner-large }}" >
<noscript>
<style type="text/css">
.lazy-load{
background-image:url({{ site.content.banner-small }});
background-size: cover;
background-position-x: 50%;
background-repeat-y: no-repeat;
}
</style>
</noscript>
<div class="container">
<div class="carousel-caption">
{% include carousel-caption.html %}
</div>
</div>
</div>
</div>
</div><!-- /.carousel -->
<!-- Marketing messaging and featurettes
================================================== -->
<!-- Wrap the rest of the page in another container to center all the content. -->
<div class="container marketing">
<!-- Three columns of text below the carousel -->
<div class="row">
{% include info-columns.html %}
</div><!-- /.row -->
<!-- START THE FEATURETTES -->
<hr class="featurette-divider">
{% include projects.html %}
<hr class="featurette-divider">
{% include github-projects.html %}
<hr class="featurette-divider">
{% include help-your-city.html %}
<hr class="featurette-divider">
{% include meetups.html %}
<hr class="featurette-divider">
{% include discussion.html %}
<hr class="featurette-divider">
{% include mailchimp.html %}
<!-- REMOVE CONTACTS --><hr class="featurette-divider">
{% include contact.html %}<!-- /END OF CONTACTS -->
<hr class="featurette-divider">
<!-- /END THE FEATURETTES -->
<!-- FOOTER -->
<footer>
{% include footer.html %}
</footer>
</div><!-- /.container -->
<script>
LZLD = {};
//get pixel ratio, default to 1
LZLD.devicePixelRatio = window.devicePixelRatio || 1;
//screenwidth * pixelratio
LZLD.screenWidth = window.innerWidth * LZLD.devicePixelRatio;
//get images blocks and loop through them
LZLD.lazyLoadImages = function(){
var lazyloadUs = document.getElementsByClassName("lazy-load");
for(var i = 0; i < lazyloadUs.length; i++){
LZLD.lazyloadImage(lazyloadUs[i]);
}
}
LZLD.lazyloadImage = function(lazyLoadMe){
var noscriptTag = lazyLoadMe.children[0];
var imgSRCSmall = lazyLoadMe.getAttribute("data-src-small");
var imgSRCLarge = lazyLoadMe.getAttribute("data-src-large");
var bstyle1="background-image:url(\""
var bstyle2="\"); background-size: cover; background-position-x: 50%; background-repeat-y: no-repeat;"
if(LZLD.screenWidth < 767){
lazyLoadMe.setAttribute("style", bstyle1 + imgSRCSmall + bstyle2);
}else{
lazyLoadMe.setAttribute("style", bstyle1 + imgSRCLarge + bstyle2);
}
}
// do it
LZLD.lazyLoadImages();
</script>
<script src="https://fb.me/react-0.13.3.min.js"></script>
<script src="dist/js/github-projects.js"></script>
</body>
</html>