Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Load snippet from RDN user timeline
- function gsparse(userTimeline) {
- var timeline = '';
- try {
- timeline = '<a href="//rainbowdash.net/user/798">'
- + userTimeline[0].user.statuses_count
- + ' dashes</a>';
- for(var i = 0; i < 5; i++) {
- timeline += '<div class="gs-post"><p>'
- + userTimeline[i].statusnet_html
- + '</p><a href="//rainbowdash.net/notice/'
- + userTimeline[i].id
- + '">'
- + userTimeline[i].created_at.replace(/\S+ (\S+ \S+) (\d+:\d+):\d+ \S+ (\S+)/gi, '$1 $3 ($2)')
- + '</a></div>';
- }
- } catch(e) {timeline = '<a href="//rainbowdash.net/user/798">Error.</a>';}
- document.write(timeline);
- }
- function loadGNUSoc() {
- document.write('<script type="text/javascript" src="//rainbowdash.net/api/statuses/user_timeline/798.json?count=5&callback=gsparse"><' + '/script>');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement