add skills class for skills image

This commit is contained in:
Jonas Leder 2022-01-17 19:42:12 +01:00
parent 36078fb843
commit 45ab2d0394
2 changed files with 3 additions and 4 deletions

View file

@ -6,6 +6,7 @@ class Skill extends HTMLElement {
if (xhr.readyState == 4 && xhr.status == 200) { if (xhr.readyState == 4 && xhr.status == 200) {
JSON.parse(xhr.responseText).forEach(skill => { JSON.parse(xhr.responseText).forEach(skill => {
const image = document.createElement("img"); const image = document.createElement("img");
image.classList.add("skills");
image.src = "/API/getFile.php?filename=" + skill; image.src = "/API/getFile.php?filename=" + skill;
this.appendChild(image); this.appendChild(image);
}); });

View file

@ -1,5 +1,3 @@
jl-skills { .skills {
img {
max-height: 80px; max-height: 80px;
} }
}