198 lines
4.8 KiB
HTML
198 lines
4.8 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="lichess_widgets.css" />
|
|
<link rel="stylesheet" href="dark.css" />
|
|
<link rel="stylesheet" href="light.css" />
|
|
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
|
|
<script src="lichess_widgets.js"></script>
|
|
<style>
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: "Arial", sans-serif;
|
|
}
|
|
.container {
|
|
width: 90%;
|
|
max-width: 950px;
|
|
margin: auto;
|
|
}
|
|
#black_section {
|
|
display: block;
|
|
margin: 20px 0 0 0;
|
|
padding: 5px 0 20px 0;
|
|
background: #2a2a2a;
|
|
}
|
|
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;
|
|
}
|
|
#black_section blockcode {
|
|
background: #333;
|
|
color: #e0e0e0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Widgets for Lichess (Work in progress)</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/lichess_widgets.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><br />
|
|
<!-- For the light theme --> <link rel="stylesheet" href="http://rubenwardy.github.io/lichess_widgets/light.css" /> <br />
|
|
<!-- For the dark theme --> <link rel="stylesheet" href="http://rubenwardy.github.io/lichess_widgets/dark.css" />
|
|
</blockcode>
|
|
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<script>lichess.profile("light", "rubenwardy", "Lichess");</script>
|
|
</td>
|
|
<td>
|
|
<blockcode>
|
|
<script>lichess.profile("light", "rubenwardy", "Lichess");</script>
|
|
</blockcode>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<script>lichess.profile("light", "rubenwardy");</script>
|
|
</td>
|
|
<td>
|
|
<blockcode>
|
|
<script>lichess.profile("light", "rubenwardy");</script>
|
|
</blockcode>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<script>lichess.profile_scores("light", "rubenwardy");</script>
|
|
</td>
|
|
<td>
|
|
<blockcode>
|
|
<script>lichess.profile_scores("light", "rubenwardy");</script>
|
|
</blockcode>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<script>lichess.profile_scores("light", "rubenwardy", "");</script>
|
|
</td>
|
|
<td>
|
|
<blockcode>
|
|
<script>lichess.profile_scores("light", "rubenwardy", "");</script>
|
|
</blockcode>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<script>lichess.profile_big("light", "rubenwardy");</script>
|
|
</td>
|
|
<td>
|
|
<blockcode>
|
|
<script>lichess.profile_big("light", "rubenwardy");</script>
|
|
</blockcode>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<script>lichess.profile_big("light", "rubenwardy", "My Lichess");</script>
|
|
</td>
|
|
<td>
|
|
<blockcode>
|
|
<script>lichess.profile_big("light", "rubenwardy", "My Lichess");</script>
|
|
</blockcode>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
<div id="black_section">
|
|
<div class="container">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<script>lichess.profile("dark", "rubenwardy", "Lichess");</script>
|
|
</td>
|
|
<td>
|
|
<blockcode>
|
|
<script>lichess.profile("dark", "rubenwardy", "Lichess");</script>
|
|
</blockcode>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<script>lichess.profile("dark", "rubenwardy");</script>
|
|
</td>
|
|
<td>
|
|
<blockcode>
|
|
<script>lichess.profile("dark", "rubenwardy");</script>
|
|
</blockcode>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<script>lichess.profile_scores("dark", "rubenwardy");</script>
|
|
</td>
|
|
<td>
|
|
<blockcode>
|
|
<script>lichess.profile_scores("dark", "rubenwardy");</script>
|
|
</blockcode>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<script>lichess.profile_scores("dark", "rubenwardy", "");</script>
|
|
</td>
|
|
<td>
|
|
<blockcode>
|
|
<script>lichess.profile_scores("dark", "rubenwardy", "");</script>
|
|
</blockcode>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<script>lichess.profile_big("dark", "rubenwardy");</script>
|
|
</td>
|
|
<td>
|
|
<blockcode>
|
|
<script>lichess.profile_big("dark", "rubenwardy");</script>
|
|
</blockcode>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<script>lichess.profile_big("dark", "rubenwardy", "My Lichess");</script>
|
|
</td>
|
|
<td>
|
|
<blockcode>
|
|
<script>lichess.profile_big("dark", "rubenwardy", "My Lichess");</script>
|
|
</blockcode>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</html>
|