-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
219 lines (204 loc) · 9.02 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
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<!DOCTYPE html>
<html>
<head>
<title>Responsive Photo Gallery</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Stylesheets go here. -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
</head>
<body>
<!-- start featured photos carousel -->
<div class="container-fluid thumbnail">
<div class="row">
<div class="col-sm-12">
<div id="featuredPhotos" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#featuredPhotos" data-slide-to="0" class="active"></li>
<li data-target="#featuredPhotos" data-slide-to="1"></li>
<li data-target="#featuredPhotos" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="http://unsplash.it/1000/300?image=342" alt="city view" width=100% class="img-responsive">
</div>
<div class="item">
<img src="http://unsplash.it/1000/300?image=392" alt="bridge" width=100% class="img-responsive">
</div>
<div class="item">
<img src="http://unsplash.it/1000/300?image=442" alt="map" width=100% class="img-responsive">
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#featuredPhotos" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#featuredPhotos" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
</div>
<!-- end featured photos carousel -->
<div class="container">
<div class="row">
<div class="col-sm-4">
<blockquote>
<img src="http://unsplash.it/1000?image=41" alt="Raindrops" class="img-responsive img-rounded" data-toggle="modal" data-target="#exampleModal" />
</blockquote>
</div>
<div class="col-sm-4">
<blockquote>
<img src="http://unsplash.it/1000?image=56" alt="Blurred lights" class="img-responsive thumbnail" data-toggle="modal" data-target="#exampleModal" />
</blockquote>
</div>
<div class="col-sm-4">
<blockquote>
<img src="http://unsplash.it/1000?image=220" alt="Railroad tracks" class="img-responsive thumbnail" data-toggle="modal" data-target="#exampleModal" />
</blockquote>
</div>
</div>
<div class="row">
<div class="col-sm-4">
<blockquote>
<img src="http://unsplash.it/1000?image=237" alt="Black lab puppy" class="img-responsive thumbnail" data-toggle="modal" data-target="#exampleModal" />
</blockquote>
</div>
<div class="col-sm-4">
<blockquote>
<img src="http://unsplash.it/1000?image=314" alt="Open road" class="img-responsive thumbnail" data-toggle="modal" data-target="#exampleModal" />
</blockquote>
</div>
<div class="col-sm-4">
<blockquote>
<img src="http://unsplash.it/1000?image=336" alt="Locks on fence" class="img-responsive thumbnail" data-toggle="modal" data-target="#exampleModal" />
</blockquote>
</div>
</div>
</div>
<!-- Begin modal for all pictures -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content container-fluid">
<div class="modal-header row">
<p class="caption lead col-xs-6"></p>
<a class="close col-xs-6 text-right" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></a>
</div>
<div class="modal-body">
<img src="" class="imagePreview" width=100% />
</div>
<div class="modal-footer"></div>
</div>
</div>
</div>
<!-- End modal for all pictures -->
<!-- Commented out invidual photo modals -->
<!-- Begin photo 1 modal -->
<!-- <div id="photo1" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body">
<img src="http://unsplash.it/1000/?image=41" class="img-responsive" />
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div> -->
<!-- End photo 1 modal -->
<!-- Begin photo 2 modal -->
<!-- <div id="photo2" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body">
<img src="http://unsplash.it/1000?image=56" class="img-responsive" />
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div> -->
<!-- End photo 2 modal -->
<!-- Begin photo 3 modal -->
<!-- <div id="photo3" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body">
<img src="http://unsplash.it/1000?image=220" class="img-responsive" />
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div> -->
<!-- End photo 3 modal -->
<!-- Begin photo 4 modal -->
<!-- <div id="photo4" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body">
<img src="http://unsplash.it/1000?image=237" class="img-responsive" />
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div> -->
<!-- End photo 4 modal -->
<!-- Begin photo 5 modal -->
<!-- <div id="photo5" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body">
<img src="http://unsplash.it/1000?image=314" class="img-responsive" />
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div> -->
<!-- End photo 5 modal -->
<!-- Begin photo 6 modal -->
<!-- <div id="photo6" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body">
<img src="http://unsplash.it/1000?image=336" class="img-responsive" />
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div> -->
<!-- End photo 6 modal -->
<!-- Scripts go here. -->
<script type="text/javascript" src="https://cdn.polyfill.io/v2/polyfill.min.js?features=fetch"></script>
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<!-- being script for single modal for all pictures -->
<script>
$('#exampleModal').on('show.bs.modal', function (event) {
var button = $(event.relatedTarget) // Button that triggered the modal
var source = button.attr('src') // Extract info from data-* attributes
var caption = button.attr('alt')
var modal = $(this)
modal.find('.imagePreview').attr('src', source);
modal.find('.caption').text(caption);
})
</script>
<!-- end script for single modal for all pictures -->
</body>
</html>