Team:Freiburg Bioware/jquery

From 2010.igem.org

(Difference between revisions)
Line 9: Line 9:
   $("img").wrap('<div class="img" />');
   $("img").wrap('<div class="img" />');
   $("img").after(function() {
   $("img").after(function() {
-
   return '<div>' + 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 10:37, 18 October 2010