102 lines
2.2 KiB
HTML
102 lines
2.2 KiB
HTML
|
<!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 <head> of your webpage,
|
||
|
and then add one of the widgets to the <body> of your webpage.
|
||
|
</p>
|
||
|
|
||
|
<blockcode>
|
||
|
<link rel="stylesheet" href="http://rubenwardy.github.io/lichess_widgets/dark.css" /><br />
|
||
|
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script><br />
|
||
|
<script src="http://rubenwardy.github.io/lichess_widgets/lichess_widgets.js"></script>
|
||
|
</blockcode>
|
||
|
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<script>lichess.challenge_me("rubenwardy", "Lichess");</script>
|
||
|
</td>
|
||
|
<td>
|
||
|
<blockcode>
|
||
|
<script>lichess.challenge_me("rubenwardy", "Lichess");</script>
|
||
|
</blockcode>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<script>lichess.challenge_me("rubenwardy");</script>
|
||
|
</td>
|
||
|
<td>
|
||
|
<blockcode>
|
||
|
<script>lichess.challenge_me("rubenwardy");</script>
|
||
|
</blockcode>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<script>lichess.all_scores("rubenwardy");</script>
|
||
|
</td>
|
||
|
<td>
|
||
|
<blockcode>
|
||
|
<script>lichess.all_scores("rubenwardy");</script>
|
||
|
</blockcode>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<script>lichess.all_scores("rubenwardy", "");</script>
|
||
|
</td>
|
||
|
<td>
|
||
|
<blockcode>
|
||
|
<script>lichess.all_scores("rubenwardy", "");</script>
|
||
|
</blockcode>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<script>lichess.long_details("rubenwardy");</script>
|
||
|
</td>
|
||
|
<td>
|
||
|
<blockcode>
|
||
|
<script>lichess.long_details("rubenwardy");</script>
|
||
|
</blockcode>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|