From 44fadbab63d44c311666e37a0baa09df0528c28b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Mon, 17 Jun 2024 12:24:11 +0900 Subject: [PATCH] =?UTF-8?q?status=E8=A1=A8=E7=A4=BA=E3=82=B9=E3=82=BF?= =?UTF-8?q?=E3=82=A4=E3=83=AB=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/static/index.html b/static/index.html index e0a6156..82ce95b 100644 --- a/static/index.html +++ b/static/index.html @@ -54,7 +54,7 @@ } }); - }, 1000 * 10); + }, 1000 * 1); // get meta data from server ('/meta') and display it function getMeta() { @@ -64,9 +64,12 @@ const ul = document.createElement('ul'); Object.entries(meta).forEach(([key, value]) => { const li = document.createElement('li'); - li.textContent = `${key}: ${value}`; + li.textContent = `${key}: ${value}` ul.appendChild(li); }); + ul.style.textAlign = 'left'; + ul.style.width = 'fit-content'; + ul.style.margin = '20px auto'; document.querySelector('main').appendChild(ul); }); }