Updated visualization of results and examples.

This commit is contained in:
2025-01-11 13:13:12 +01:00
parent e6b57ce789
commit d31d41beef
7 changed files with 166 additions and 113 deletions

View File

@@ -21,6 +21,12 @@ $(document).ready(function() {
$(".visualization-table").hide();
$(".table-wrapper tbody tr").click(function() {
// Reset background color for all rows
$(".table-wrapper tbody tr").css("background-color", "");
// Change background color of the clicked row
$(this).css("background-color", "#f0f0f0");
$(".visualization-table").show();
var grew_url = $(this).data("href");
var subtree_hash = $(this).data("subtree-hash");
@@ -49,6 +55,10 @@ $(document).ready(function() {
$(".other-examples").html("<a href=" + other_examples + ">" + other_examples_text + "</a>");
}
});
$(".close-visualization").click(function() {
$(".visualization-table").hide();
$(".table-wrapper tbody tr").css("background-color", "");
});
$(".th-desc").hide();
$(".th-asc").hide();
if ('order_by' in params) {