m |
|||
Line 173: | Line 173: | ||
transition: all 0.4s ease | transition: all 0.4s ease | ||
} | } | ||
+ | |||
+ | $(function() { | ||
+ | var pgurl = window.location.href.substr(window.location.href | ||
+ | .lastIndexOf("/")+1); | ||
+ | $("#nav ul li a").each(function(){ | ||
+ | if($(this).attr("href") == pgurl || $(this).attr("href") == '' ) | ||
+ | $(this).addClass("active"); | ||
+ | }) | ||
+ | }); | ||
</style> | </style> |
Revision as of 15:33, 12 July 2016