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 eff0884498 [simple] ImageLayout.watch: `img_load_error.svg` if img load fails
Show default image `img/img_load_error.svg` when image can't be loaded.

----
Some words about class ImageLayout:

The https://github.com/searxng/searxng/blob/master/searx/static/themes/simple/js/searxng.js is build by a grunt task ..

d0e21a01b4/searx/static/themes/simple/gruntfile.js (L91-L93)

The `/__common__/js/*.js` concats also https://github.com/searxng/searxng/blob/master/searx/static/themes/__common__/js/image_layout.js where a modified copy of the of the "Google-image-layout" (`ImageLayout`) is implemented [1][2][3].

[1] https://ptgamr.github.io/2014-09-12-google-image-layout/
[2] https://ptgamr.github.io/google-image-layout/src/google-image-layout.js
[3] https://github.com/ptgamr/google-image-layout/tree/master
----

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2 years ago
..
css [build] /static 2 years ago
img [build] /static 2 years ago
js [build] /static 3 years ago
src [fix] simple theme: set img background color to wallpaper's color 2 years ago
.eslintrc.json [fix] Optimize SVG for WEB usage / CSP 'style-src self' 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 [simple] ImageLayout.watch: `img_load_error.svg` if img load fails 2 years ago
package.json [mod] simple theme: use sharp instead of convert to create .png from .svg 2 years ago
svg4favicon.svgo.js [enh] add SVG favicon href="favicon.svg" type="image/svg+xml" 2 years ago
svg4web.svgo.js [fix] Optimize SVG for WEB usage / CSP 'style-src self' 3 years ago