diff options
| -rw-r--r-- | static/main.css | 5 | ||||
| -rw-r--r-- | templates/results.html | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/static/main.css b/static/main.css index d22965e..9606307 100644 --- a/static/main.css +++ b/static/main.css @@ -28,6 +28,11 @@ body { margin:0; padding:0; } + +img[src=""] { + display: none; +} + .view-home { display: flex; justify-content: center; diff --git a/templates/results.html b/templates/results.html index 8e0957d..ba98efd 100644 --- a/templates/results.html +++ b/templates/results.html @@ -57,7 +57,7 @@ </h2> </div> <div class="infobox-main"> - <img src="{{info[1]}}" alt="{{info[0]}}" class="infobox-image" onerror="this.style.display='none'"> + <img src="{{info[1]}}" alt="{{info[0]}}" class="infobox-image"> <div class="infobox-content"> <p class="infobox-summary"> {{info[2]|safe}} </p> |
