-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
164 lines (161 loc) · 4.85 KB
/
main.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
let colImg=document.getElementById('colImg');
let colImgWeather=document.getElementById('colImgWeather')
let colImgLasles=document.getElementById('colImgLasles');
let colImgPizza=document.getElementById('colImgPizza');
let colImgPelio=document.getElementById('colImgPelio');
let colImgDonate=document.getElementById('colImgDonate');
colImg.addEventListener("mouseenter", function(event){
btnImg.style.display="flex";
btnImg.style.cursor="pointer"
linksBtn.style.display="flex";
})
colImg.addEventListener("mouseleave", function(event){
btnImg.style.display="none";
linksBtn.style.display="none";
})
colImgWeather.addEventListener("mouseenter", function(event){
btnWeather.style.display="flex";
btnWeather.style.cursor="pointer"
linksWeather.style.display="flex";
})
colImgWeather.addEventListener("mouseleave", function(event){
btnWeather.style.display="none";
linksWeather.style.display="none";
})
colImgLasles.addEventListener("mouseenter", function(event){
btnLasles.style.display="flex";
btnLasles.style.cursor="pointer"
linkLasles.style.display="flex";
})
colImgLasles.addEventListener("mouseleave", function(event){
btnLasles.style.display="none";
linkLasles.style.display="none";
})
colImgPizza.addEventListener("mouseenter", function(event){
btnPizza.style.display="flex";
btnPizza.style.cursor="pointer"
linksPizza.style.display="flex";
})
colImgPizza.addEventListener("mouseleave", function(event){
btnPizza.style.display="none";
linksPizza.style.display="none";
})
colImgPelio.addEventListener("mouseenter", function(event){
btnPelio.style.display="flex";
btnPelio.style.cursor="pointer"
linksPelio.style.display="flex";
})
colImgPelio.addEventListener("mouseleave", function(event){
btnPelio.style.display="none";
linksPelio.style.display="none";
})
colImgDonate.addEventListener("mouseenter", function(event){
btnDonate.style.display="flex";
btnDonate.style.cursor="pointer"
linksDonate.style.display="flex";
})
colImgDonate.addEventListener("mouseleave", function(event){
btnDonate.style.display="none";
linksDonate.style.display="none";
})
colImgNike.addEventListener("mouseenter", function(event){
btnNike.style.display="flex";
btnNike.style.cursor="pointer"
linksNike.style.display="flex";
})
colImgNike.addEventListener("mouseleave", function(event){
btnNike.style.display="none";
linksNike.style.display="none";
})
let url='https://api.github.com/users/';
async function getUser(username){
let {data}=await axios(url+username);
console.log(data);
nameId.innerText=data.name;
bioGH.innerText=data.bio;
let unv=nameId.value;
getUser(unv);
}
getUser('okqsna');
p3Page1.onclick=()=>{
page2.style.display="flex";
page1.style.display="none";
}
logoPage1.onclick=()=>{
page2.style.display="flex";
page1.style.display="none";
}
closePage2.onclick=()=>{
page2.style.display="none";
page1.style.display="flex";
}
aboutPage2.onclick=()=>{
page2.style.display="none";
page3.style.display="flex";
page4.style.display="flex";
}
skillsPage2.onclick=()=>{
page1.style.display="none";
page2.style.display="none";
page3.style.display="none";
page4.style.display="none";
page5.style.display="flex";
page6.style.display="none";
page7.style.display="none";
}
projectsPage2.onclick=()=>{
page1.style.display="none";
page2.style.display="none";
page3.style.display="none";
page4.style.display="none";
page5.style.display="none";
page6.style.display="flex";
page7.style.display="none";
}
contactsPage2.onclick=()=>{
page1.style.display="none";
page2.style.display="none";
page3.style.display="none";
page4.style.display="none";
page5.style.display="none";
page6.style.display="none";
page7.style.display="flex";
}
explorePage4.onclick=()=>{
page3.style.display="none";
page4.style.display="none";
page5.style.display="flex";
}
logoPage4.onclick=()=>{
page1.style.display="none";
page2.style.display="flex";
page3.style.display="none";
page4.style.display="none";
page5.style.display="none";
page6.style.display="none";
page7.style.display="none";
}
logoPage5.onclick=()=>{
page2.style.display="flex";
page5.style.display="none";
}
logoPage6.onclick=()=>{
page6.style.display="none";
page2.style.display="flex";
}
logoPage7.onclick=()=>{
page7.style.display="none";
page2.style.display="flex";
}
pSkills.onclick=()=>{
page5.style.display="none";
page6.style.display="flex";
}
p1Skills.onclick=()=>{
page5.style.display="none";
page6.style.display="flex";
}
p2Skills.onclick=()=>{
page5.style.display="none";
page6.style.display="flex";
}