lichess_widgets/index.html

217 lines
5.2 KiB
HTML
Raw Permalink 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" />
2014-11-07 08:33:38 -08:00
<link rel="stylesheet" href="lichess_widgets.css" />
2014-11-07 07:06:36 -08:00
<link rel="stylesheet" href="dark.css" />
2014-11-07 08:51:17 -08:00
<link rel="stylesheet" href="light.css" />
2014-11-07 07:06:36 -08:00
<script src="lichess_widgets.js"></script>
<style>
2014-11-07 08:51:17 -08:00
html, body {
2014-11-07 07:06:36 -08:00
margin: 0;
padding: 0;
font-family: "Arial", sans-serif;
}
2014-11-07 08:51:17 -08:00
.container {
2014-11-07 07:06:36 -08:00
width: 90%;
2014-11-11 09:56:39 -08:00
max-width: 1000px;
2014-11-07 07:06:36 -08:00
margin: auto;
2014-11-07 08:51:17 -08:00
}
#black_section {
display: block;
margin: 20px 0 0 0;
2014-11-07 09:34:23 -08:00
padding: 5px 0 15px 0;
2014-11-07 08:51:17 -08:00
background: #2a2a2a;
2014-11-07 07:06:36 -08:00
}
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;
}
2014-11-07 08:51:17 -08:00
#black_section blockcode {
background: #333;
color: #e0e0e0;
}
2014-11-07 09:34:23 -08:00
#credits {
text-align: center;
padding: 0;
margin: 30px 0 0 0;
color: #555;
}
#credits a {
color: #666;
}
#credits a:hover {
color: #999;
}
2014-11-07 07:06:36 -08:00
</style>
</head>
<body>
2014-11-07 08:51:17 -08:00
<div class="container">
2014-11-07 09:34:23 -08:00
<h1>Widgets for Lichess</h1>
2014-11-07 08:51:17 -08:00
<p>
Add the following to the &lt;head&gt; of your webpage,
2014-11-28 09:26:09 -08:00
and then add at least one of the widgets to the &lt;body&gt; of your webpage.
2014-11-07 08:51:17 -08:00
</p>
<blockcode>
2017-05-08 16:36:48 -07:00
&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;
2014-11-07 08:51:17 -08:00
</blockcode>
<table>
<tr>
<td>
2014-11-11 09:56:39 -08:00
<script>lichess_widgets.profile("light", "rubenwardy", "Lichess");</script>
2014-11-07 08:51:17 -08:00
</td>
<td>
<blockcode>
2014-11-11 09:56:39 -08:00
&lt;script&gt;lichess_widgets.profile("light", "rubenwardy", "Lichess");&lt;/script&gt;
2014-11-07 08:51:17 -08:00
</blockcode>
</td>
</tr>
<tr>
<td>
2014-11-11 09:56:39 -08:00
<script>lichess_widgets.profile("light", "rubenwardy");</script>
2014-11-07 08:51:17 -08:00
</td>
<td>
<blockcode>
2014-11-11 09:56:39 -08:00
&lt;script&gt;lichess_widgets.profile("light", "rubenwardy");&lt;/script&gt;
2014-11-07 08:51:17 -08:00
</blockcode>
</td>
</tr>
<tr>
<td>
2014-11-11 09:56:39 -08:00
<script>lichess_widgets.profile_scores("light", "rubenwardy");</script>
2014-11-07 08:51:17 -08:00
</td>
<td>
<blockcode>
2014-11-11 09:56:39 -08:00
&lt;script&gt;lichess_widgets.profile_scores("light", "rubenwardy");&lt;/script&gt;
2014-11-07 08:51:17 -08:00
</blockcode>
</td>
</tr>
<tr>
<td>
2014-11-11 09:56:39 -08:00
<script>lichess_widgets.profile_scores("light", "rubenwardy", "");</script>
2014-11-07 08:51:17 -08:00
</td>
<td>
<blockcode>
2014-11-11 09:56:39 -08:00
&lt;script&gt;lichess_widgets.profile_scores("light", "rubenwardy", "");&lt;/script&gt;
2014-11-07 08:51:17 -08:00
</blockcode>
</td>
</tr>
<tr>
<td>
2014-11-11 09:56:39 -08:00
<script>lichess_widgets.profile_big("light", "rubenwardy");</script>
2014-11-07 08:51:17 -08:00
</td>
<td>
<blockcode>
2014-11-11 09:56:39 -08:00
&lt;script&gt;lichess_widgets.profile_big("light", "rubenwardy");&lt;/script&gt;
2014-11-07 08:51:17 -08:00
</blockcode>
</td>
</tr>
2014-11-07 07:06:36 -08:00
2014-11-07 08:51:17 -08:00
<tr>
<td>
2014-11-11 09:56:39 -08:00
<script>lichess_widgets.profile_big("light", "rubenwardy", "My Lichess");</script>
2014-11-07 08:51:17 -08:00
</td>
<td>
<blockcode>
2014-11-11 09:56:39 -08:00
&lt;script&gt;lichess_widgets.profile_big("light", "rubenwardy", "My Lichess");&lt;/script&gt;
2014-11-07 08:51:17 -08:00
</blockcode>
</td>
</tr>
</table>
</div>
2014-11-07 07:06:36 -08:00
2014-11-07 08:51:17 -08:00
<div id="black_section">
<div class="container">
<table>
<tr>
<td>
2014-11-11 09:56:39 -08:00
<script>lichess_widgets.profile("dark", "rubenwardy", "Lichess");</script>
2014-11-07 08:51:17 -08:00
</td>
<td>
<blockcode>
2014-11-11 09:56:39 -08:00
&lt;script&gt;lichess_widgets.profile("dark", "rubenwardy", "Lichess");&lt;/script&gt;
2014-11-07 08:51:17 -08:00
</blockcode>
</td>
</tr>
<tr>
<td>
2014-11-11 09:56:39 -08:00
<script>lichess_widgets.profile("dark", "rubenwardy");</script>
2014-11-07 08:51:17 -08:00
</td>
<td>
<blockcode>
2014-11-11 09:56:39 -08:00
&lt;script&gt;lichess_widgets.profile("dark", "rubenwardy");&lt;/script&gt;
2014-11-07 08:51:17 -08:00
</blockcode>
</td>
</tr>
<tr>
<td>
2014-11-11 09:56:39 -08:00
<script>lichess_widgets.profile_scores("dark", "rubenwardy");</script>
2014-11-07 08:51:17 -08:00
</td>
<td>
<blockcode>
2014-11-11 09:56:39 -08:00
&lt;script&gt;lichess_widgets.profile_scores("dark", "rubenwardy");&lt;/script&gt;
2014-11-07 08:51:17 -08:00
</blockcode>
</td>
</tr>
<tr>
<td>
2014-11-11 09:56:39 -08:00
<script>lichess_widgets.profile_scores("dark", "rubenwardy", "");</script>
2014-11-07 08:51:17 -08:00
</td>
<td>
<blockcode>
2014-11-11 09:56:39 -08:00
&lt;script&gt;lichess_widgets.profile_scores("dark", "rubenwardy", "");&lt;/script&gt;
2014-11-07 08:51:17 -08:00
</blockcode>
</td>
</tr>
<tr>
<td>
2014-11-11 09:56:39 -08:00
<script>lichess_widgets.profile_big("dark", "rubenwardy");</script>
2014-11-07 08:51:17 -08:00
</td>
<td>
<blockcode>
2014-11-11 09:56:39 -08:00
&lt;script&gt;lichess_widgets.profile_big("dark", "rubenwardy");&lt;/script&gt;
2014-11-07 08:51:17 -08:00
</blockcode>
</td>
</tr>
2014-11-07 07:24:43 -08:00
2014-11-07 08:51:17 -08:00
<tr>
<td>
2014-11-11 09:56:39 -08:00
<script>lichess_widgets.profile_big("dark", "rubenwardy", "My Lichess");</script>
2014-11-07 08:51:17 -08:00
</td>
<td>
<blockcode>
2014-11-11 09:56:39 -08:00
&lt;script&gt;lichess_widgets.profile_big("dark", "rubenwardy", "My Lichess");&lt;/script&gt;
2014-11-07 08:51:17 -08:00
</blockcode>
</td>
</tr>
</table>
2014-11-07 09:34:23 -08:00
<p id="credits">
2018-05-22 10:45:26 -07:00
Created by <a href="https://rubenwardy.com/">rubenwardy</a>
|
<a href="https://rubenwardy.com/donate/">Donate</a>
2015-09-22 16:43:47 -07:00
|
<a href="https://github.com/rubenwardy/lichess_widgets">GitHub</a>
|
2014-11-07 09:34:23 -08:00
Licensed under CC-BY-SA 3.0
</p>
2014-11-07 08:51:17 -08:00
</div>
</div>
</html>