Revert "ruben lichess widgets integration - assume jQuery is loaded in before"

This reverts commit 5f38468ade.
This commit is contained in:
Thibault Duplessis 2014-11-16 01:34:38 +01:00
parent 5f38468ade
commit 510d381593
2 changed files with 5 additions and 25 deletions

View file

@ -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>
}

View file

@ -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)