diff --git a/static/javascript/owned.js b/static/javascript/owned.js index 064bf85..cf37112 100644 --- a/static/javascript/owned.js +++ b/static/javascript/owned.js @@ -1,5 +1,7 @@ document.body.onload=loadOwnedGames() +document.getElementById('owned_nav').classList.add('active') + async function loadOwnedGames() { var boardgame_datatable = new DataTable('.boardgame_table', { diff --git a/static/javascript/plays.js b/static/javascript/plays.js index db56ca7..bcd11dc 100644 --- a/static/javascript/plays.js +++ b/static/javascript/plays.js @@ -1,4 +1,5 @@ document.body.onload=loadPlays() +document.getElementById('plays_nav').classList.add('active') async function loadPlays() { diff --git a/static/javascript/statistics.js b/static/javascript/statistics.js index bafc36b..bef4555 100644 --- a/static/javascript/statistics.js +++ b/static/javascript/statistics.js @@ -1,4 +1,5 @@ document.body.onload=loadStatistics() +document.getElementById('statistics_nav').classList.add('active') async function loadStatistics(){ const overtimechart = document.getElementById("overtimechart") diff --git a/static/javascript/wishlist.js b/static/javascript/wishlist.js index b383409..7637442 100644 --- a/static/javascript/wishlist.js +++ b/static/javascript/wishlist.js @@ -1,5 +1,5 @@ document.body.onload=loadWishlistedGames() - +document.getElementById('wishlist_nav').classList.add('active') async function loadWishlistedGames() { diff --git a/templates/base.jinja b/templates/base.jinja index ae73e61..bde3be8 100644 --- a/templates/base.jinja +++ b/templates/base.jinja @@ -20,16 +20,16 @@