Flash item detail background
This commit is contained in:
parent
f4fbee3a8b
commit
3f77a1478d
|
@ -17,6 +17,10 @@
|
|||
background: lightgray;
|
||||
}
|
||||
|
||||
.bg-highlight {
|
||||
background: lightgray !important;
|
||||
}
|
||||
|
||||
#load-btn {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue