forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpixelfeed.html
More file actions
45 lines (44 loc) · 1.43 KB
/
pixelfeed.html
File metadata and controls
45 lines (44 loc) · 1.43 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
<html>
<head>
<title>#pixeldaily Feed</title>
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<style>
.tweet{
margin:5px auto;
border-radius:3px;
background:white;
width:900px;
}
#result{
margin:0 auto;
width:1000px;
background:#CCC;
border-radius:5px;
}
#tweetText{
vertical-align:top;
}
</style>
<script type="text/javascript" charset="utf-8">
function searchTwitter() {
$.ajax({
url: 'https://api.twitter.com/1.1/search/tweets.json?q=%23pixel_dailies&result_type=recent',
success: function (data) {
console.log("success");
// var tweets = $('#tweets');
// tweets.html('');
// for (res in data['results']) {
// tweets.append('<div>' + data['results'][res]['from_user'] + ' wrote: <p>' + data['results'][res]['text'] + '</p></div><br />');
// }
}
});
}
$(document).ready(function(){
searchTwitter();
});
</script>
</head>
<body>
<div id="tweets"></div>
</body>
<html>