-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·194 lines (157 loc) · 6.32 KB
/
index.html
File metadata and controls
executable file
·194 lines (157 loc) · 6.32 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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<!DOCTYPE html>
<!-- This is what a comment looks like ! They won't ruin your website. Use them to keep stuff organized -->
<html lang="en">
<!--The <head> tag is used for your computer to find important files such as style sheets/scripts -->
<head>
<!-- Check the top tab of your page ! -->
<title>Hi</title>
<!--
"Find the refence to Bootstrap's stylesheet | This is a style sheet."
Note that why bootstrap is so convenient is that it includes PRE-STYLED
elements and layouts for you to use. This file should never be modified.
Instead, you can override Bootstrap styles in your custom .css file.
-->
<link href="bootstrap.css" rel="stylesheet">
<!-- Our custom CSS ! -->
<link href="style.css" rel="stylesheet">
<link rel="stylesheet" href="https://cssgram-cssgram.netdna-ssl.com/cssgram.min.css">
<script src="https://code.jquery.com/jquery-2.2.3.min.js" integrity="sha256-a23g1Nt4dtEYOj7bR+vTu7+T8VP13humZFBJNIYoEJo=" crossorigin="anonymous"></script>
</script>
<!-- Be sure to close every open tag ! -->
</head>
<!-- The <body> is where all the magic happens -->
<body class="img-wrap">
<!-- <div class="img-wrap"> -->
<nav class="navbar">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">Cat Filter</a>
</div>
<div id="navbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
</div>
</nav>
<!-- Page Content -->
<div class="container">
<!-- Page Header -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Filters</h1>
</div>
</div>
<!-- /.row -->
<!-- Projects Row -->
<div class="row">
<div class="col-md-6 portfolio-item">
<div class="img-filter">
<img class="img-responsive" src="http://lorempixel.com/700/400" alt="">
</div>
<h3>
<a href="item1.html">Project One</a>
</h3>
<p>Cronut deep v chia actually. Cardigan pork belly microdosing blog, umami roof party 3 wolf moon shoreditch pinterest marfa man braid gastropub. Try-hard tote bag gluten-free, direct trade forage twee before they sold out.</p>
</div>
<div class="col-md-6 portfolio-item">
<div class="img-filter">
<img class="img-responsive" src="http://lorempixel.com/700/400" alt="">
</div>
<h3>
<a href="#">Project Two</a>
</h3>
<p>Blog you probably haven't heard of them jean shorts, cardigan direct trade mumblecore </p>
</div>
</div>
<!-- /.row -->
<!-- Projects Row -->
<div class="row">
<div class="col-md-6 portfolio-item">
<div class="img-filter">
<img class="img-responsive" src="http://lorempixel.com/700/400" alt="">
</div>
<h3>
<a href="#">Project Three</a>
</h3>
<p>franzen cronut single-origin coffee deep v everyday carry chicharrones four dollar toast. Food truck chillwave</p>
</div>
<div class="col-md-6 portfolio-item">
<div class="img-filter">
<img class="img-responsive" src="http://lorempixel.com/700/400" alt="">
</div>
<h3>
<a href="#">Project Four</a>
</h3>
<p>banjo messenger bag yr drinking vinegar keytar beard selfies, flannel chicharrones. </p>
</div>
</div>
<!-- /.row -->
<!-- Projects Row -->
<div class="row">
<div class="col-md-6 portfolio-item">
<div class="img-filter">
<img class="img-responsive" src="http://lorempixel.com/700/400" alt="">
</div>
<h3>
<a href="#">Project Five</a>
</h3>
<p>Cray irony scenester, wolf pop-up slow-carb microdosing kickstarter cronut hashtag umami twee direct trade polaroid</p>
</div>
<div class="col-md-6 portfolio-item">
<div class="img-filter">
<img class="img-responsive" src="http://lorempixel.com/700/400" alt="">
</div>
<h3>
<a href="#">Project Six</a>
</h3>
<p> Lo-fi roof party echo park wayfarers before they sold out selvage. Offal chambray everyday carry wayfarers, cardigan jean shorts beard waistcoat </p>
</div>
</div>
<!-- /.row -->
<hr>
<!-- Pagination -->
<div class="row text-center">
<div class="col-lg-12">
<button type="button" class="btn btn-primary btn-lg" id="refresh" >Refresh</button>
</div>
</div>
<!-- /.row -->
<hr>
<!-- </div> -->
<script type="text/javascript">
$(document).ready(function() {
filters = ["aden", "reyes", "perpetua", "inkwell", "toaster", "walden", "hudson", "gingham",
"mayfair", "lofi", "xpro2", "_1977", "brooklyn", "nashville", "lark", "moon",
"clarendon", "willow"];
/*
* for each image-fitler div, apply a random filter using
* hue-rotation, contrast, saturation, brigtness, and vintage filters
*/
$('.img-responsive').each(function() {
$(this).addClass(filters[randomNumber(0, filters.length)]);
});
// toggle (aka remove) an item if you click on it
$('.portfolio-item').click(function() {
$(this).toggle(1000);
});
/*
* Reload the entire page (causing new filters and images to be loaded)
* upon click of the refresh button
*/
$("#refresh").click(function() {
location.reload();
});
});
/*
* A simple random number function that generates a random
* number in the range [lowerBound, upperBound]
*/
function randomNumber(lowerBound, upperBound) {
return Math.floor((Math.random() * upperBound) + lowerBound);
}
</script>
</body>
</html>