2013-09-22 22:55:47 +04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="ru-RU">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>Social Likes LiveJournal button</title>
|
|
|
|
<link href="../social-likes_classic.css" rel="stylesheet">
|
|
|
|
<script src="http://yandex.st/jquery/1.9.1/jquery.min.js"></script>
|
|
|
|
<script src="../social-likes.min.js"></script>
|
|
|
|
|
2014-09-10 21:43:00 +04:00
|
|
|
<!-- LiveJournal button CSS -->
|
2013-09-22 22:55:47 +04:00
|
|
|
<link href="css/livejournal.css" rel="stylesheet">
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<h3>LiveJournal button</h3>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
var socialLikesButtons = {
|
|
|
|
livejournal: {
|
2014-11-21 08:06:56 +03:00
|
|
|
click: function() {
|
|
|
|
var html = this.widget.data('html')
|
|
|
|
.replace(/{url}/g, this.options.url)
|
|
|
|
.replace(/{title}/g, this.options.title)
|
|
|
|
.replace(/&/g, '&')
|
|
|
|
.replace(/"/g, '"');
|
|
|
|
var form = $(
|
|
|
|
'<form action="http://www.livejournal.com/update.bml" method="post" target="_blank" accept-charset="UTF-8">' +
|
|
|
|
'<input type="hidden" name="mode" value="full">' +
|
|
|
|
'<input type="hidden" name="subject" value="' + this.options.title + '">' +
|
|
|
|
'<input type="hidden" name="event" value="' + html + '">' +
|
|
|
|
'</form>'
|
|
|
|
);
|
2013-09-22 22:55:47 +04:00
|
|
|
form.submit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<ul class="social-likes">
|
2014-09-10 21:43:00 +04:00
|
|
|
<li class="livejournal" title="Share link on LiveJournal" data-html="<a href='{url}'>{title}</a>">LiveJournal</li>
|
2013-09-22 22:55:47 +04:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|