-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
135 lines (115 loc) · 3.77 KB
/
script.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
let button=document.querySelector('.button');
let btn=document.querySelector('button');
fog=0;
button.addEventListener('mouseenter',function(){
if(fog==0){
btn.style.backgroundColor="rgb(25 4 4)";
fog=1;
}
else{
btn.style.backgroundColor="black";
fob=0;
}
})
button.addEventListener('mouseleave',function(){
if(fog==0){
btn.style.backgroundColor="black";
fog=1;
}
else{
btn.style.backgroundColor="gray";
fob=0;
}
})
let cv=document.querySelector('.cv');
let arow=document.querySelector('#arow');
fog=0;
cv.addEventListener('mouseenter',function(){
arow.style.color="red";
})
f=0;
cv.addEventListener('mouseleave',function(){
arow.style.color="black";
});
let twit=document.querySelector('#twit');
let t=document.querySelector('#t');
twit.addEventListener('mouseenter',function(){
t.style.color="blue";
})
twit.addEventListener('mouseleave',function(){
t.style.color="black";
})
let X=document.querySelector('#X');
let smallx=document.querySelector('#small-x');
X.addEventListener('mouseenter',function(){
smallx.style.color="blue";
});
X.addEventListener('mouseleave',function(){
smallx.style.color="black";
});
let insta=document.querySelector('#Insta');
let instaicon=document.querySelector('#instaicon');
insta.addEventListener('mouseenter',function(){
instaicon.style.color="deeppink";
});
insta.addEventListener('mouseleave',function(){
instaicon.style.color="black";
});
let child1=document.querySelector('.child1');
let c1=document.querySelector('#child1');
child1.addEventListener('mouseenter',function(){
c1.style.backgroundColor="silver";
});
child1.addEventListener('mouseleave',function(){
c1.style.backgroundColor="whitesmoke"
});
let child2=document.querySelector('.child2');
let c2=document.querySelector('#child2');
child2.addEventListener('mouseenter',function(){
c2.style.backgroundColor="silver";
});
child2.addEventListener('mouseleave',function(){
c2.style.backgroundColor="whitesmoke"
});
let child3=document.querySelector('.child3');
let c3=document.querySelector('#child3');
child3.addEventListener('mouseenter',function(){
c3.style.backgroundColor="silver";
});
child3.addEventListener('mouseleave',function(){
c3.style.backgroundColor="whitesmoke"
});
let button2=document.querySelector(".button2");
let btn2=document.querySelector('#btn2');
button2.addEventListener('mouseenter',function(){
btn2.style.backgroundColor="silver";
});
button2.addEventListener('mouseleave',function(){
btn2.style.backgroundColor="firebrick";
btn2.style.color="black";
})
let button3=document.querySelector(".button3");
let btn3=document.querySelector('#btn3');
button3.addEventListener('mouseenter',function(){
btn3.style.backgroundColor="silver";
});
button3.addEventListener('mouseleave',function(){
btn3.style.backgroundColor="firebrick";
btn3.style.color="black";
})
let img=document.querySelector('.img');
let mg=document.querySelector('#mg');
img.addEventListener('mouseenter',function(){
mg.style.backgroundColor="grey";
});
img.addEventListener('mouseleave',function(){
mg.style.backgroundColor='silver';
});
let mail=document.querySelector('.mail');
let msgicon=document.querySelector('.ri-mail-fill');
mail.addEventListener('mouseenter',function(){
msgicon.style.color="crimson";
});
mail.addEventListener('mouseleave',function(){
msgicon.style.color="white";
});