Skip to content

Commit

Permalink
Fix3
Browse files Browse the repository at this point in the history
  • Loading branch information
weihsinyeh committed Mar 26, 2024
1 parent af914be commit 6ee45ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,23 +80,23 @@ <h3 style="text-align: center;">video name </h3>
<div id="carousel" data-auto="true">
<div id="scene">
<div class="carousel_item">
<p>Prediction 1 </p>
<h4>Prediction 1 </h4>
<img src="./epoch80/467205307287470390_0.gif" alt="">
</div>
<div class="carousel_item">
<p>Prediction 2 </p>
<h4>Prediction 2 </h4>
<img src="./epoch81/467205307287470390_0.gif" alt="">
</div>
<div class="carousel_item">
<p>Prediction 3 </p>
<h4>Prediction 3 </h4>
<img src="./epoch82/467205307287470390_0.gif" alt="">
</div>
<div class="carousel_item">
<p>Prediction 4 </p>
<h4>Prediction 4 </h4>
<img src="./epoch83/467205307287470390_0.gif" alt="">
</div>
<div class="carousel_item">
<p>Prediction 5 </p>
<h4>Prediction 5 </h4>
<img src="./epoch84/467205307287470390_0.gif" alt="">
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ window.addEventListener("load", async function() {
}
text_arr = parent.document.querySelectorAll("p")
await loadJson(text_arr[0], json_path);
prediction_arr = parent.document.querySelectorAll("h3")
for (let j=0; j<5;j++){
epoch = j + 80;
epoch_path = result_epoch + "/results_epoch" + epoch + ".json";
await loadEpoch(text_arr[1+j], epoch_path,folder_name[i]);
epoch_path = result_epoch + "/results_epoch" + (epoch+j).toString() + ".json";
await loadEpoch(prediction_arr[j], epoch_path,folder_name[i]);
}
//append new child to container
container.appendChild(new_child);
Expand Down

0 comments on commit 6ee45ea

Please sign in to comment.