diff --git a/assets/html_files/accordions.html b/assets/html_files/accordions.html index 66ce3da4..cc3b2f76 100644 --- a/assets/html_files/accordions.html +++ b/assets/html_files/accordions.html @@ -67,6 +67,12 @@

Search Accordion


+ +
+ +

Hmmm, we are not getting any result.
Our bad - Please try another search!

+
+

3D Accordion

diff --git a/assets/html_files/backgrounds.html b/assets/html_files/backgrounds.html index 2e5981a2..fac8b3df 100644 --- a/assets/html_files/backgrounds.html +++ b/assets/html_files/backgrounds.html @@ -66,6 +66,12 @@

Search Background


+ +
+ +

Hmmm, we are not getting any result.
Our bad - Please try another search!

+
+

3D Boxes Background

diff --git a/assets/html_files/breadcrumbs.html b/assets/html_files/breadcrumbs.html index 98da2bda..a4396fdd 100644 --- a/assets/html_files/breadcrumbs.html +++ b/assets/html_files/breadcrumbs.html @@ -66,6 +66,12 @@

Search Breadcrumb


+ +
+ +

Hmmm, we are not getting any result.
Our bad - Please try another search!

+
+

3D Breadcrumb

diff --git a/assets/html_files/buttons.html b/assets/html_files/buttons.html index 27d65948..103f2f2f 100644 --- a/assets/html_files/buttons.html +++ b/assets/html_files/buttons.html @@ -66,6 +66,12 @@

Search Button


+ +
+ +

Hmmm, we are not getting any result.
Our bad - Please try another search!

+
+

3D Button

diff --git a/assets/html_files/cards.html b/assets/html_files/cards.html index a4063fef..4491be8b 100644 --- a/assets/html_files/cards.html +++ b/assets/html_files/cards.html @@ -66,6 +66,12 @@

Search Card


+ +
+ +

Hmmm, we are not getting any result.
Our bad - Please try another search!

+
+

3D Animated Card

diff --git a/assets/html_files/carousels.html b/assets/html_files/carousels.html index 1cfcc361..965d1fde 100644 --- a/assets/html_files/carousels.html +++ b/assets/html_files/carousels.html @@ -66,6 +66,12 @@

Search Carousel


+ +
+ +

Hmmm, we are not getting any result.
Our bad - Please try another search!

+
+

3D Image Carousel

diff --git a/assets/html_files/dropdowns.html b/assets/html_files/dropdowns.html index 73d2ec72..0bb342da 100644 --- a/assets/html_files/dropdowns.html +++ b/assets/html_files/dropdowns.html @@ -66,6 +66,12 @@

Search Dropdown


+ +
+ +

Hmmm, we are not getting any result.
Our bad - Please try another search!

+
+

Apple Themed Dropdown

diff --git a/assets/html_files/footers.html b/assets/html_files/footers.html index 0237df1f..d6830b35 100644 --- a/assets/html_files/footers.html +++ b/assets/html_files/footers.html @@ -66,6 +66,12 @@

Search Footer


+ +
+ +

Hmmm, we are not getting any result.
Our bad - Please try another search!

+
+

Animated Footer

diff --git a/assets/html_files/forms.html b/assets/html_files/forms.html index 8b5ebc7b..7d3d6574 100644 --- a/assets/html_files/forms.html +++ b/assets/html_files/forms.html @@ -66,6 +66,12 @@

Search Form


+ +
+ +

Hmmm, we are not getting any result.
Our bad - Please try another search!

+
+

Animated Border Login Form

diff --git a/assets/html_files/loaders.html b/assets/html_files/loaders.html index 5c93f2bd..54c76900 100644 --- a/assets/html_files/loaders.html +++ b/assets/html_files/loaders.html @@ -66,6 +66,12 @@

Search Loader


+ +
+ +

Hmmm, we are not getting any result.
Our bad - Please try another search!

+
+

Bird Loader

diff --git a/assets/html_files/navigation-bars.html b/assets/html_files/navigation-bars.html index ca0e5d98..5712723b 100644 --- a/assets/html_files/navigation-bars.html +++ b/assets/html_files/navigation-bars.html @@ -66,6 +66,12 @@

Search Navigation Bar


+ +
+ +

Hmmm, we are not getting any result.
Our bad - Please try another search!

+
+

3D Reveal Side Navigation Bar

diff --git a/assets/html_files/popups.html b/assets/html_files/popups.html index fe76c1c1..8bedbc11 100644 --- a/assets/html_files/popups.html +++ b/assets/html_files/popups.html @@ -67,6 +67,13 @@

Search Popups


+ +
+ +

Hmmm, we are not getting any result.
Our bad - Please try another search!

+
+ +

Confirmation Dialog Popup

diff --git a/assets/html_files/search-bars.html b/assets/html_files/search-bars.html index ddc36133..eb29ccae 100644 --- a/assets/html_files/search-bars.html +++ b/assets/html_files/search-bars.html @@ -66,6 +66,12 @@

Search Search Bar


+ +
+ +

Hmmm, we are not getting any result.
Our bad - Please try another search!

+
+

3D Search Bar

diff --git a/assets/html_files/text-animations.html b/assets/html_files/text-animations.html index e388cb56..4f0ccf92 100644 --- a/assets/html_files/text-animations.html +++ b/assets/html_files/text-animations.html @@ -66,6 +66,12 @@

Search Text Animation


+ +
+ +

Hmmm, we are not getting any result.
Our bad - Please try another search!

+
+

3D Cylindrically Rotating Text Animation

diff --git a/assets/html_files/transfer-lists.html b/assets/html_files/transfer-lists.html index 6fb2d8aa..4c14b23a 100644 --- a/assets/html_files/transfer-lists.html +++ b/assets/html_files/transfer-lists.html @@ -66,6 +66,12 @@

Search Transfer List


+ +
+ +

Hmmm, we are not getting any result.
Our bad - Please try another search!

+
+

Neumorphism Transfer List

diff --git a/assets/images/no-results.png b/assets/images/no-results.png new file mode 100644 index 00000000..ad092736 Binary files /dev/null and b/assets/images/no-results.png differ diff --git a/assets/js_files/search.js b/assets/js_files/search.js index c9625ecd..d9b4bc48 100644 --- a/assets/js_files/search.js +++ b/assets/js_files/search.js @@ -7,6 +7,7 @@ function filtereachComponents() { console.log(filter) console.log(components) + let selected_components = 0; for (i = 0; i < components.length; i++) { var component = components[i]; var h2 = component.querySelector('h1'); @@ -14,8 +15,15 @@ function filtereachComponents() { if (componentName.toUpperCase().indexOf(filter) > -1) { component.style.display = "block"; + selected_components++; } else { component.style.display = "none"; } } + + if (selected_components === 0) { + document.querySelector(".no-results").style.display = "flex"; + } else { + document.querySelector(".no-results").style.display = "none"; + } } \ No newline at end of file diff --git a/index.html b/index.html index 2dcb4cb6..57e4930c 100644 --- a/index.html +++ b/index.html @@ -80,6 +80,11 @@

Search Component


+
+ +

Hmmm, we are not getting any result.
Our bad - Please try another search!

+
+