Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions app/views/site/page.scala
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ $('#asset-version-message').text(site.info.message);"""
h1(cls := "box__top")("HTTP API"),
p(
"Lichess exposes a RESTish HTTP/JSON API that you are welcome to use. Read the ",
a(href := "/api")("HTTP API documentation</a>"),
a(href := "/api")("HTTP API documentation"),
"."
)
),
Expand All @@ -123,7 +123,25 @@ $('#asset-version-message').text(site.info.message);"""
dataIcon := licon.Link
)
),
parameters
parameters,
p(
"You can also show the channel for a specific variant or time control by adding the channel key to the URL, corresponding to the channels available at ",
a(href := "/tv")("lichess.org/tv"),
". If not included, the top rated game will be shown."
),
p(cls := "copy-zone")(
input(
id := "tv-channel-embed-src",
cls := "copyable autoselect",
value := s"""<iframe src="$netBaseUrl/tv/rapid/frame?theme=brown&bg=dark" $args></iframe>"""
),
button(
st.title := "Copy code",
cls := "copy button",
dataRel := "tv-channel-embed-src",
dataIcon := licon.Link
)
)
)
)
},
Expand Down