Blame view

app/static/js/navbar.js 416 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
/* Active the li */
fd63e06e   Anais Amato   update coloration...
12
var sublink_activate = $("#" + a_active);
9f86aeea   Anais Amato   Change navbar act...
13
sublink_activate.addClass("sublink_activate");