mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 06:19:49 +02:00
add missing domain-server javascript file
This commit is contained in:
parent
c786ee5c26
commit
6febca3533
1 changed files with 10 additions and 0 deletions
10
domain-server/resources/web/js/domain-server.js
Normal file
10
domain-server/resources/web/js/domain-server.js
Normal 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');
|
||||
});
|
Loading…
Reference in a new issue