mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-02-02 21:27:52 +01:00
Change interval time
This commit is contained in:
@@ -44,7 +44,7 @@ export default defineComponent({
|
|||||||
document.getElementById(new_color.name)!.classList.toggle(new_color.color)
|
document.getElementById(new_color.name)!.classList.toggle(new_color.color)
|
||||||
setTimeout(() => document.getElementById(color.name)!.classList.toggle(color.color), 0)
|
setTimeout(() => document.getElementById(color.name)!.classList.toggle(color.color), 0)
|
||||||
CURRENT === COLORS.length - 1 ? CURRENT = 0 : CURRENT++
|
CURRENT === COLORS.length - 1 ? CURRENT = 0 : CURRENT++
|
||||||
}, 3000)
|
}, 2000)
|
||||||
})
|
})
|
||||||
|
|
||||||
onUnmounted(() => clearInterval(task))
|
onUnmounted(() => clearInterval(task))
|
||||||
|
|||||||
Reference in New Issue
Block a user