Template:Team:Trieste/menu

From 2012.igem.org

(Difference between revisions)
(fix js)
Line 66: Line 66:
    <script type="text/javascript">
    <script type="text/javascript">
$(function(){
$(function(){
-
    title_regexp = /\w+$/;
+
    title_regexp = /https://2012.igem.org/Team:Trieste/([a-zA-Z]+)/.*/;
    title = title_regexp.exec(location.href);
    title = title_regexp.exec(location.href);
    $('#navigation > li > a[href$=' + title + ']').parent().addClass('select');
    $('#navigation > li > a[href$=' + title + ']').parent().addClass('select');

Revision as of 13:32, 26 September 2012