Template:Team:Waterloo/JS/CiteTag
From 2014.igem.org
(Difference between revisions)
(Commit to support citations in Modelling) |
|||
(13 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