Team:UCLondon/Templates/Navigationv3

From 2012e.igem.org

(Difference between revisions)
Line 366: Line 366:
     for(var i = 0; i< data.length; i++){
     for(var i = 0; i< data.length; i++){
             var tweet = data[i].text;
             var tweet = data[i].text;
-
            alert(tweet);
 
             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.parseURL().parseUsername().parseHashtag();
+
             tweet = '<div>' + tweet.parseURL().parseUsername().parseHashtag() + '</div>';
             //alert(tweet);
             //alert(tweet);
             $("#twitter").append('<li><a class="what" href="https://twitter.com/#!/MBioinformatics/status/'+data[i].id_str+'">'+tweet+''+ '</a></li>');
             $("#twitter").append('<li><a class="what" href="https://twitter.com/#!/MBioinformatics/status/'+data[i].id_str+'">'+tweet+''+ '</a></li>');

Revision as of 19:59, 15 October 2012