Team:Freiburg Bioware/jquery
From 2010.igem.org
(Difference between revisions)
Line 18: | Line 18: | ||
$(".pageContent").append("<ol id=\"footnotes\"></ol>"); | $(".pageContent").append("<ol id=\"footnotes\"></ol>"); | ||
footnote = 1; | footnote = 1; | ||
- | $(" | + | $("span[title],blockquote[cite],blockquote[title]").addClass("footnote"); |
$(".footnote").each(function() { | $(".footnote").each(function() { | ||
$(this).append("<sup>"+footnote+"</sup>"); | $(this).append("<sup>"+footnote+"</sup>"); | ||
Line 24: | Line 24: | ||
url=$(this).attr("cite"); | url=$(this).attr("cite"); | ||
title=$(this).attr("title"); | title=$(this).attr("title"); | ||
- | + | cite+=title; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
cite+="</li>"; | cite+="</li>"; | ||
$("#footnotes").append(cite); | $("#footnotes").append(cite); |
Revision as of 21:05, 11 October 2010