From ca9e103515730c2f879367d0c58f89242ede668d Mon Sep 17 00:00:00 2001 From: kicap Date: Wed, 23 Jul 2025 19:29:38 +0800 Subject: [PATCH] added jupyter notebook and improve output --- templates/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index fb5344a..9ede97b 100644 --- a/templates/index.html +++ b/templates/index.html @@ -130,7 +130,10 @@ const tbody = document.getElementById('log-table-body'); tbody.innerHTML = ''; - data.last_10_entries.forEach(entry => { + const jumlahTampil = 20; // 💡 Ubah sesuai kebutuhan (bisa pakai input juga) + const entriesToShow = data.entries.slice(0, jumlahTampil); // Flexible slice + + entriesToShow.forEach(entry => { const row = document.createElement('tr'); row.innerHTML = ` ${entry.id}