Template:Team:Paris-Saclay/left-column
From 2012.igem.org
(Difference between revisions)
YohannPetiot (Talk | contribs) |
YohannPetiot (Talk | contribs) |
||
Line 12: | Line 12: | ||
<div id="articles-widget" class="widget"> | <div id="articles-widget" class="widget"> | ||
- | <div id="ltArticles"></div> | + | <div> |
+ | <ul id="ltArticles"> | ||
+ | </ul> | ||
+ | </div> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(document).ready(function() { | $(document).ready(function() { | ||
Line 29: | Line 32: | ||
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"); | |
+ | $("ul#ltArticles").append('<li>' + '<a href="' + linkArticle + '">' + Article + '</a></li>'; | ||
} ) | } ) | ||
}, | }, |
Revision as of 17:43, 20 August 2012
Follow us !