Mazel:test

From OpenWetWare
Jump to: navigation, search

<html> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() {

$.getJSON('http://www.citeulike.org/json/group/5581?callback=?', function(data) {

 var items = [];
 $.each(data, function(i) {
   var cit='<li id="' + i + '">' + '<a href="http://dx.doi.org/'+data[i].doi+'">'+ data[i].title + '</a><br>';
   cit+=data[i].authors.join(', ') + ', ';
   var date=data[i].published;
   cit+='<b>' + data[i].journal + '</b> '+ date[0];
   cit+='</li>';
   items.push( cit )      
 });
 $('<ul/>', {
   'class': 'my-new-list',
   html: items.join('')
 }).appendTo('#papers');

});


});

</script>

<div id="papers"></div>

</html>