From 16e2b7e1cbddd4eaf6dd98da4c109c1fb33d6edb Mon Sep 17 00:00:00 2001 From: Winnie <liang15@mcmaster.ca> Date: Mon, 2 Apr 2018 18:35:29 -0400 Subject: [PATCH] Update outputDetails --- tomcat/webapps/Trawl/index.jsp | 2 -- tomcat/webapps/Trawl/script.js | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tomcat/webapps/Trawl/index.jsp b/tomcat/webapps/Trawl/index.jsp index d01909b..78d1f65 100644 --- a/tomcat/webapps/Trawl/index.jsp +++ b/tomcat/webapps/Trawl/index.jsp @@ -78,8 +78,6 @@ Double Handle Slider Modified from: http://jqueryui.com/slider/#range <section id="outputWrapper"> <section id="outputDetails"> - Found x results (x seconds)<br> - Total population:</bold> 66122855<br> <!-- Stuff like population count, entries found, etc. go here --> </section> diff --git a/tomcat/webapps/Trawl/script.js b/tomcat/webapps/Trawl/script.js index 85f8f3d..06b7c59 100644 --- a/tomcat/webapps/Trawl/script.js +++ b/tomcat/webapps/Trawl/script.js @@ -126,6 +126,7 @@ function reqHistogram(params){ if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) { var nodeList = JSON.parse(this.responseText); histogram(nodeList["x"], nodeList["y"]); + document.getElementById("outputDetails").innerHTML = "Found " + nodeList["n"] + " results " + "(" + nodeList["time"] + " seconds)<br> Total Population: " + nodeList["individualCount"]; } else { console.log("Server Response: Error"); //RME -- GitLab