You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
searxng/searx
Markus Heiser f75199b1ec [fix] simple theme: hide the image if img load fails
Add event listener to query selector::

    '#urls img.image'

From the user point of view, I think it is better to hide the image:
img_load_error.svg is helplful in the image category because it still allows to
select the image. IMO, in the news category, the fact there is a missing image
won't help to choose the links. From a developer point of view, the place holder
is signal that may be the engine needs to be updated (at least give a look). The
browser console should show the same information too, but it requires some
additional steps. [1]

[1] https://github.com/searxng/searxng/pull/610#issuecomment-997640132

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
..
answerers [format.python] initial formatting of the python code 3 years ago
data [format.python] initial formatting of the python code 3 years ago
engines [pylint] Bing (Videos) engine 3 years ago
metrics [format.python] initial formatting of the python code 3 years ago
network [format.python] initial formatting of the python code 3 years ago
plugins [format.python] initial formatting of the python code 3 years ago
search [format.python] initial formatting of the python code 3 years ago
shared [format.python] initial formatting of the python code 3 years ago
static [fix] simple theme: hide the image if img load fails 3 years ago
templates [fix] lazy loading of <img> tags 3 years ago
translations [translations] update from Weblate 3 years ago
__init__.py [format.python] initial formatting of the python code 3 years ago
autocomplete.py [format.python] initial formatting of the python code 3 years ago
exceptions.py [format.python] initial formatting of the python code 3 years ago
external_bang.py [pylint] fix global-variable-not-assigned issues 3 years ago
external_urls.py [format.python] initial formatting of the python code 3 years ago
flaskfix.py [format.python] initial formatting of the python code 3 years ago
languages.py [format.python] initial formatting of the python code 3 years ago
locales.py [format.python] initial formatting of the python code 3 years ago
preferences.py [format.python] initial formatting of the python code 3 years ago
query.py [format.python] initial formatting of the python code 3 years ago
results.py [format.python] initial formatting of the python code 3 years ago
settings.yml [del] remove geektimes (redirects to habrahabr) 3 years ago
settings_defaults.py [format.python] initial formatting of the python code 3 years ago
settings_loader.py [format.python] initial formatting of the python code 3 years ago
unixthreadname.py [format.python] initial formatting of the python code 3 years ago
utils.py [format.python] initial formatting of the python code 3 years ago
version.py [format.python] initial formatting of the python code 3 years ago
webadapter.py [format.python] initial formatting of the python code 3 years ago
webapp.py [format.python] initial formatting of the python code 3 years ago
webutils.py [format.python] initial formatting of the python code 3 years ago