From 85df6dcfe16058cfae1fbd0b3214a2d43bc0fe72 Mon Sep 17 00:00:00 2001 From: Dangrainage <99558179+Dangrainage@users.noreply.github.com> Date: Wed, 24 Apr 2024 23:45:49 +0200 Subject: [PATCH] Update Tester.HTML --- Tester.HTML | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tester.HTML b/Tester.HTML index 52137e3..aad2e8f 100644 --- a/Tester.HTML +++ b/Tester.HTML @@ -41,7 +41,11 @@ let resultList = document.createElement('ul'); results.forEach(result => { let listItem = document.createElement('li'); - listItem.textContent = `Title: ${result.title}, Year: ${result.year}`; + let link = document.createElement('a'); + link.textContent = `${result.title} (${result.year})`; + link.href = result.link; // Assuming there's a 'link' property in the dictionary + link.target = '_blank'; // Open link in a new tab + listItem.appendChild(link); resultList.appendChild(listItem); }); searchResultsDiv.appendChild(resultList);