add skills class for skills image
This commit is contained in:
parent
36078fb843
commit
45ab2d0394
2 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
jl-skills {
|
.skills {
|
||||||
img {
|
|
||||||
max-height: 80px;
|
max-height: 80px;
|
||||||
}
|
}
|
||||||
}
|
|
Loading…
Reference in a new issue