Flash item detail background

This commit is contained in:
Edward Betts 2021-05-12 09:26:01 +02:00
parent f4fbee3a8b
commit 3f77a1478d
2 changed files with 9 additions and 0 deletions

View file

@ -17,6 +17,10 @@
background: lightgray;
}
.bg-highlight {
background: lightgray !important;
}
#load-btn {
position: absolute;
top: 20px;

View file

@ -320,6 +320,11 @@ function mouse_events(marker, qid) {
marker.on("click", function () {
isa_card.classList.add("visually-hidden");
detail_card.classList.remove("visually-hidden");
detail_card.classList.add("bg-highlight");
window.setTimeout(function() {
detail_card.classList.remove("bg-highlight");
}, 500);
var item_detail = build_item_detail(items[qid].wikidata);
detail.innerHTML = item_detail;