1 | <!DOCTYPE html>
|
2 | <html lang="ru-RU">
|
3 | <head>
|
4 | <meta charset="utf-8">
|
5 | <title>Social Likes GitHub button</title>
|
6 | <link href="../social-likes_classic.css" rel="stylesheet">
|
7 | <script src="http://yandex.st/jquery/1.9.1/jquery.min.js"></script>
|
8 | <script src="../social-likes.min.js"></script>
|
9 |
|
10 |
|
11 | <link href="css/github.css" rel="stylesheet">
|
12 |
|
13 | </head>
|
14 | <body>
|
15 |
|
16 | <h3>GitHub button</h3>
|
17 |
|
18 | <script>
|
19 |
|
20 | var socialLikesButtons = {
|
21 | github: {
|
22 | counterUrl: 'https://api.github.com/repos/sapegin/social-likes?callback=?',
|
23 | convertNumber: function(data) {
|
24 | return data.data.watchers_count;
|
25 | },
|
26 | clickUrl: 'https://github.com/sapegin/social-likes/'
|
27 | }
|
28 | };
|
29 | </script>
|
30 |
|
31 | <ul class="social-likes">
|
32 | <li class="github" title="Star on GitHub">GitHub</li>
|
33 | </ul>
|
34 |
|
35 | </body>
|
36 | </html>
|