Change API

master
rubenwardy 2014-11-07 16:26:11 +00:00
parent e00b9aa702
commit d4536f8d84
3 changed files with 16 additions and 16 deletions

View File

@ -5,7 +5,7 @@
margin: 2px; margin: 2px;
background: #333; background: #333;
border: 1px solid #444; border: 1px solid #444;
padding: 5px 7px 7px 5px; padding: 5px 10px 7px 10px;
color: #acacac; color: #acacac;
border-radius: 4px; border-radius: 4px;
text-decoration: none; text-decoration: none;

View File

@ -50,62 +50,62 @@
<table> <table>
<tr> <tr>
<td> <td>
<script>lichess.challenge_me("rubenwardy", "Lichess");</script> <script>lichess.profile("rubenwardy", "Lichess");</script>
</td> </td>
<td> <td>
<blockcode> <blockcode>
&lt;script&gt;lichess.challenge_me("rubenwardy", "Lichess");&lt;/script&gt; &lt;script&gt;lichess.profile("rubenwardy", "Lichess");&lt;/script&gt;
</blockcode> </blockcode>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<script>lichess.challenge_me("rubenwardy");</script> <script>lichess.profile("rubenwardy");</script>
</td> </td>
<td> <td>
<blockcode> <blockcode>
&lt;script&gt;lichess.challenge_me("rubenwardy");&lt;/script&gt; &lt;script&gt;lichess.profile("rubenwardy");&lt;/script&gt;
</blockcode> </blockcode>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<script>lichess.all_scores("rubenwardy");</script> <script>lichess.profile_scores("rubenwardy");</script>
</td> </td>
<td> <td>
<blockcode> <blockcode>
&lt;script&gt;lichess.all_scores("rubenwardy");&lt;/script&gt; &lt;script&gt;lichess.profile_scores("rubenwardy");&lt;/script&gt;
</blockcode> </blockcode>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<script>lichess.all_scores("rubenwardy", "");</script> <script>lichess.profile_scores("rubenwardy", "");</script>
</td> </td>
<td> <td>
<blockcode> <blockcode>
&lt;script&gt;lichess.all_scores("rubenwardy", "");&lt;/script&gt; &lt;script&gt;lichess.profile_scores("rubenwardy", "");&lt;/script&gt;
</blockcode> </blockcode>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<script>lichess.long_details("rubenwardy");</script> <script>lichess.profile_big("rubenwardy");</script>
</td> </td>
<td> <td>
<blockcode> <blockcode>
&lt;script&gt;lichess.long_details("rubenwardy");&lt;/script&gt; &lt;script&gt;lichess.profile_big("rubenwardy");&lt;/script&gt;
</blockcode> </blockcode>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<script>lichess.long_details("rubenwardy", "My Lichess");</script> <script>lichess.profile_big("rubenwardy", "My Lichess");</script>
</td> </td>
<td> <td>
<blockcode> <blockcode>
&lt;script&gt;lichess.long_details("rubenwardy", "My Lichess");&lt;/script&gt; &lt;script&gt;lichess.profile_big("rubenwardy", "My Lichess");&lt;/script&gt;
</blockcode> </blockcode>
</td> </td>
</tr> </tr>

View File

@ -10,7 +10,7 @@ lichess.__make_online = function(id) {
$(id + " > img").attr("src", "http://rubenwardy.github.io/lichess_widgets/lichess_online.png"); $(id + " > img").attr("src", "http://rubenwardy.github.io/lichess_widgets/lichess_online.png");
} }
lichess.challenge_me = function(author, text) { lichess.profile = function(author, text) {
serial++; serial++;
var id = serial; var id = serial;
if (text == null) if (text == null)
@ -29,7 +29,7 @@ lichess.challenge_me = function(author, text) {
} }
}); });
}; };
lichess.all_scores = function(author, text) { lichess.profile_scores = function(author, text) {
serial++; serial++;
var id = serial; var id = serial;
if (text == undefined) if (text == undefined)
@ -52,7 +52,7 @@ lichess.all_scores = function(author, text) {
} }
}); });
}; };
lichess.long_details = function(author, text) { lichess.profile_big = function(author, text) {
serial++; serial++;
var id = serial; var id = serial;
if (text == undefined) if (text == undefined)