Skip to content

Commit

Permalink
loop
Browse files Browse the repository at this point in the history
  • Loading branch information
joocer committed Mar 26, 2024
1 parent 10437bc commit 8ca4305
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/static/dist/js/apollo.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ document.getElementById("assistantButton").addEventListener("click", function ()

console.log(data);


let type_suggestion = `
<div class="card">
<div class="card-body">
<h5 class="card-title">Continue Exploring</h5>
<h5 class="card-title">Find More</h5>
<p class="card-text">
${data.token} is a ${data.class}
<br />
Expand All @@ -28,6 +27,12 @@ document.getElementById("assistantButton").addEventListener("click", function ()
</div>`;

suggestion_container.innerHTML = type_suggestion;

apollo_api.get("v1/relations", null, { token: prompt }).then(data => {
for (let i = 0; i++; i < data.length) {
console.log(data[i])
}
});
}

).catch(err => {
Expand Down

0 comments on commit 8ca4305

Please sign in to comment.