Blame view

app/static/js/navbar.js 431 Bytes
9f86aeea   Anais Amato   Change navbar act...
1
2
3
/* Read the <span> with information about ul and li to active */
const navbar_active = $("#nav_actived").html();
const navbar_active_split = navbar_active.split(',');
ef5fae02   Anais Amato   Update navbar sho...
4

9f86aeea   Anais Amato   Change navbar act...
5
6
const ul_active = navbar_active_split[0];
const a_active = navbar_active_split[1];
ef5fae02   Anais Amato   Update navbar sho...
7

9f86aeea   Anais Amato   Change navbar act...
8
9
/* Open the ul */
$("#" + ul_active).addClass("show");
ef5fae02   Anais Amato   Update navbar sho...
10

9f86aeea   Anais Amato   Change navbar act...
11
12
13
/* Active the li */
var sublink_activate = $("a[href='/" + a_active + "']");
sublink_activate.addClass("sublink_activate");