Template:Team:Waterloo/JS/CiteTag
From 2014.igem.org
(Difference between revisions)
(9 intermediate revisions not shown) | |||
Line 4: | Line 4: | ||
$( "cite" ).each( | $( "cite" ).each( | ||
- | function( index | + | function( index) { |
- | + | var name = "#Citation_" + $(this).attr("ref"); | |
+ | $(this).html( "<a href=\"" + name + "\">" + $(name).text() + "</a>" ); | ||
} | } | ||
); | ); | ||
+ | |||
+ | $( ":target" ).css( "background-color", "palegoldenrod" ); | ||
</script> | </script> | ||
</body> | </body> | ||
</html> | </html> |
Latest revision as of 01:59, 9 October 2014