mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-29 05:28:00 +02:00
Tooltip show/hide work in progress
This commit is contained in:
parent
2aca90d993
commit
7fd5f11898
3 changed files with 70 additions and 54 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue