From b4e42855f4823805059f3ed8ab089dccc8001186 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 11 Nov 2014 17:56:39 +0000 Subject: [PATCH] Fix namespace bug --- index.html | 50 +++++++++++++++++++++++----------------------- lichess_widgets.js | 2 +- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/index.html b/index.html index 84777a3..d58fd82 100644 --- a/index.html +++ b/index.html @@ -16,7 +16,7 @@ } .container { width: 90%; - max-width: 950px; + max-width: 1000px; margin: auto; } #black_section { @@ -76,62 +76,62 @@ @@ -144,62 +144,62 @@
- + - <script>lichess.profile("light", "rubenwardy", "Lichess");</script> + <script>lichess_widgets.profile("light", "rubenwardy", "Lichess");</script>
- + - <script>lichess.profile("light", "rubenwardy");</script> + <script>lichess_widgets.profile("light", "rubenwardy");</script>
- + - <script>lichess.profile_scores("light", "rubenwardy");</script> + <script>lichess_widgets.profile_scores("light", "rubenwardy");</script>
- + - <script>lichess.profile_scores("light", "rubenwardy", "");</script> + <script>lichess_widgets.profile_scores("light", "rubenwardy", "");</script>
- + - <script>lichess.profile_big("light", "rubenwardy");</script> + <script>lichess_widgets.profile_big("light", "rubenwardy");</script>
- + - <script>lichess.profile_big("light", "rubenwardy", "My Lichess");</script> + <script>lichess_widgets.profile_big("light", "rubenwardy", "My Lichess");</script>
diff --git a/lichess_widgets.js b/lichess_widgets.js index f8666b6..cd55ccf 100644 --- a/lichess_widgets.js +++ b/lichess_widgets.js @@ -1,4 +1,4 @@ -var lichess = (function() { +var lichess_widgets = (function() { function make_online(id) { $(id).addClass("lichess_online"); $(id + " > img").attr("src", "http://rubenwardy.github.io/lichess_widgets/lichess_online.png");
- + - <script>lichess.profile("dark", "rubenwardy", "Lichess");</script> + <script>lichess_widgets.profile("dark", "rubenwardy", "Lichess");</script>
- + - <script>lichess.profile("dark", "rubenwardy");</script> + <script>lichess_widgets.profile("dark", "rubenwardy");</script>
- + - <script>lichess.profile_scores("dark", "rubenwardy");</script> + <script>lichess_widgets.profile_scores("dark", "rubenwardy");</script>
- + - <script>lichess.profile_scores("dark", "rubenwardy", "");</script> + <script>lichess_widgets.profile_scores("dark", "rubenwardy", "");</script>
- + - <script>lichess.profile_big("dark", "rubenwardy");</script> + <script>lichess_widgets.profile_big("dark", "rubenwardy");</script>
- + - <script>lichess.profile_big("dark", "rubenwardy", "My Lichess");</script> + <script>lichess_widgets.profile_big("dark", "rubenwardy", "My Lichess");</script>