diff --git a/lib/infobox/node.js b/lib/infobox/node.js index cde1c8d..3e701b1 100644 --- a/lib/infobox/node.js +++ b/lib/infobox/node.js @@ -147,7 +147,16 @@ define(["moment", "numeral", "tablesort", "tablesort.numeric"], content = document.createElement("img") content.src = o.thumbnail.replace("{NODE_ID}", nodeId) } - + + if (o.embed) { + content = document.createElement("iframe") + content.width = "98%" + content.height = "332px" + content.scrolling = "no" + content.frameBorder = "0" + content.src = o.embed.replace("{NODE_ID}", nodeId) + } + if (o.caption) { caption = o.caption.replace("{NODE_ID}", nodeId)