This is an automated email from the ASF dual-hosted git repository.

kamilbregula pushed a commit to branch aip-11
in repository https://gitbox.apache.org/repos/asf/airflow-site.git


The following commit(s) were added to refs/heads/aip-11 by this push:
     new da66ce0  Changed placeholder text, added search by continent (#135)
da66ce0 is described below

commit da66ce09800d90b93abedfbb0f2e39b32a9252f4
Author: Kamil Gabryjelski <[email protected]>
AuthorDate: Thu Nov 7 12:16:01 2019 +0100

    Changed placeholder text, added search by continent (#135)
    
    Co-Authored-By: Kamil BreguĊ‚a <[email protected]>
---
 landing-pages/site/layouts/meetups/list.html | 2 +-
 landing-pages/site/static/meetups.json       | 1 +
 landing-pages/src/js/meetupsList.js          | 3 ++-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/landing-pages/site/layouts/meetups/list.html 
b/landing-pages/site/layouts/meetups/list.html
index f6dc5c0..dcac9e2 100644
--- a/landing-pages/site/layouts/meetups/list.html
+++ b/landing-pages/site/layouts/meetups/list.html
@@ -46,7 +46,7 @@
             </div>
         </script>
         <div class="search-form">
-            <input class="search-form__input" placeholder="Search" 
type="search" id="search">
+            <input class="search-form__input" placeholder="Country or city" 
type="search" id="search">
             <button class="search-form__button">
                 {{ with resources.Get "icons/search-icon.svg" }}
                     {{ .Content | safeHTML }}
diff --git a/landing-pages/site/static/meetups.json 
b/landing-pages/site/static/meetups.json
index 6074e64..f9a36cf 100644
--- a/landing-pages/site/static/meetups.json
+++ b/landing-pages/site/static/meetups.json
@@ -1,6 +1,7 @@
 [
   {
     "city": "Warsaw",
+    "continent": "Europe",
     "country": "Poland",
     "date": "TUE, SEP 24, 6:00 PM",
     "members": 100,
diff --git a/landing-pages/src/js/meetupsList.js 
b/landing-pages/src/js/meetupsList.js
index f58c0f6..3f7484e 100644
--- a/landing-pages/src/js/meetupsList.js
+++ b/landing-pages/src/js/meetupsList.js
@@ -82,7 +82,8 @@ const runMeetups = () => {
           }
           return meetups.filter((meetup) =>
             meetup.city.toLowerCase().indexOf(keyword.toLowerCase()) >= 0 ||
-            meetup.country.toLowerCase().indexOf(keyword.toLowerCase()) >= 0
+            meetup.country.toLowerCase().indexOf(keyword.toLowerCase()) >= 0 ||
+            (meetup.continent && 
meetup.continent.toLowerCase().indexOf(keyword.toLowerCase()) >= 0)
           );
         };
 

Reply via email to