From 11cb3ac3ed5f9aa1c7042934e9ac3b6fb35254bd Mon Sep 17 00:00:00 2001
From: gtitov
Date: Sat, 29 Apr 2023 11:28:07 +0300
Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20change=20questions=20check?=
=?UTF-8?q?=20ui?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
gui/index.html | 4 +---
gui/main.js | 6 ++++++
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/gui/index.html b/gui/index.html
index bbc0f4a..d88de70 100644
--- a/gui/index.html
+++ b/gui/index.html
@@ -42,9 +42,7 @@
-
+
diff --git a/gui/main.js b/gui/main.js
index 33eed47..e291500 100644
--- a/gui/main.js
+++ b/gui/main.js
@@ -132,4 +132,10 @@ document.addEventListener("DOMContentLoaded", function () {
.then(r => r.text())
.then(text => window.alert(text))
})
+
+ document.getElementById("check-questions").addEventListener("click", function() {
+ fetch('/check_questions')
+ .then(r => r.text())
+ .then(text => window.alert(text))
+ })
})
\ No newline at end of file