This repository has been archived by the owner on Jan 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 143
/
index.html
166 lines (136 loc) · 5.51 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>potomak/jquery-instagram @ GitHub</title>
<style type="text/css">
body {
margin-top: 1.0em;
background-color: #000000;
font-family: Helvetica, Arial, FreeSans, san-serif;
color: #ffffff;
}
#container {
margin: 0 auto;
width: 700px;
}
h1 { font-size: 3.8em; color: #ffffff; margin-bottom: 3px; }
h1 .small { font-size: 0.4em; }
h1 a { text-decoration: none }
h2 { font-size: 1.5em; color: #ffffff; }
h3 { text-align: center; color: #ffffff; }
a { color: #ffffff; }
.description { font-size: 1.2em; margin-bottom: 30px; margin-top: 30px; font-style: italic;}
.download { float: right; }
pre { background: #000; color: #fff; padding: 15px;}
hr { border: 0; width: 80%; border-bottom: 1px solid #aaa}
.footer { text-align:center; padding-top:30px; font-style: italic; }
</style>
<link rel="stylesheet" href="jquery.instagram.css" type="text/css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-instagram/0.3.1/instagram.min.js"></script>
<script type="text/javascript">
/* <![CDATA[ */
(function() {
var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto';
t.parentNode.insertBefore(s, t);
})();
/* ]]> */
</script>
<script>
function createPhotoElement(photo) {
var innerHtml = $('<img>')
.addClass('instagram-image')
.attr('src', photo.images.thumbnail.url);
innerHtml = $('<a>')
.attr('target', '_blank')
.attr('href', photo.link)
.append(innerHtml);
return $('<div>')
.addClass('instagram-placeholder')
.attr('id', photo.id)
.append(innerHtml);
}
function didLoadInstagram(event, response) {
var that = this;
$.each(response.data, function(i, photo) {
$(that).append(createPhotoElement(photo));
});
}
$(document).ready(function() {
var clientId = 'baee48560b984845974f6b85a07bf7d9';
$('.instagram.tag').on('didLoadInstagram', didLoadInstagram);
$('.instagram.tag').instagram({
hash: 'hipster',
count: 5,
clientId: clientId
});
$('.instagram.location').on('didLoadInstagram', didLoadInstagram);
$('.instagram.location').instagram({
location: {
id: 514276
},
count: 5,
clientId: clientId
});
$('.instagram.search').on('didLoadInstagram', didLoadInstagram);
$('.instagram.search').instagram({
search: {
lat: 48.858844,
lng: 2.294351
},
count: 5,
clientId: clientId
});
});
</script>
</head>
<body>
<a href="http://github.com/potomak/jquery-instagram"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png" alt="Fork me on GitHub"></a>
<div id="container">
<div class="download">
<a href="http://github.com/potomak/jquery-instagram/zipball/master">
<img border="0" width="90" src="http://github.com/images/modules/download/zip.png"></a>
<a href="http://github.com/potomak/jquery-instagram/tarball/master">
<img border="0" width="90" src="http://github.com/images/modules/download/tar.png"></a>
</div>
<h1><a href="http://github.com/potomak/jquery-instagram">jquery-instagram</a>
<span class="small">by <a href="http://github.com/potomak">potomak</a></span></h1>
<a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="http://potomak.github.com/jquery-instagram/"></a>
<noscript><a href="http://flattr.com/thing/269500/Instagram-jQuery-plugin" target="_blank">
<img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0" /></a></noscript>
<div class="description">
Instagram jQuery plugin
</div>
<p>A simple jQuery plugin to show a list of Instagram photos.</p>
<p>Instagram photos tagged with #hipster.</p>
<div class="instagram tag"></div>
<p>Instagram photos at location 514276.</p>
<div class="instagram location"></div>
<p>Instagram photos at position (48.858844, 2.294351).</p>
<div class="instagram search"></div>
<h2>License</h2>
<p>See <a href="https://raw.github.com/potomak/jquery-instagram/master/LICENSE">LICENSE</a>.</p>
<h2>Authors</h2>
<p>Giovanni Cappellotto (<a href="http://twitter.com/johnnyaboh">@johnnyaboh</a>)</p>
<h2>Download</h2>
<p>
You can download this project in either
<a href="http://github.com/potomak/jquery-instagram/zipball/master">zip</a> or
<a href="http://github.com/potomak/jquery-instagram/tarball/master">tar</a> formats.
</p>
<p>You can also clone the project with <a href="http://git-scm.com">Git</a>
by running:
<pre>$ git clone git://github.com/potomak/jquery-instagram</pre>
</p>
<h2>CDN</h2>
<p><a href="//cdnjs.cloudflare.com/ajax/libs/jquery-instagram/0.3.1/instagram.min.js">//cdnjs.cloudflare.com/ajax/libs/jquery-instagram/0.3.1/instagram.min.js</a></p>
<div class="footer">
get the source code on GitHub : <a href="http://github.com/potomak/jquery-instagram">potomak/jquery-instagram</a>
</div>
</div>
</body>
</html>