Template:Team:Waterloo/JS/CiteTag

From 2014.igem.org

(Difference between revisions)
 
(7 intermediate revisions not shown)
Line 5: Line 5:
$( "cite" ).each(
$( "cite" ).each(
   function( index) {
   function( index) {
-
     $(this).innerHTML( "<a>" + $( "#Citation_" + $(this).attr("ref") ).text() + "</a>" );
+
     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