diff --git a/src/interface/web/index.html b/src/interface/web/index.html index 6f0cd0a8..46e1ecc7 100644 --- a/src/interface/web/index.html +++ b/src/interface/web/index.html @@ -26,6 +26,17 @@ : render_json(data); }); } + + function regenerate() { + type = document.getElementById("type").value; + fetch(`/regenerate?t=${type}`) + .then(response => response.json()) + .then(data => { + console.log(data); + document.getElementById("results").innerHTML = + render_json(data); + }); + } @@ -44,6 +55,8 @@ + +
@@ -60,7 +73,7 @@ grid-column: 2; margin: 10px; } - #search { + button { border-radius: 5px; border: 1px solid #ccc; }