Template:Team:Paris-Saclay/left-column
From 2012.igem.org
(Difference between revisions)
YohannPetiot (Talk | contribs) |
YohannPetiot (Talk | contribs) |
||
Line 67: | Line 67: | ||
dataType: "xml", // type of file you are trying to read | dataType: "xml", // type of file you are trying to read | ||
success : function(xmlData){ | success : function(xmlData){ | ||
+ | var count = 1; | ||
$(xmlData).find('cm').each(function() { | $(xmlData).find('cm').each(function() { | ||
var idxArticle = $(this).attr("title").lastIndexOf("/"); | var idxArticle = $(this).attr("title").lastIndexOf("/"); | ||
var Article = $(this).attr("title").substring(idxArticle+1); | var Article = $(this).attr("title").substring(idxArticle+1); | ||
var linkArticle = "https://2012.igem.org/"+$(this).attr("title"); | var linkArticle = "https://2012.igem.org/"+$(this).attr("title"); | ||
- | $("ul#ltArticles").append('<li>' + '<a href="' + linkArticle + '">' + Article + '</a></li>'); | + | $("ul#ltArticles").append('<li>' + '<a href="' + linkArticle + '"><div id="circle"><h2>'+ count + '</h2></div>' + Article + '</a></li>'); |
+ | count += 1; | ||
} ) | } ) | ||
}, | }, |
Revision as of 09:37, 21 August 2012
Follow us !