Team:Freiburg Bioware/jquery
From 2010.igem.org
(Difference between revisions)
Line 14: | Line 14: | ||
$("img").after(function() { | $("img").after(function() { | ||
return '<div class="subtitle">' + this.alt + '</div>'; | return '<div class="subtitle">' + this.alt + '</div>'; | ||
+ | class=$(this).attr("class"); | ||
+ | $(this).addClass(" + class + "); | ||
}); | }); | ||
$(".pageContent").append("<ol id=\"footnotes\"></ol>"); | $(".pageContent").append("<ol id=\"footnotes\"></ol>"); |
Revision as of 12:24, 18 October 2010