fix allowfullscreen boolean attr
parent
5ba79a98e8
commit
28379d9466
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
)
|
||||
)
|
||||
|
|
|
@ -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
|
||||
)
|
||||
)
|
||||
|
|
|
@ -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}"),
|
||||
|
|
Loading…
Reference in New Issue