Skip to content

Commit

Permalink
Add vkontakte
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaMedzhidov committed Sep 9, 2016
1 parent e04052d commit 6ba9744
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/jssocials.shares.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@
return data.share && data.share.share_count || 0;
}
},

vkontakte: {
label: "Like",
logo: "fa fa-vk",
shareUrl: "https://vk.com/share.php?url={url}&title={title}&description={text}",
countUrl: "https://vk.com/share.php?act=count&index=1&url={url}",
getCount: function(data) {
return parseInt(data.slice(15, -2).split(', ')[1]);
}
},

googleplus: {
label: "+1",
Expand Down

0 comments on commit 6ba9744

Please sign in to comment.