fix allowfullscreen boolean attr

pull/4994/head
Niklas Fiekas 2019-04-18 11:46:10 +02:00
parent 5ba79a98e8
commit 28379d9466
4 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ trait ScalatagsAttrs {
lazy val novalidate = attr("novalidate").empty
object frame {
val scrolling = attr("scrolling")
val allowfullscreen = attr("allowfullscreen")
val allowfullscreen = attr("allowfullscreen").empty
val autoplay = attr("autoplay")
}
}

View File

@ -91,7 +91,7 @@ $('.coach-review-form form').show();
),
div(cls := "list")(
profile.youtubeUrls.map { url =>
iframe(width := "256", height := "192", src := url.value, attr("frameborder") := "0", attr("allowfullscreen") := true)
iframe(width := "256", height := "192", src := url.value, attr("frameborder") := "0", frame.allowfullscreen)
}
)
)

View File

@ -70,14 +70,14 @@ method:'post'
iframe(
src := s"https://www.youtube.com/embed/$videoId?autoplay=1",
st.frameBorder := "0",
frame.allowfullscreen := true
frame.allowfullscreen
)
)
case _ => s.streamer.twitch.map { twitch =>
div(cls := "box embed twitch")(
iframe(
src := s"https://player.twitch.tv/?channel=${twitch.userId}",
frame.allowfullscreen := true,
frame.allowfullscreen,
frame.autoplay := true
)
)

View File

@ -30,7 +30,7 @@ object show {
div(cls := "embed")(
iframe(id := "ytplayer", tpe := "text/html",
src := s"https://www.youtube.com/embed/${video.id}?autoplay=1&origin=https://lichess.org&start=${video.startTime}",
st.frameBorder := "0", frame.allowfullscreen := true)
st.frameBorder := "0", frame.allowfullscreen)
),
h1(cls := "box__pad")(
a(cls := "is4 text", dataIcon := "i", href := s"${routes.Video.index}?${control.queryString}"),