Team:XMU-China/link add

From 2014.igem.org

Revision as of 18:37, 16 October 2014 by Lukeluke (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<script type="text/javascript"> $(document).ready(function(){ $("span").addClass(function() { var target = $(this); var value = target.text(); var value_begin = value.substr(0,4); if(value_begin == "BBa_"){ return "biobrick"; } else{ return " "; }; }); $("span.biobrick").wrap(function(){ var target = $(this); var text = target.text(); var a = "http://parts.igem.org/Part:" + text; var warpcontent = "<a target='_blank' href='" + a +"'></a>"; return warpcontent; }); }); </script>