Team:UNITN-Trento/Templates/Notebook
From 2013.igem.org
(Difference between revisions)
Line 31: | Line 31: | ||
href += "?action=raw&ctype=text/javascript" | href += "?action=raw&ctype=text/javascript" | ||
$.getJSON( href , function(data) { | $.getJSON( href , function(data) { | ||
- | + | var date = data.date; | |
- | + | var author = data.author; | |
- | + | var title = data.title; | |
- | + | var content = data.content; | |
- | + | var tags = data.tags; | |
- | + | ||
+ | $('<div></div>').attr('id' , 'tn-post-'+date+"-"+author).addClass('tn-post').attr('data-user' , author).attr('data-title' , title).attr('data-date' , date).attr('data-tag' , tags).append($("<div></div>").addClass('tn-text').html(content)).appendTo($("#aj_cont")); | ||
}); | }); | ||
}); | }); |
Revision as of 07:41, 19 August 2013
[http://2013.igem.org/wiki/index.php?title=Team:UNITN-Trento/Templates/Notebook&action=edit Edit this page] | Main Page
Retrieved from "http://2013.igem.org/Team:UNITN-Trento/Templates/Notebook"