Revert "ruben lichess widgets integration - assume jQuery is loaded in before"
This reverts commit 5f38468ade
.
This commit is contained in:
parent
5f38468ade
commit
510d381593
|
@ -1,6 +1,7 @@
|
|||
@()(implicit ctx: Context)
|
||||
|
||||
@site.layout(title = "Developers") {
|
||||
@site.layout(
|
||||
title = "Developers") {
|
||||
|
||||
<div class="content_box small_box">
|
||||
<h1 class="lichess_title">Embed lichess in your site</h1>
|
||||
|
@ -52,24 +53,4 @@
|
|||
<a href="https://github.com/ornicar/lila#http-api">lichess github page</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<div class="content_box small_box developers">
|
||||
<h1 id="use-api" class="lichess_title">Lichess Widgets</h1>
|
||||
<p>Let your website/blog visitors know that you're playing on lichess!</p>
|
||||
<br />
|
||||
<link rel="stylesheet" href="http://rubenwardy.github.io/lichess_widgets/lichess_widgets.css" />
|
||||
@if(ctx.currentBg == "dark") {
|
||||
<link rel="stylesheet" href="http://rubenwardy.github.io/lichess_widgets/dark.css" />
|
||||
} else {
|
||||
<link rel="stylesheet" href="http://rubenwardy.github.io/lichess_widgets/light.css" />
|
||||
}
|
||||
<script src="http://rubenwardy.github.io/lichess_widgets/lichess_widgets.js"></script>
|
||||
@defining(ctx.me.fold("thibault")(_.id)) { userId =>
|
||||
<script>lichess_widgets.profile_scores("@ctx.currentBg", "@userId");</script>
|
||||
}
|
||||
<p><a href="http://rubenwardy.github.io/lichess_widgets/">See more examples and installation instructions</a></p>
|
||||
</div>
|
||||
}
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
@(title: String, moreCss: Html = Html(""), moreJs: Html = Html(""), side: Option[Html] = None)(body: Html)(implicit ctx: Context)
|
||||
@(title: String, moreCss: Html = Html(""), side: Option[Html] = None)(body: Html)(implicit ctx: Context)
|
||||
|
||||
@base.layout(
|
||||
title = title,
|
||||
title = title,
|
||||
side = side,
|
||||
active = none,
|
||||
moreCss = moreCss,
|
||||
moreJs = moreJs)(body)
|
||||
moreCss = moreCss)(body)
|
||||
|
|
Loading…
Reference in a new issue