Compare commits

...

2 Commits

Author SHA1 Message Date
stereobooster 971efbb7da
Merge c93a1b7a14 into 5303da1433 2023-10-22 08:11:02 -06:00
stereobooster c93a1b7a14 Small improvement in js 2023-09-12 12:08:35 +02:00
1 changed files with 13 additions and 15 deletions

View File

@ -133,10 +133,8 @@ function executeQuery(term) {
let resultsHTML = ""; let resultsHTML = "";
if (results.length > 0) { if (results.length > 0) {
results.forEach(function (value, key) { resultsHTML = results.forEach(function (value, key) {
resultsHTML = return `<li class="mb-2">
resultsHTML +
`<li class="mb-2">
<a class="flex items-center px-3 py-2 rounded-md appearance-none bg-neutral-100 dark:bg-neutral-700 focus:bg-primary-100 hover:bg-primary-100 dark:hover:bg-primary-900 dark:focus:bg-primary-900 focus:outline-dotted focus:outline-transparent focus:outline-2" href="${value.item.permalink}" tabindex="0"> <a class="flex items-center px-3 py-2 rounded-md appearance-none bg-neutral-100 dark:bg-neutral-700 focus:bg-primary-100 hover:bg-primary-100 dark:hover:bg-primary-900 dark:focus:bg-primary-900 focus:outline-dotted focus:outline-transparent focus:outline-2" href="${value.item.permalink}" tabindex="0">
<div class="grow"> <div class="grow">
<div class="-mb-1 text-lg font-bold">${value.item.title}</div> <div class="-mb-1 text-lg font-bold">${value.item.title}</div>
@ -147,7 +145,7 @@ function executeQuery(term) {
<div class="mr-2 ltr:hidden rtl:block text-neutral-500">&larr;</div> <div class="mr-2 ltr:hidden rtl:block text-neutral-500">&larr;</div>
</a> </a>
</li>`; </li>`;
}); }).join("");
hasResults = true; hasResults = true;
} else { } else {
resultsHTML = ""; resultsHTML = "";