mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-03-30 22:59:13 +08:00
5 lines
106 B
CoffeeScript
5 lines
106 B
CoffeeScript
$ ->
|
|
$('nav a').each ->
|
|
$(@).parent().addClass('active') if $(@).attr('href') is location.pathname
|
|
|