[c] debug change to red on hover and not always
This commit is contained in:
parent
77ff08f737
commit
77d866f3c9
1 changed files with 8 additions and 4 deletions
|
@ -17,11 +17,15 @@
|
||||||
function checkOverflow() {
|
function checkOverflow() {
|
||||||
const modCards = document.querySelectorAll('.mod-card');
|
const modCards = document.querySelectorAll('.mod-card');
|
||||||
modCards.forEach((modCard) => {
|
modCards.forEach((modCard) => {
|
||||||
if (modCard.scrollHeight > modCard.offsetHeight) {
|
modCard.addEventListener('mouseover', () => {
|
||||||
modCard.style.backgroundColor = 'red';
|
if (modCard.scrollHeight > modCard.offsetHeight) {
|
||||||
} else {
|
modCard.style.backgroundColor = 'red';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
modCard.addEventListener('mouseout', () => {
|
||||||
modCard.style.backgroundColor = '';
|
modCard.style.backgroundColor = '';
|
||||||
}
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue