diff --git a/act/room.php b/act/room.php index 6d5ce9e..413f623 100644 --- a/act/room.php +++ b/act/room.php @@ -34,6 +34,7 @@ $ut = mk_user_table($r); echo page( "$n", <<Enable JS!

$n

owned by {$o->name}

diff --git a/jax/room.php b/jax/room.php new file mode 100644 index 0000000..f19bcb4 --- /dev/null +++ b/jax/room.php @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/spt/room.js b/spt/room.js new file mode 100644 index 0000000..5ea15ca --- /dev/null +++ b/spt/room.js @@ -0,0 +1,7 @@ +setInterval(function () { + fetch("/jax/room.php").then(function(response) { + return response.json(); + }).then(function(data) { + console.log(data); + }); +}, 1000); \ No newline at end of file