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