whoogle-search/app
Ben Busby 01fe0c02a5
Add button to clear search input on mobile
This was unfortunately a bit more complex than just adding an HTML reset
button, since reset buttons only "reset" input content to its original
value rather than clearing it. This doesn't work for Whoogle's needs,
since inputs on search result pages are auto populated with the search
content as their default value.

A reset button was introduced anyways, but is controlled by a few lines
of javascript to allow completely clearing the search input. The button
will only appear on mobile searches.

At the moment, it isn't particularly pretty, but is functional. It uses
just a plain "x" character and is always visible on mobile search result
pages. This leaves plenty of room for improvement moving forward.

Fixes #291
2021-04-21 11:38:19 -04:00
..
models Fix mishandling of empty config environment variables 2021-04-14 10:42:41 -04:00
static Add button to clear search input on mobile 2021-04-21 11:38:19 -04:00
templates Add button to clear search input on mobile 2021-04-21 11:38:19 -04:00
utils Revert heroku app https upgrade fix 2021-04-05 11:00:56 -04:00
__init__.py Disable logging from imported modules 2021-04-09 09:26:16 -04:00
__main__.py Swap out Flask's default web server for Waitress (#32) 2020-05-12 17:14:55 -06:00
filter.py Expand custom css theming support 2021-04-09 11:00:02 -04:00
request.py Hotfix: Send generic "Mozilla" in user agent 2021-04-08 09:43:41 -04:00
routes.py Expand custom css theming support 2021-04-09 11:00:02 -04:00