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