1 | <!DOCTYPE html>
|
2 | <html lang="ru-RU">
|
3 | <head>
|
4 | <meta charset="utf-8">
|
5 | <title>Social Likes LiveJournal 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/livejournal.css" rel="stylesheet">
|
12 |
|
13 | </head>
|
14 | <body>
|
15 |
|
16 | <h3>LiveJournal button</h3>
|
17 |
|
18 | <script>
|
19 | var socialLikesButtons = {
|
20 | livejournal: {
|
21 | click: function() {
|
22 | var html = this.widget.data('html')
|
23 | .replace(/{url}/g, this.options.url)
|
24 | .replace(/{title}/g, this.options.title)
|
25 | .replace(/&/g, '&')
|
26 | .replace(/"/g, '"');
|
27 | var form = $(
|
28 | '<form action="http://www.livejournal.com/update.bml" method="post" target="_blank" accept-charset="UTF-8">' +
|
29 | '<input type="hidden" name="mode" value="full">' +
|
30 | '<input type="hidden" name="subject" value="' + this.options.title + '">' +
|
31 | '<input type="hidden" name="event" value="' + html + '">' +
|
32 | '</form>'
|
33 | );
|
34 | form.submit();
|
35 | }
|
36 | }
|
37 | };
|
38 | </script>
|
39 |
|
40 | <ul class="social-likes">
|
41 | <li class="livejournal" title="Share link on LiveJournal" data-html="<a href='{url}'>{title}</a>">LiveJournal</li>
|
42 | </ul>
|
43 |
|
44 | </body>
|
45 | </html>
|