Skip to content

Commit

Permalink
fixed interests
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRedacted committed Sep 19, 2024
1 parent ca77226 commit 04bb54e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions card.html
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,13 @@ <h2 id="headline">Let's connect</h2>
headline.innerHTML = details.headline;
bio.innerHTML = details.bio;

interests = details.interests;
const interestsArray = interests.split(", ");
interestList = details.interests;
const interestsArray = interestList.split(", ");
for (let interest of interestsArray) {
const div = document.createElement('div');
div.classList.add("interest");
div.innerHTML = interest;
interests.appendChild(div);
const interestDiv = document.createElement('div');
interestDiv.classList.add("interest");
interestDiv.innerHTML = interest;
interests.appendChild(interestDiv);
}
}

Expand Down

0 comments on commit 04bb54e

Please sign in to comment.