From 5740c93bcf44e3680c2fd7f0e0f063ceda8f6ac0 Mon Sep 17 00:00:00 2001
From: "Robert L. Read" <read.robert@gmail.com>
Date: Mon, 4 Jan 2021 22:15:16 -0600
Subject: [PATCH] hacky code as a start for Ben

---
 breath_plot.html | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/breath_plot.html b/breath_plot.html
index 0c29cab..4befc9f 100644
--- a/breath_plot.html
+++ b/breath_plot.html
@@ -180,6 +180,9 @@ an interactive or static analysis of a respiration. It&#39;s primary purpose is
         <input type="text" class="form-control" id="samples_to_plot" aria-describedby="samples_to_plot">
       </div>
 
+      <div id="control_area">
+  <button id="control_area_button" type="button" class="btn btn-primary">START</button>
+        </div>
 <div>
   <label for="livetoggle">Plot Live:</label>
 <label class="switch">
@@ -1397,6 +1400,22 @@ $( document ).ready(function() {
   else
     DSERVER_URL = "http://localhost";
 
+  $("#control_area_button").click(function(event) {
+    var lh = "http://localhost:8080";
+        alert('making ajax call');
+    $.ajax({url: lh+"/README.md",
+           success: function(verification) {
+             alert("verifcation"+verification);
+           },
+           error: function(xhr, ajaxOptions, thrownError) {
+	    console.log("Error!" + xhr.status);
+	    console.log(thrownError);
+          }
+           });
+
+  });
+
+
 
   $("button").click(function(event)
                     {
-- 
GitLab