mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-25 09:27:43 +00:00
21 lines
596 B
JavaScript
21 lines
596 B
JavaScript
document.addEventListener('DOMContentLoaded', async () => {
|
|
const firstPanel = document.querySelector('#firstPanel')
|
|
const secondPanel = document.querySelector('#secondPanel')
|
|
|
|
// Listen to hovers
|
|
firstPanel.addEventListener('mouseover', () => {
|
|
secondPanel.classList.add('darken')
|
|
})
|
|
|
|
firstPanel.addEventListener('mouseout', () => {
|
|
secondPanel.classList.remove('darken')
|
|
})
|
|
|
|
secondPanel.addEventListener('mouseover', () => {
|
|
firstPanel.classList.add('darken')
|
|
})
|
|
|
|
secondPanel.addEventListener('mouseout', () => {
|
|
firstPanel.classList.remove('darken')
|
|
})
|
|
}) |