update ui and add new audio components
This commit is contained in:
@@ -37,6 +37,20 @@
|
||||
setActiveSection("home");
|
||||
});
|
||||
|
||||
bindClick(elements.openAudioEl, () => {
|
||||
const activeSection = getActiveSection();
|
||||
const isAudioSectionActive = activeSection === "audio-notes" || activeSection === "audio-circle";
|
||||
setActiveSection(isAudioSectionActive ? "home" : "audio-notes");
|
||||
});
|
||||
|
||||
bindClick(elements.openAudioCircleEl, () => {
|
||||
setActiveSection("audio-circle");
|
||||
});
|
||||
|
||||
bindClick(elements.openAudioNotesEl, () => {
|
||||
setActiveSection("audio-notes");
|
||||
});
|
||||
|
||||
bindClick(elements.openTarotEl, () => {
|
||||
if (getActiveSection() === "tarot") {
|
||||
setActiveSection("home");
|
||||
|
||||
Reference in New Issue
Block a user