forked from pavelk2/social-feed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
145 lines (135 loc) · 5.17 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
<html>
<head>
<!-- Social-feed css -->
<link href="css/jquery.socialfeed.css" rel="stylesheet" type="text/css">
<!-- font-awesome for social network icons -->
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<style>
/*This style is needed only for the plugin demo page. Do not use it in your projects*/
body{
padding:0px;
padding-bottom:50px;
margin:0px;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 20px;
color: #eee;
text-align:center;
background-image: -webkit-gradient(
linear,
left top,
right bottom,
color-stop(0.07, #4A4DA1),
color-stop(0.86, #8EFAFA)
);
background-image: -o-linear-gradient(right bottom, #4A4DA1 7%, #8EFAFA 86%);
background-image: -moz-linear-gradient(right bottom, #4A4DA1 7%, #8EFAFA 86%);
background-image: -webkit-linear-gradient(right bottom, #4A4DA1 7%, #8EFAFA 86%);
background-image: -ms-linear-gradient(right bottom, #4A4DA1 7%, #8EFAFA 86%);
background-image: linear-gradient(to right bottom, #4A4DA1 7%, #8EFAFA 86%);
}
h1{
font-weight: 100;
font-size: 70px;
}
h2{
line-height: 24px;
font-weight: 100;
}
a{color: #FFF;}
a.btn {
text-decoration: none;
border: 1px solid #fff;
padding: 8px 11px;
border-radius: 5px;
transition: 0.25s;
-webkit-backface-visibility: hidden;
}
a.btn.btn-primary{
font-weight: 200;
border-width: 2px;
padding: 7px 10px;
}
a.btn:hover {
color:rgba(0, 50, 150, 0.5);
text-decoration: none;
background-color:#fff;
}
hr{
opacity:0.4;
border-color: #fff;
border-bottom: none;
}
.container {display:inline-block;width:400px;}
.social-feed-container{width:100%;}
</style>
</head>
<body>
<div class="container">
<h1>SocialFeed.js</h1>
<hr/>
<h2>jQuery plugin which displays posts by a username or a hashtag from the popular social networks: <i>Facebook</i>, <i>Instagram</i>, <i>Google+</i>, <i>VK</i>.
</h2>
<h2><a href='https://github.com/pavelk2/social-feed/' target = '_blank' class='btn btn-primary'>download</a></h2>
<hr/>
<iframe src="http://ghbtns.com/github-btn.html?user=pavelk2&repo=social-feed&type=watch&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="152px" height="30px"></iframe>
<iframe src="http://ghbtns.com/github-btn.html?user=pavelk2&repo=social-feed&type=fork&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="152px" height="30px"></iframe>
<h2>Tesla Motors</h2>
<div class="social-feed-container">
</div>
</div>
<!-- jQuery -->
<script src="dependencies/jquery.min.js"></script>
<!-- doT.js for rendering templates and moment.js for showing time ago -->
<script src="dependencies/doT.min.js"></script>
<script src="dependencies/moment.min.js"></script>
<!-- Social-feed js -->
<script src="js/jquery.socialfeed.js"></script>
<script>
$(document).ready(function(){
$('.social-feed-container').socialfeed({
// FACEBOOK
facebook:{
accounts:['@teslamotors','#teslamotors'],
limit:2,
access_token:'150849908413827|a20e87978f1ac491a0c4a721c961b68c'
},
// VK
vk:{
accounts:['@125936523','#teslamotors'],
limit:2,
source:'all'
},
// GOOGLEPLUS
google:{
access_token: 'AIzaSyDpNQcIwQf5TcKmI8B0rh3e4OodIywJP14',
accounts: ['#teslamotors'],
limit: 2
},
// INSTAGRAM
instagram:{
accounts:['@teslamotors','#teslamotors'],
client_id:'2c6d2173ae9d41de905236e6301e5a43',
limit:2
},
// BLOGSPOT
/*blogspot:{
accounts:['@iman-khaghanifar']
},*/
// GENERAL SETTINGS
length:400,
show_media:true,
// 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(){
console.log('all posts are collected');
}
});
});
</script>
</body>
</html>