Template:Team:Trieste/menu
From 2012.igem.org
(Difference between revisions)
(fix js) |
(fix regexp) |
||
Line 66: | Line 66: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(function(){ | $(function(){ | ||
- | title_regexp = / | + | title_regexp = /http:\/\/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:33, 26 September 2012