-
Notifications
You must be signed in to change notification settings - Fork 0
/
photography.html
60 lines (51 loc) · 2.38 KB
/
photography.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
---
layout: default
title: Photography
---
<script type="text/javascript">
url = 'https://api.flickr.com/services/rest/?method=flickr.people.getPublicPhotos&api_key=fdfcf26714c000010967a246ac83033a&user_id=170036297@N06&format=json&extras=description,url_m,date_taken&nojsoncallback=1';
$.getJSON(url, function(data, status){
$.each(data.photos.photo, function(i, item){
page_url = `https://www.flickr.com/photos/${item.owner}/${item.id}/`;
date = new Date(item.datetaken).toLocaleDateString("de");
image_box = `<li class="col-md-4 col-sm-6 col-xs-6"><div class="item"><a class="box" href="${page_url}"><div class="desc desc-photo"><h3 class="proj-desc">${item.title}<div class="zigzag work clearfix" data-svg-drawing="yes"><svg xml:space="preserve" viewBox="0 0 69.172 14.975" width="25" height="10" y="0px" x="0px" xmlns="http://www.w3.org/2000/svg" version="1.1"><path d="M1.357,12.26 10.807,2.81 20.328,12.332 29.781,2.879 39.223,12.321 48.754,2.79 58.286,12.321 67.815,2.793 " style="stroke-dasharray: 93.9851, 93.9851; stroke-dashoffset: 0;"/></svg></div><span>${date}<br />${item.description._content}</span></h3></div><img class="photography-image" alt="" src="${item.url_m}"></a></div></li>`
$('#instafeed').append(image_box);
});
});
</script>
<div id="content-div" class="col-md-12">
<!--Portfolio Tab-->
<section id="portfolio" class="bgWhite ofsInBottom">
<!--Portfolio -->
<div class="portfolio">
<!--Main title-->
<div class="main-title">
<h1>My latest posts from Flickr</h1>
{% include zigzag-divider.html %}
</div>
<!--End main title-->
<!--Content-->
<div class="content">
<!--Block content-->
<div class="block-content ">
<!--Works-->
<div class="works">
<!--Row-->
<div class="row">
<ul class="work">
<div id="instafeed"></div>
</ul>
</div>
<!--End row-->
</div>
<!--End works-->
<div class="clearfix"></div>
</div>
<!--End block content-->
</div>
<!--End content-->
</div>
<!--End portfolio-->
</section>
<!--End portfolio tab-->
</div>