diff --git a/index.html b/index.html index 9d6762be6..623b88812 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ - + + diff --git a/js/accident_w_impound.js b/js/accident_w_impound.js index 93b98531f..150a4214e 100644 --- a/js/accident_w_impound.js +++ b/js/accident_w_impound.js @@ -59,6 +59,15 @@ async function getData() { return reply; } +function filterList(list, filterInputValue) { + return list.filter((item) => { + if (!item.street_address) { return; } + const lowerCaseName = item.street_address.toLowerCase(); + const lowerCaseQuery = filterInputValue.toLowerCase(); + return lowerCaseName.includes(lowerCaseQuery); + }); + } + async function mainEvent() { // the async keyword means we can make API requests const form = document.querySelector('.main_form'); // get your main form so you can do JS with it diff --git a/other_pages/accident_with_impound.html b/other_pages/accident_with_impound.html index 5d12f6610..75b4ab070 100644 --- a/other_pages/accident_with_impound.html +++ b/other_pages/accident_with_impound.html @@ -29,6 +29,13 @@

Accidents with Impound Occurrences

+
+
+ + +
+ +
A list of accidents with impounds