|
|
|
@ -70,7 +70,7 @@ function openInfoCard(dataset, element) { |
|
|
|
// NOTE: add play link
|
|
|
|
// NOTE: add play link
|
|
|
|
let a = document.createElement('a'); |
|
|
|
let a = document.createElement('a'); |
|
|
|
a.classList.add('play_link'); |
|
|
|
a.classList.add('play_link'); |
|
|
|
a.href = VIDEO_PREFIX + dataset.rel_path; |
|
|
|
a.href = encodeURI(VIDEO_PREFIX + dataset.rel_path); |
|
|
|
a.appendChild(document.createTextNode('play')); |
|
|
|
a.appendChild(document.createTextNode('play')); |
|
|
|
let div = blurb.querySelector('.search_result'); |
|
|
|
let div = blurb.querySelector('.search_result'); |
|
|
|
div.insertBefore(a, div.firstChild); |
|
|
|
div.insertBefore(a, div.firstChild); |
|
|
|
|