add missing domain-server javascript file

This commit is contained in:
Stephen Birarda 2014-08-04 15:37:06 -07:00
parent c786ee5c26
commit 6febca3533

View file

@ -0,0 +1,10 @@
$(document).ready(function(){
var url = window.location;
// Will only work if string in href matches with location
$('ul.nav a[href="'+ url +'"]').parent().addClass('active');
// Will also work for relative and absolute hrefs
$('ul.nav a').filter(function() {
return this.href == url;
}).parent().addClass('active');
});