-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·121 lines (106 loc) · 4.42 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
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<!-- Social-feed css -->
<link href="css/socialwall.css" rel="stylesheet" type="text/css">
<!-- font-awesome for social network icons -->
<link href="//netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet">
<!-- This style is needed only for the plugin demo page. Do not use it in your projects -->
</head>
<body>
<section class="feed">
<div class="container">
<div class="social-feed-container">
</div>
</div>
</section>
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<script src="js/masonry.pkgd.min.js"></script>
<script src="js/imagesloaded.pkgd.min.js"></script>
<!-- Codebird.js - required for TWITTER -->
<script src="js/codebird.js"></script>
<!-- doT.js for rendering templates -->
<script src="js/doT.min.js"></script>
<!-- Moment.js for showing "time ago" -->
<script src="js/moment.min.js"></script>
<!-- Social-feed js -->
<script src="js/jquery.socialfeed.js"></script>
<script src="js/vein.js"></script>
<script>
$(document).ready(function() {
var updateFeed = function() {
$('.social-feed-container').socialfeed({
// FACEBOOK
facebook: {
accounts: ["@GraydientCreative"],
limit: 5,
access_token: '1798932003713134|0f4f02061dfc1d708d17b99668f3ee6e'
},
// Twitter
twitter: {
accounts: ["@experienceGray"],
limit: 5,
consumer_key: 'JjUHvbcVoYWVMYBaq4IzDPDk4', // make sure to have your app read-only
consumer_secret: '7R3g74dENJyHvUYMyuOGfVUEDta7zYO2sN0hiDJwsW9SEFM0rX', // make sure to have your app read-only
},
// INSTAGRAM
instagram: {
accounts: ["&2282195281"],
limit: 5,
client_id: 'c8f0be79ea7c47f7bdac9a80c33c00f5',
access_token: '2282195281.1677ed0.df2ba73d081c400b9347fea08e15102d'
},
// RSS
rss:{
urls: ['http://blog.graydientcreative.com/feed/'], //Array: Specifiy a list of rss feed from which to pull posts
limit: 5 //Integer: max number of posts to load for each url
},
// GENERAL SETTINGS
length: 200,
show_media: true,
template : "template.html",
// Moderation function - if returns false, template will have class hidden
moderation: function(content) {
return (content.text) ? content.text.indexOf('fuck') == -1 : true;
},
//update_period: 5000,
// When all the posts are collected and displayed - this function is evoked
callback: function() {
//Twitter
if ($('.fa-twitter').length) {
$('.fa-twitter').closest('.bottom-info').css('background-color', '#b9d36b');
}
//Facebook
if ($('.fa-facebook').length) {
$('.fa-facebook').closest('.bottom-info').css('background-color', '#e8842c');
}
//WordPress
if ($('.fa-rss').length) {
$('.fa-rss').closest('.bottom-info').css('background-color', '#00a9a6');
}
//Instagram
if ($('.fa-instagram').length) {
$('.fa-instagram').closest('.bottom-info').css('background-color', '#dbb44b');
}
}
});
};
updateFeed();
setTimeout(function() {
var $grid = $('.social-feed-container').imagesLoaded( function() {
// init Masonry after all images have loaded
// init Masonry
$grid.masonry({
// options
itemSelector: '.social-feed-element',
columnWidth:15,
gutterWidth: 15
});
});
}, 3000);
});
</script>
</body>
</html>