update readme, UI tweak: don't show broken images

This commit is contained in:
simon 2019-11-03 10:39:02 -05:00
parent 7962a994e2
commit 534b397876
2 changed files with 6 additions and 2 deletions

View File

@ -79,11 +79,12 @@ binaries.
apt install git cmake pkg-config libglib2.0-dev\ apt install git cmake pkg-config libglib2.0-dev\
libssl-dev uuid-dev libavformat-dev libswscale-dev \ libssl-dev uuid-dev libavformat-dev libswscale-dev \
python3 libmagic-dev libfreetype6-dev libcurl-dev \ python3 libmagic-dev libfreetype6-dev libcurl-dev \
libbz2-dev yasm libbz2-dev yasm libharfbuzz-dev
``` ```
*(FreeBSD)* *(FreeBSD)*
```bash ```bash
pkg install cmake gcc yasm gmake bash ffmpeg e2fsprogs-uuid pkg install cmake gcc yasm gmake bash ffmpeg e2fsprogs-uuid\
autotools ragel
``` ```
2. Build 2. Build

View File

@ -136,6 +136,9 @@ function createDocCard(hit) {
thumbnail = document.createElement("img"); thumbnail = document.createElement("img");
thumbnail.setAttribute("class", "card-img-top fit"); thumbnail.setAttribute("class", "card-img-top fit");
thumbnail.setAttribute("src", `t/${hit["_source"]["index"]}/${hit["_id"]}`); thumbnail.setAttribute("src", `t/${hit["_source"]["index"]}/${hit["_id"]}`);
thumbnail.addEventListener("error", () => {
imgWrapper.remove();
});
} }
//Thumbnail overlay //Thumbnail overlay