mirror of
https://github.com/pvrzz/atmosphere.git
synced 2026-11-29 05:22:26 +00:00
Home start page with shelves for recent, new, most played and playlists
This commit is contained in:
@@ -421,10 +421,10 @@ function bindShell() {
|
||||
}
|
||||
|
||||
function go(view) {
|
||||
if (state.view === view) return;
|
||||
$$(".nav-item[data-nav]").forEach((b) => b.dataset.nav === view ? b.setAttribute("aria-current", "page") : b.removeAttribute("aria-current"));
|
||||
if (state.view === view) return markLibNav();
|
||||
state.view = view;
|
||||
$$(".view").forEach((v) => (v.hidden = v.dataset.view !== view));
|
||||
$$(".nav-item[data-nav]").forEach((b) => b.dataset.nav === view ? b.setAttribute("aria-current", "page") : b.removeAttribute("aria-current"));
|
||||
closeSaveMenu();
|
||||
closeMenus();
|
||||
if (view !== "library") closeDrawers();
|
||||
|
||||
Reference in New Issue
Block a user