Tooltip show/hide work in progress

This commit is contained in:
banaanihillo@protonmail.ch 2024-04-20 11:31:52 +03:00
parent 2aca90d993
commit 7fd5f11898
3 changed files with 70 additions and 54 deletions

View file

@ -17,6 +17,7 @@ export const useData = defineStore('data', () => {
lyrics: '',
src: [],
urls: [],
tooltipIsOpen: false,
}),
player = usePlayer();
@ -148,10 +149,16 @@ export const usePlayer = defineStore('player', () => {
info: false,
add: false,
vol: store.vol ? store.vol / 100 : 1,
tooltipIsOpen: false,
});
function toggle(i) {
if (typeof state[i] == 'boolean') state[i] = !state[i];
console.log(i)
console.log(state[i])
if (typeof state[i] == 'boolean') {
console.log(state[i])
return state[i] = !state[i]
}
}
function setTime(t) {