Skip to content

Commit

Permalink
feat: Output now in Bootstrap card layout
Browse files Browse the repository at this point in the history
  • Loading branch information
kordwarshuis committed Jan 26, 2024
1 parent dbe627e commit 829112e
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions public/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 829112e

Please sign in to comment.