-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.js
41 lines (33 loc) · 1.24 KB
/
footer.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
const footer = document.createElement("div");
footer.classList.add("snowman_footer");
const credentials = document.createElement("div");
credentials.classList.add("snowman_credentials");
footer.append(credentials);
const school = document.createElement("a");
school.classList.add("snowman_info", "rsschool");
credentials.append(school);
// school.textContent = "RSSchool";
school.setAttribute("href", "https://rs.school/");
const creator = document.createElement("a");
creator.classList.add("snowman_info");
credentials.append(creator);
creator.setAttribute("href", "https://github.com/lyutails");
const creatorName = document.createElement("p");
creatorName.textContent = "lyutails";
creator.appendChild(creatorName);
const creatorIcon = document.createElement("span");
creatorIcon.classList.add("snowman_creator_icon");
creator.appendChild(creatorIcon);
const orange = document.createElement("div");
orange.classList.add("snowman_orange");
footer.append(orange);
orange.onclick = function () {
if (orange.classList.contains("anim_forward")) {
orange.classList.remove("anim_forward");
orange.classList.add("anim_backward");
} else {
orange.classList.remove("anim_backward");
orange.classList.add("anim_forward");
}
};
export default footer;