added languages

This commit is contained in:
Karma Riuk
2023-09-07 13:55:54 +02:00
parent db4f5b8b51
commit e4b90621b3
4 changed files with 104 additions and 7 deletions

View File

@ -175,7 +175,7 @@
/**
* Skills animation
*/
let skillsContent = select(".skills-content .progress", true);
let skillsContent = select(".progress", true);
if (skillsContent) {
skillsContent.forEach((skill) => {
new Waypoint({
@ -184,7 +184,12 @@
handler: function(direction) {
let progress = skill.querySelectorAll(".progress-bar");
progress.forEach((el) => {
el.style.width = el.getAttribute("aria-valuenow") + "%";
let percent =
100 *
(+el.getAttribute("aria-valuenow") /
(+el.getAttribute("aria-valuemax") -
+el.getAttribute("aria-valuemin")));
el.style.width = percent + "%";
});
},
});