aboutsummaryrefslogtreecommitdiff
path: root/admin/public/prediction.js
diff options
context:
space:
mode:
authorMarvin Borner2021-01-29 14:42:34 +0100
committerMarvin Borner2021-01-29 14:42:34 +0100
commit4482d4ca8a69dcfa3b082436a02cf25ee0870be0 (patch)
tree00c26423aefd7843499aba519432de9760cb6c59 /admin/public/prediction.js
parentaec1e8f2cd4c0fdedd200fc30094587c0834d372 (diff)
blabla
Diffstat (limited to 'admin/public/prediction.js')
-rw-r--r--admin/public/prediction.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/admin/public/prediction.js b/admin/public/prediction.js
new file mode 100644
index 0000000..66afb06
--- /dev/null
+++ b/admin/public/prediction.js
@@ -0,0 +1,11 @@
+const list = document.getElementById("list");
+
+fetch("api/prediction")
+ .then((r) => r.json())
+ .then((r) => {
+ r.forEach((d) => {
+ const elem = document.createElement("li");
+ elem.innerText = `${d.uname} ${d.umid || ""} ${d.usur}: ${d.tname} ${d.tmid || ""} ${d.tsur}`;
+ list.appendChild(elem);
+ });
+ });