lichess_widgets/index.html

217 lines
5.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="lichess_widgets.css" />
<link rel="stylesheet" href="dark.css" />
<link rel="stylesheet" href="light.css" />
<script src="lichess_widgets.js"></script>
<style>
html, body {
margin: 0;
padding: 0;
font-family: "Arial", sans-serif;
}
.container {
width: 90%;
max-width: 1000px;
margin: auto;
}
#black_section {
display: block;
margin: 20px 0 0 0;
padding: 5px 0 15px 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;
}
#credits {
text-align: center;
padding: 0;
margin: 30px 0 0 0;
color: #555;
}
#credits a {
color: #666;
}
#credits a:hover {
color: #999;
}
</style>
</head>
<body>
<div class="container">
<h1>Widgets for Lichess</h1>
<p>
Add the following to the &lt;head&gt; of your webpage,
and then add at least one of the widgets to the &lt;body&gt; of your webpage.
</p>
<blockcode>
&lt;link rel="stylesheet" href="https://rubenwardy.com/lichess_widgets/lichess_widgets.css" /&gt;<br />
&lt;script src="https://rubenwardy.com/lichess_widgets/lichess_widgets.js"&gt;&lt;/script&gt;<br />
&lt;!-- For the light theme --&gt; &lt;link rel="stylesheet" href="https://rubenwardy.com/lichess_widgets/light.css" /&gt; <br />
&lt;!-- For the dark theme --&gt; &lt;link rel="stylesheet" href="https://rubenwardy.com/lichess_widgets/dark.css" /&gt;
</blockcode>
<table>
<tr>
<td>
<script>lichess_widgets.profile("light", "rubenwardy", "Lichess");</script>
</td>
<td>
<blockcode>
&lt;script&gt;lichess_widgets.profile("light", "rubenwardy", "Lichess");&lt;/script&gt;
</blockcode>
</td>
</tr>
<tr>
<td>
<script>lichess_widgets.profile("light", "rubenwardy");</script>
</td>
<td>
<blockcode>
&lt;script&gt;lichess_widgets.profile("light", "rubenwardy");&lt;/script&gt;
</blockcode>
</td>
</tr>
<tr>
<td>
<script>lichess_widgets.profile_scores("light", "rubenwardy");</script>
</td>
<td>
<blockcode>
&lt;script&gt;lichess_widgets.profile_scores("light", "rubenwardy");&lt;/script&gt;
</blockcode>
</td>
</tr>
<tr>
<td>
<script>lichess_widgets.profile_scores("light", "rubenwardy", "");</script>
</td>
<td>
<blockcode>
&lt;script&gt;lichess_widgets.profile_scores("light", "rubenwardy", "");&lt;/script&gt;
</blockcode>
</td>
</tr>
<tr>
<td>
<script>lichess_widgets.profile_big("light", "rubenwardy");</script>
</td>
<td>
<blockcode>
&lt;script&gt;lichess_widgets.profile_big("light", "rubenwardy");&lt;/script&gt;
</blockcode>
</td>
</tr>
<tr>
<td>
<script>lichess_widgets.profile_big("light", "rubenwardy", "My Lichess");</script>
</td>
<td>
<blockcode>
&lt;script&gt;lichess_widgets.profile_big("light", "rubenwardy", "My Lichess");&lt;/script&gt;
</blockcode>
</td>
</tr>
</table>
</div>
<div id="black_section">
<div class="container">
<table>
<tr>
<td>
<script>lichess_widgets.profile("dark", "rubenwardy", "Lichess");</script>
</td>
<td>
<blockcode>
&lt;script&gt;lichess_widgets.profile("dark", "rubenwardy", "Lichess");&lt;/script&gt;
</blockcode>
</td>
</tr>
<tr>
<td>
<script>lichess_widgets.profile("dark", "rubenwardy");</script>
</td>
<td>
<blockcode>
&lt;script&gt;lichess_widgets.profile("dark", "rubenwardy");&lt;/script&gt;
</blockcode>
</td>
</tr>
<tr>
<td>
<script>lichess_widgets.profile_scores("dark", "rubenwardy");</script>
</td>
<td>
<blockcode>
&lt;script&gt;lichess_widgets.profile_scores("dark", "rubenwardy");&lt;/script&gt;
</blockcode>
</td>
</tr>
<tr>
<td>
<script>lichess_widgets.profile_scores("dark", "rubenwardy", "");</script>
</td>
<td>
<blockcode>
&lt;script&gt;lichess_widgets.profile_scores("dark", "rubenwardy", "");&lt;/script&gt;
</blockcode>
</td>
</tr>
<tr>
<td>
<script>lichess_widgets.profile_big("dark", "rubenwardy");</script>
</td>
<td>
<blockcode>
&lt;script&gt;lichess_widgets.profile_big("dark", "rubenwardy");&lt;/script&gt;
</blockcode>
</td>
</tr>
<tr>
<td>
<script>lichess_widgets.profile_big("dark", "rubenwardy", "My Lichess");</script>
</td>
<td>
<blockcode>
&lt;script&gt;lichess_widgets.profile_big("dark", "rubenwardy", "My Lichess");&lt;/script&gt;
</blockcode>
</td>
</tr>
</table>
<p id="credits">
Created by <a href="https://rubenwardy.com/">rubenwardy</a>
|
<a href="https://rubenwardy.com/donate/">Donate</a>
|
<a href="https://github.com/rubenwardy/lichess_widgets">GitHub</a>
|
Licensed under CC-BY-SA 3.0
</p>
</div>
</div>
</html>