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/static/themes/simple
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
..
css [build] /static 3 years ago
img [build] /static 3 years ago
js [build] /static 3 years ago
src [fix] simple theme: hide the image if img load fails 3 years ago
.eslintrc.json [mod] SearXNG JavaScript Style Guide (eslint:recommended) 3 years ago
.gitignore [themes] ignore packages-lock.json 3 years ago
.jshintrc [emacs] .dir-locals.el: add setup for js-mode 3 years ago
.stylelintrc.json [mod] add stylelint process to target themes.simple 3 years ago
gruntfile.js [fix] theme: build `img_load_error.svg` as svg 3 years ago
package.json [simple theme] activate - SearXNG JavaScript Style Guide 3 years ago
svg4favicon.svgo.js [enh] add SVG favicon href="favicon.svg" type="image/svg+xml" 3 years ago
svg4web.svgo.js [fix] eslint --fix 3 years ago