diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2015-03-28 17:00:11 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2015-03-28 17:00:11 -0400 |
| commit | 34e086b350613ec43de3a19f9fd617464e49c635 (patch) | |
| tree | 7c523df76f97ad9f91557c74613670209f552abd | |
| parent | 6dede725fce32d3fcc8f1dcdb730e2ef94f2ba3a (diff) | |
| download | famille-flask-34e086b350613ec43de3a19f9fd617464e49c635.tar.gz | |
update active tab
| -rw-r--r-- | static/famille.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/static/famille.js b/static/famille.js index 491fb3c..b460392 100644 --- a/static/famille.js +++ b/static/famille.js @@ -20,7 +20,9 @@ $(document).ready(function(){ $(".tohide").hide(0); }); $("#kadobutton").click(function(){ - $(".kadoscope").animate({opacity:"1"},"5000"); + $(".kadoscope").animate({opacity:"1"},"5000"); }); $('span.timeago').timeago(); + var addr = $(location).attr('pathname'); + $("#"+addr.replace(/\//g,"")).addClass("active") }); |
