lichess_widgets/index.html

102 lines
2.2 KiB
HTML
Raw Normal View History

2014-11-07 07:06:36 -08:00
<!doctype html>
<html>
<head>
<title>Lichess Widgets</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="dark.css" />
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="lichess_widgets.js"></script>
<style>
html {
margin: 0;
padding: 0;
font-family: "Arial", sans-serif;
}
body {
width: 90%;
max-width: 900px;
margin: auto;
padding: 0;
}
table {
margin: 20px 0 0 0;
width: 100%;
}
table td {
}
blockcode {
margin: 5px;
padding: 5px 5px 5px 20px;
background: #eee;
border-radius: 5px;
display: block;
}
</style>
</head>
<body>
<h1>(Work in progress) Widgets for Lichess</h1>
<p>
Add the following to the &lt;head&gt; of your webpage,
and then add one of the widgets to the &lt;body&gt; of your webpage.
</p>
<blockcode>
&lt;link rel="stylesheet" href="http://rubenwardy.github.io/lichess_widgets/dark.css" /&gt;<br />
&lt;script src="http://code.jquery.com/jquery-1.11.0.min.js"&gt;&lt;/script&gt;<br />
&lt;script src="http://rubenwardy.github.io/lichess_widgets/lichess_widgets.js"&gt;&lt;/script&gt;
</blockcode>
<table>
<tr>
<td>
<script>lichess.challenge_me("rubenwardy", "Lichess");</script>
</td>
<td>
<blockcode>
&lt;script&gt;lichess.challenge_me("rubenwardy", "Lichess");&lt;/script&gt;
</blockcode>
</td>
</tr>
<tr>
<td>
<script>lichess.challenge_me("rubenwardy");</script>
</td>
<td>
<blockcode>
&lt;script&gt;lichess.challenge_me("rubenwardy");&lt;/script&gt;
</blockcode>
</td>
</tr>
<tr>
<td>
<script>lichess.all_scores("rubenwardy");</script>
</td>
<td>
<blockcode>
&lt;script&gt;lichess.all_scores("rubenwardy");&lt;/script&gt;
</blockcode>
</td>
</tr>
<tr>
<td>
<script>lichess.all_scores("rubenwardy", "");</script>
</td>
<td>
<blockcode>
&lt;script&gt;lichess.all_scores("rubenwardy", "");&lt;/script&gt;
</blockcode>
</td>
</tr>
<tr>
<td>
<script>lichess.long_details("rubenwardy");</script>
</td>
<td>
<blockcode>
&lt;script&gt;lichess.long_details("rubenwardy");&lt;/script&gt;
</blockcode>
</td>
</tr>
</table>