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}