From 2ce80e66cad6b3515998195dd9d990a0f823396e Mon Sep 17 00:00:00 2001 From: eric-zqwang Date: Sun, 20 Oct 2024 00:05:27 -0700 Subject: [PATCH] change back button link to target place --- index.html | 2 +- static/js/detailed-script.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 28bda46..7ce61b1 100644 --- a/index.html +++ b/index.html @@ -347,7 +347,7 @@

Per-dimension Statistics

-
+

Breakdown Model Analysis diff --git a/static/js/detailed-script.js b/static/js/detailed-script.js index e19e0a8..e232a3b 100644 --- a/static/js/detailed-script.js +++ b/static/js/detailed-script.js @@ -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(); });