Spread video embed string over multiple lines.

This commit is contained in:
voussoir 2020-09-29 01:17:05 -07:00
parent 572612a282
commit 898be91538

View file

@ -367,7 +367,12 @@ function toggle_embed_video(video_id)
let embeds = video_card.getElementsByClassName("video_iframe_holder"); let embeds = video_card.getElementsByClassName("video_iframe_holder");
if (embeds.length == 0) if (embeds.length == 0)
{ {
let html = `<div class="video_iframe_holder"><iframe width="711" height="400" src="https://www.youtube.com/embed/${video_id}" frameborder="0" allow="encrypted-media" allowfullscreen></iframe></div>` let html = `
<div class="video_iframe_holder">
<iframe width="711" height="400" frameborder="0" allow="encrypted-media" allowfullscreen
src="https://www.youtube.com/embed/${video_id}"></iframe>
</div>
`
let embed = common.html_to_element(html); let embed = common.html_to_element(html);
embed_toolbox.appendChild(embed); embed_toolbox.appendChild(embed);
show_button.classList.add("hidden"); show_button.classList.add("hidden");