Template:Team:Trieste/menu
From 2012.igem.org
(Difference between revisions)
(fix regex) |
(fix regex) |
||
Line 16: | Line 16: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(function(){ | $(function(){ | ||
- | title_regexp = /\ | + | title_regexp = /\w+$/; |
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 18:59, 7 September 2012