diff --git a/content/index.md b/content/index.md index 50d2fef..95c8ab7 100644 --- a/content/index.md +++ b/content/index.md @@ -1,9 +1,16 @@ - + +
- + diff --git a/templates/coltrane/base.html b/templates/coltrane/base.html index d749982..4ede3be 100644 --- a/templates/coltrane/base.html +++ b/templates/coltrane/base.html @@ -31,7 +31,7 @@

Htmx Extensions

-

A registry of htmx extensions, both official and third-party.

+

A registry of htmx extensions, core and community.

Add a new extension by making a pull request to the github repository

@@ -65,6 +65,20 @@

A registry of htmx extensions, both official and third-party.

}) .catch(() => alert('oh no!')); } + document.getElementById('searchInput').addEventListener('keyup', function() { + var searchQuery = this.value.toLowerCase(); + var tableRows = document.querySelectorAll('#extensionsTable tbody tr'); + + tableRows.forEach(function(row) { + var nameCellText = row.cells[0].textContent.toLowerCase(); + var descriptionCellText = row.cells[1].textContent.toLowerCase(); + if (nameCellText.includes(searchQuery) || descriptionCellText.includes(searchQuery)) { + row.style.display = ''; // Show row + } else { + row.style.display = 'none'; // Hide row + } + }); + });
Name DescriptionOfficialCore Download