Team:UCLondon/Templates/Navigationv3
From 2012e.igem.org
(Difference between revisions)
Line 316: | Line 316: | ||
var created = parseDate(data[i].created_at); | var created = parseDate(data[i].created_at); | ||
var createdDate = created.getDate()+'-'+(created.getMonth()+1)+'-'+created.getFullYear()+' at '+created.getHours()+':'+created.getMinutes(); | var createdDate = created.getDate()+'-'+(created.getMonth()+1)+'-'+created.getFullYear()+' at '+created.getHours()+':'+created.getMinutes(); | ||
- | tweet = | + | tweet = tweet.parseURL().parseUsername().parseHashtag(); |
alert(tweet); | alert(tweet); | ||
- | $("#twitter").append('<li>'+tweet+'</li>'); | + | $("#twitter").append('<li><a href="https://twitter.com/#!/MBioinformatics/status/'+data[i].id_str+'">'+tweet+'</a></li>'); |
} | } | ||
}); | }); |
Revision as of 18:22, 14 October 2012