Spread video embed string over multiple lines.
This commit is contained in:
parent
572612a282
commit
898be91538
1 changed files with 6 additions and 1 deletions
|
@ -367,7 +367,12 @@ function toggle_embed_video(video_id)
|
|||
let embeds = video_card.getElementsByClassName("video_iframe_holder");
|
||||
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);
|
||||
embed_toolbox.appendChild(embed);
|
||||
show_button.classList.add("hidden");
|
||||
|
|
Loading…
Reference in a new issue