diff --git a/breath_plot.html b/breath_plot.html index 0c29cab52522f16b469024bf1e4a7c38eda5143e..4befc9f593ac492daac45299b4804e1c99773460 100644 --- a/breath_plot.html +++ b/breath_plot.html @@ -180,6 +180,9 @@ an interactive or static analysis of a respiration. It'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) {