From d4536f8d84e7b346b3249a32b166842bc4d33eba Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 7 Nov 2014 16:26:11 +0000 Subject: [PATCH] Change API --- dark.css | 2 +- index.html | 24 ++++++++++++------------ lichess_widgets.js | 6 +++--- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/dark.css b/dark.css index f6c8b9b..5a56654 100644 --- a/dark.css +++ b/dark.css @@ -5,7 +5,7 @@ margin: 2px; background: #333; border: 1px solid #444; - padding: 5px 7px 7px 5px; + padding: 5px 10px 7px 10px; color: #acacac; border-radius: 4px; text-decoration: none; diff --git a/index.html b/index.html index 4074eb2..ba80b3c 100644 --- a/index.html +++ b/index.html @@ -50,62 +50,62 @@ diff --git a/lichess_widgets.js b/lichess_widgets.js index 016f137..b7e54ea 100644 --- a/lichess_widgets.js +++ b/lichess_widgets.js @@ -10,7 +10,7 @@ lichess.__make_online = function(id) { $(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++; var id = serial; 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++; var id = serial; 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++; var id = serial; if (text == undefined)
- + - <script>lichess.challenge_me("rubenwardy", "Lichess");</script> + <script>lichess.profile("rubenwardy", "Lichess");</script>
- + - <script>lichess.challenge_me("rubenwardy");</script> + <script>lichess.profile("rubenwardy");</script>
- + - <script>lichess.all_scores("rubenwardy");</script> + <script>lichess.profile_scores("rubenwardy");</script>
- + - <script>lichess.all_scores("rubenwardy", "");</script> + <script>lichess.profile_scores("rubenwardy", "");</script>
- + - <script>lichess.long_details("rubenwardy");</script> + <script>lichess.profile_big("rubenwardy");</script>
- + - <script>lichess.long_details("rubenwardy", "My Lichess");</script> + <script>lichess.profile_big("rubenwardy", "My Lichess");</script>