forked from DMarby/picsum-photos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
228 lines (214 loc) · 9.12 KB
/
Copy pathindex.html
File metadata and controls
228 lines (214 loc) · 9.12 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
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
220
221
222
223
224
225
226
227
228
<html>
<head>
<meta charset="utf-8">
<title>Unsplash It</title>
<meta name="description" content="Beautiful placeholders using images from unsplash">
<meta name="keywords" content="placeholders,images,unsplash">
<meta name="author" content="David Marby (http://dmarby.se) & Nijiko Yonskai (https://github.com/nijikokun)">
<meta name="robots" content="all">
<meta property="og:site_name" content="Unsplash it">
<meta property="og:title" content="Unsplash it">
<meta property="og:description" content="Beautiful placeholders using images from unsplash">
<meta property="og:type" content="website">
<meta property="og:image" content="https://unsplash.it/250/250">
<meta property="og:url" content="https://unsplash.it">
<link rel="dns-prefetch" href="//fonts.googleapis.com">
<link rel="dns-prefetch" href="//maxcdn.bootstrapcdn.com">
<link rel="dns-prefetch" href="//code.jquery.com">
<link rel="dns-prefetch" href="//www.google-analytics.com">
<link rel="dns-prefetch" href="//unsplash.it">
<link rel="shortcut icon" href="favicon.ico">
<link rel="icon" sizes="16x16 32x32 64x64" href="favicon.ico">
<link rel="icon" type="image/png" sizes="196x196" href="favicon-196.png">
<link rel="icon" type="image/png" sizes="160x160" href="favicon-160.png">
<link rel="icon" type="image/png" sizes="96x96" href="favicon-96.png">
<link rel="icon" type="image/png" sizes="64x64" href="favicon-64.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16.png">
<link rel="apple-touch-icon" sizes="152x152" href="favicon-152.png">
<link rel="apple-touch-icon" sizes="144x144" href="favicon-144.png">
<link rel="apple-touch-icon" sizes="120x120" href="favicon-120.png">
<link rel="apple-touch-icon" sizes="114x114" href="favicon-114.png">
<link rel="apple-touch-icon" sizes="76x76" href="favicon-76.png">
<link rel="apple-touch-icon" sizes="72x72" href="favicon-72.png">
<link rel="apple-touch-icon" href="favicon-57.png">
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="main.js"></script>
<script>
$(document).ready(function() {
setInterval(function () {
var $element = $('.random-image')
$element.attr('src', '/458/354?random&time=' + (+new Date()));
}, 1000 * 5)
});
</script>
<script>
(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-53898108-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<!-- Header -->
<div class="intro-header">
<div class="overlay">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="intro-message">
<a href="https://unsplash.it">
<h1>Unsplash It</h1>
</a>
<h3>Beautiful placeholders using images from <a href="https://unsplash.com">unsplash</a></h3>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /.intro-header -->
<div class="content-section-right">
<div class="container">
<div class="row">
<div class="col-lg-5 col-sm-6">
<div class="clearfix"></div>
<h2 class="section-heading">Basic Usage</h2>
<p class="lead">Just put your image size (width & height) after our URL and you'll get a placeholder.</p>
<pre><code>https://unsplash.it/200/300</code></pre>
<p class="lead">To get a square image, just put the size you want.</p>
<pre><code>https://unsplash.it/200</code></pre>
</div>
<div class="col-lg-5 col-lg-offset-2 col-sm-6">
<img class="img-responsive" src="/458/354" alt="">
</div>
</div>
</div>
</div>
<div class="content-section-left">
<div class="container">
<div class="row">
<div class="col-lg-5 col-lg-offset-1 col-sm-push-6 col-sm-6">
<div class="clearfix"></div>
<h2 class="section-heading">Random image</h2>
<p class="lead">Get a random image by appending <code>?random</code> to the end of the url.</p>
<pre><code>https://unsplash.it/200/300/?random</code></pre>
</div>
<div class="col-lg-5 col-sm-pull-6 col-sm-6">
<img class="img-responsive random-image" src="/458/354?random" alt="">
</div>
</div>
</div>
</div>
<div class="content-section-right">
<div class="container">
<div class="row">
<div class="col-lg-5 col-sm-6">
<div class="clearfix"></div>
<h2 class="section-heading">Grayscale</h2>
<p class="lead">Use the <code>/g/</code> path to greyscale the image.</p>
<pre><code>https://unsplash.it/g/200/300</code></pre>
</div>
<div class="col-lg-5 col-lg-offset-2 col-sm-6">
<img class="img-responsive" src="/g/458/354" alt="">
</div>
</div>
</div>
</div>
<div class="content-section-left">
<div class="container">
<div class="row">
<div class="col-lg-5 col-lg-offset-1 col-sm-push-6 col-sm-6">
<div class="clearfix"></div>
<h2 class="section-heading">List images</h2>
<p class="lead">Get a list of images by using the <code>/list</code> endpoint.</p>
<pre><code>https://unsplash.it/list</code></pre>
</div>
<div class="col-lg-5 col-sm-pull-6 col-sm-6">
<pre><code>[
{
"format": "jpeg",
"width": 5616,
"height": 3744,
"filename": "51492538696.jpg",
"id": 0,
"author": "Alejandro Escamilla",
"author_url": "https://alejandroescamilla.com/",
"post_url": "https://unsplash.com/post/51492538696/download-by-alejandro-escamilla"
}
] </code></pre>
</div>
</div>
</div>
</div>
<div class="content-section-right">
<div class="container">
<div class="row">
<div class="col-lg-5 col-sm-6">
<div class="clearfix"></div>
<h2 class="section-heading">Specific Image</h2>
<p class="lead">Get a specific image by appending <code>?image</code> to the end of the url.</p>
<pre><code>https://unsplash.it/200/300?image=0</code></pre>
<p>You can find a list of all images <a href="https://unsplash.it/images">here.</a></p>
</div>
<div class="col-lg-5 col-lg-offset-2 col-sm-6">
<img class="img-responsive" src="/458/354?image=0" alt="">
</div>
</div>
</div>
</div>
<div class="content-section-left">
<div class="container">
<div class="row">
<div class="col-lg-5 col-lg-offset-1 col-sm-push-6 col-sm-6">
<div class="clearfix"></div>
<h2 class="section-heading">Blurred image</h2>
<p class="lead">Get a blurred image by appending <code>?blur</code> to the end of the url.</p>
<pre><code>https://unsplash.it/200/300/?blur</code></pre>
</div>
<div class="col-lg-5 col-sm-pull-6 col-sm-6">
<img class="img-responsive" src="/458/354?image=0&blur" alt="">
</div>
</div>
</div>
</div>
<div class="content-section-right">
<div class="container">
<div class="row">
<div class="col-lg-5 col-sm-6">
<div class="clearfix"></div>
<h2 class="section-heading">Crop Gravity</h2>
<p class="lead">Select the cropping gravity by adding <code>?gravity</code> to the end of the url.</p>
<p>Valid options are: <code>north, east, south, west, center</code></p>
<pre><code>https://unsplash.it/200/300/?gravity=east</code></pre>
</div>
<div class="col-lg-5 col-lg-offset-2 col-sm-6">
<img class="img-responsive" src="/458/354?gravity=east" alt="">
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer>
<div class="footer-overlay">
<div class="container">
<div class="row">
<div class="col-lg-12">
<p><a href="https://www.digitalocean.com?ref=unsplash.it"><img class="digitalocean" alt="Proudly hosted by DigitalOcean" src="/digitalocean.png"></a>
<span class="plus glyphicon glyphicon-plus" aria-hidden="true"></span>
<a href="https://belugacdn.com?ref=unsplash.it"><img class="belugacdn" alt="CDN provided by BelugaCDN" src="/belugacdn.png"></a></p>
<p>Created by <a href="http://dmarby.se">David Marby</a> & <a href="https://github.com/Nijikokun">Nijiko Yonskai</a></p>
<p><a href="https://github.com/DMarby/unsplash-it">Source</a></p>
</div>
</div>
</div>
</div>
</footer>
</body>
</html>