aboutsummaryrefslogtreecommitdiff
path: root/admin/public/prediction.js
blob: 66afb0606d5395b00fd324594b47cf75e3430ff6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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);
        });
    });