🎨 Code cleanup

This commit is contained in:
James Panther
2023-12-26 11:22:55 +11:00
parent 4c8e536b64
commit 6415614513
33 changed files with 154 additions and 102 deletions
+2 -2
View File
@@ -2,5 +2,5 @@
Closes the hamburger menu when a link is clicked.
*/
function close_menu() {
document.getElementById('menu-controller').checked=false
}
document.getElementById("menu-controller").checked = false;
}
-1
View File
@@ -1,4 +1,3 @@
window.addEventListener("load", () => {
quicklink.listen();
});
+1
View File
@@ -133,6 +133,7 @@ function executeQuery(term) {
let resultsHTML = "";
if (results.length > 0) {
// prettier-ignore
resultsHTML = results.map(function (value, key) {
return `<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">