forked from DMarby/picsum-photos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimages.html
More file actions
145 lines (134 loc) · 6.4 KB
/
Copy pathimages.html
File metadata and controls
145 lines (134 loc) · 6.4 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
<html>
<head>
<meta charset="utf-8">
<title>Unsplash It - Images</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 rel="stylesheet" href="style.css">
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/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>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery.lazyloadxt/1.0.5/jquery.lazyloadxt.fadein.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.lazyloadxt/1.0.5/jquery.lazyloadxt.min.js"></script>
<script type="text/javascript" src="main.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$.ajax({ url: '/list' }).done(function (data) {
for (var i in data) {
var image = data[i];
var $template = $('[data-template="image"] .col-md-3').clone();
$template.find('.author').text(image.author);
$template.find('.author').attr('href', image.author_url);
$template.find('.id').text('#' + image.id);
$template.find('.id').attr('href', 'https://unsplash.it/' + image.width + '/' + image.height + '?image=' + image.id);
$template.find('.post').attr('href', image.post_url);
$template.find('.lead').text(image.author_url);
$template.find('code').text('https://unsplash.it/200/300?image=' + image.id);
$template.find('img').attr('data-src', '/458/354?image=' + image.id);
$('.imageContainer').prepend($template);
}
});
});
</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 -->
<!-- Page Content -->
<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">Image Gallery</h2>
<p class="lead">Here you can view all images Unsplash It uses</p>
<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>
</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="container imageContainer">
</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>
<div class="template" data-template="image">
<div class="col-md-3 image">
<a class="post" target="_blank">
<img class="img-responsive center-block" alt="">
</a>
<div class="col-xs-12 col-sm-8 col-md-12 col-lg-12 attribution">
<a class="author" target="_blank"></a>
<a class="id" target="_blank"></a>
</div>
</div>
</div>
</body>
</html>