Skip to content

Commit

Permalink
change back button link to target place
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-zqwang committed Oct 20, 2024
1 parent c6ec02c commit 2ce80e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ <h2 class="title is-3">Per-dimension Statistics</h2>
</section>

<!------------------------------------------------ Radar Plot -------------------------------------------------------------------->
<section class="section">
<section class="section" id="radar-charts">
<div class="container">
<h4 class="title is-3 has-text-centered">
Breakdown Model Analysis
Expand Down
6 changes: 6 additions & 0 deletions static/js/detailed-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ fetch('./static/data/all_model_keywords_stats.json')
modelSelect1.addEventListener('change', updateCharts);
modelSelect2.addEventListener('change', updateCharts);

// Update the "Back to Main Chart" button href
const backButton = document.querySelector('a.button.is-link');
if (backButton) {
backButton.href = 'index.html#radar-charts';
}

// Initial chart creation
updateCharts();
});
Expand Down

0 comments on commit 2ce80e6

Please sign in to comment.