Template:Team:Paris-Saclay/left-column
From 2012.igem.org
(Difference between revisions)
YohannPetiot (Talk | contribs) |
YohannPetiot (Talk | contribs) |
||
Line 29: | Line 29: | ||
async : false, | async : false, | ||
data:{ | data:{ | ||
- | format: 'xml', | + | format: 'xml', |
action: 'query', | action: 'query', | ||
titles: Title, | titles: Title, | ||
Line 37: | Line 37: | ||
$(xmlData).find('cl').each(function() { | $(xmlData).find('cl').each(function() { | ||
Category = $(this).attr("title"); | Category = $(this).attr("title"); | ||
+ | var idxCategory = Category.lastIndexOf("/"); | ||
+ | var name = Category.substring(idxCategory+1); | ||
$("h1#ctArticles").append(Category); | $("h1#ctArticles").append(Category); | ||
} ) | } ) |
Revision as of 19:47, 20 August 2012
Follow us !