Team:TU-Eindhoven/Template:UseReferencing
From 2013.igem.org
(Difference between revisions)
Pascalaldo (Talk | contribs) |
Pascalaldo (Talk | contribs) |
||
(8 intermediate revisions not shown) | |||
Line 3: | Line 3: | ||
$('.tue-reference').each(function() { | $('.tue-reference').each(function() { | ||
var $this = $(this); | var $this = $(this); | ||
- | $('.tue-reflist').append("" + refnr + ". " + $this.html() + "< | + | var refid = $this.children('.tue-refid').html(); |
+ | $('.tue-reflist').append("<span style='display:block;padding-left:30px;text-indent:-30px;'><b>" + refnr + ".</b> " + $this.html() + "</span>"); | ||
$this.html("<sup class=\"tue-inlineref\">[" + refnr + "]</sup>"); | $this.html("<sup class=\"tue-inlineref\">[" + refnr + "]</sup>"); | ||
- | $this.show( | + | $this.show(); |
+ | $('#tue-refagain-' + refid).each(function() { | ||
+ | $(this).html("<sup class=\"tue-inlineref\">[" + refnr + "]</sup>"); | ||
+ | $(this).show(); | ||
+ | }); | ||
refnr = refnr + 1; | refnr = refnr + 1; | ||
}); | }); | ||
</script></html> | </script></html> |
Latest revision as of 12:03, 7 September 2013