forked from Vidushi-Gupta/Saathi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.js
37 lines (27 loc) · 1.32 KB
/
popup.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
28
29
30
31
32
33
34
35
36
37
window.onload = function() {
document.getElementById("fantastic").onmouseover = function() { hover1() };
document.getElementById("good").onmouseover = function() { hover2() };
document.getElementById("confused").onmouseover = function() { hover3() };
document.getElementById("sad").onmouseover = function() { hover4() };
document.getElementById("miserable").onmouseover = function() { hover5() };
document.getElementById("fantastic").onmouseout = function() { hover1() };
document.getElementById("good").onmouseover = function() { hover2() };
document.getElementById("confused").onmouseover = function() { hover3() };
document.getElementById("sad").onmouseover = function() { hover4() };
document.getElementById("miserable").onmouseover = function() { hover5() };
function hover1() {
document.getElementById("mood-sticker").src= "assets/fantastic.png";
}
function hover2() {
document.getElementById("mood-sticker").src="assets/happy.png";
}
function hover3() {
document.getElementById("mood-sticker").src="assets/confused.png";
}
function hover4() {
document.getElementById("mood-sticker").src="assets/sad.png";
}
function hover5() {
document.getElementById("mood-sticker").src="assets/miserable.png";
}
}