From 0252ec06ed57c927d6e48ff189bbd14936cc9dfd Mon Sep 17 00:00:00 2001 From: davidusb-geek Date: Thu, 16 Mar 2023 22:17:40 +0100 Subject: [PATCH] Feat - Testing implementation of text box in index html --- src/emhass/templates/index.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/emhass/templates/index.html b/src/emhass/templates/index.html index cecb2695..c53da466 100644 --- a/src/emhass/templates/index.html +++ b/src/emhass/templates/index.html @@ -22,6 +22,10 @@

Use the buttons below to fit + <


@@ -87,6 +91,23 @@

Use the buttons below to fit $.ajax(settings).done(function (response) { }); }); + // document.getElementById('forecast-model-fit').addEventListener('click', function() { + // var formData = $("runtimeparams").serialize(); + // // send ajax + // $.ajax({ + // url: "/action/forecast-model-fit", + // type : "POST", + // contentType : "application/json;charset=UTF-8", + // dataType : 'json', + // data : formData, + // success : function(result) { + // console.log(result); + // }, + // error: function(xhr, resp, text) { + // console.log(xhr, resp, text); + // } + // }) + // }); document.getElementById('forecast-model-fit').addEventListener('click', function() { var url = "/action/forecast-model-fit" var settings = {