blob: 767b8a362375baa8c7c9301b7eca8dd48eec64b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
if(!window.hasOwnProperty("frost_media")){
console.log("Registering frost_media"),
window.frost_media=!0
;var _frostMediaClick=function(e){
var t=e.target||e.srcElement
;if(t.hasAttribute("data-sigil")&&t.getAttribute("data-sigil").toLowerCase().includes("inlinevideo")&&(console.log("Found inline video"),
t=t.parentNode,
t.hasAttribute("data-store"))){
var i
;try{
i=JSON.parse(t.getAttribute("data-store"))
}catch(e){
return
}
i.src&&(console.log("Inline video "+i.src),"undefined"!=typeof Frost&&Frost.loadVideo(i.src,i.animatedGifVideo),
e.stopPropagation(),
e.preventDefault())
}
}
;document.addEventListener("click",_frostMediaClick,!0)
}
|