From c40a425b29b9b72b4ca5b496c2983480b25dc7a7 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 22 Sep 2021 06:48:32 +0300 Subject: Cleanup code Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/clustering.gmi * Remove unnecessary console.log(...) statements that were used in development * Re-arrange the html elements * Rename element id --- wqflask/wqflask/templates/collections/view.html | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html index bca629a9..4378e4a6 100644 --- a/wqflask/wqflask/templates/collections/view.html +++ b/wqflask/wqflask/templates/collections/view.html @@ -36,6 +36,15 @@

+
+ +
+
@@ -51,15 +60,6 @@
- -
- -
Show/Hide Columns: @@ -128,8 +128,7 @@ -
+

@@ -267,17 +266,15 @@ }); function generate_clustered_heatmap(heatmap_data) { - image_area = document.getElementById("plotly-testing-area") + image_area = document.getElementById("clustered-heatmap-image-area") Plotly.newPlot(image_area, heatmap_data) } $("#clustered-heatmap").on("click", function() { heatmap_url = $(this).attr("data-url") - console.log("heatmap url:", heatmap_url) traits = $(".trait_checkbox:checked").map(function() { return this.value }).get(); - console.log("SELECTED TRAITS", traits); $.ajax({ type: "POST", url: heatmap_url, -- cgit v1.2.3