From 739aab39163442b6fb56a30fe5dcf273047302e7 Mon Sep 17 00:00:00 2001 From: JokoPrasetio Date: Wed, 8 Apr 2026 10:47:36 +0700 Subject: [PATCH] fixing url juknis --- index.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 0bbd91d..943a004 100644 --- a/index.html +++ b/index.html @@ -234,7 +234,12 @@ function renderCard(item) { const name = esc(item.nama_aplikasi ?? 'Aplikasi'); const link = buildLink(item.url); + let urlJuknis= item.file_juknis_url || ''; + let result = urlJuknis.includes('preview-dokumen/') + ? urlJuknis.split('preview-dokumen/')[1] + : ''; + const imageContent = item.image_url ? `${name}` : `
@@ -249,7 +254,7 @@
` @@ -346,7 +351,7 @@ $('#paginationContainer').empty(); return; } - + if (!res.data || res.data.length === 0) { const message = currentSearch ? `Tidak ditemukan hasil untuk "${esc(currentSearch)}"`