Skip to content

Commit

Permalink
Deploying to gh-pages from @ 829112e 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
kordwarshuis committed Jan 26, 2024
1 parent dc741f0 commit b7bb7bf
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions js/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,20 @@ function loadCollections() {
for (let i = 0; i < terms.length; i++) {
// loop through kerificTerms.terms.term and kerificTerms.terms.definition
// create a list item for each
domString += `<h2>${terms[i].term}</h2>`;
domString += `${terms[i].definition}`;
domString += `<p>${terms[i].organisation}</p>`;

domString += `
<div class="card mb-5">
<div class="card-body">
<h2>${terms[i].term}</h2>
<p class="card-text">
${terms[i].definition}
</p>
<p class="card-text">
This definition comes from: ${terms[i].organisation}
</p>
</div>
</div>
`;
}
}
document.getElementById('container-collection').innerHTML = domString;
Expand Down

0 comments on commit b7bb7bf

Please sign in to comment.