Template:Team:Waterloo/JS/CiteTag
From 2014.igem.org
(Difference between revisions)
m (moved Team:Waterloo/JS/CiteTag to Template:Team:Waterloo/JS/CiteTag: Should be a template.) |
|||
(12 intermediate revisions not shown) | |||
Line 3: | Line 3: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | + | $( "cite" ).each( | |
- | + | function( index) { | |
- | function( | + | 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