This is my homepage!
You can play with a demo of it here
If you would like a copy already preloaded with some sites, download home++.html. For a blank version, download home++b.html.
Here's a pretty basic rundown of how it works (so you don't have to read my probably horribly formatted code)
-
It goes through each item in each key in the
places
object and adds the first item in the array (the name of the link) to the input field's datalist -
When you submit text it checks the first character against each key in the
places
object. Once it finds the correct key it checks the input against each name in the array. This way the program doesn't have to go through every single item every time. -
Once it finds the matching name, it redirects you to the url that corresponds to that name