-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEvents.js
28 lines (23 loc) · 920 Bytes
/
Events.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const logoimg = document.getElementById("logo");
logoimg.addEventListener("mouseenter", () => {
if (logoimg.src != "assets/images/SplitDollar Inverted.png") {
logoimg.src = "assets/images/SplitDollar Inverted.png";
} else {
logoimg.src = "assets/images/SplitDollar.png";
}
logoimg.addEventListener("mouseleave", () => {
if (logoimg.src != "assets/images/SplitDollar.png") {
logoimg.src = "assets/images/SplitDollar.png";
} else {
logoimg.src = "assets/images/SplitDollar Inverted.png";
}
})
});
const money = document.getElementById("moneyz");
money.addEventListener('mouseover', () => {
if (money.innerHTML === "Split the bill works on all platforms 💵") {
money.innerHTML = "Split the bill works on all platforms 🤑";
} else {
money.innerHTML = "Split the bill works on all platforms 💵";
}
});