diff --git a/Readme.md b/Readme.md index b94dfbf..80b8d3e 100644 --- a/Readme.md +++ b/Readme.md @@ -68,7 +68,7 @@ If you want to remove button titles add `social-likes_notext` class to make it l ### Options -Options define via HTML data attributes. +Options define via HTML data attributes or JavaScript parameters object. `url` @@ -104,6 +104,14 @@ Examples: ``` +```js +$('.social-likes').socialLikes({ + url: 'https://github.com/sapegin/social-likes/', + title: 'Beautiful “like” buttons with counters for popular social networks', + counters: true +}); +``` + ### Services specific options #### Twitter diff --git a/src/demo.html b/src/demo.html index b94fb7d..68571a2 100644 --- a/src/demo.html +++ b/src/demo.html @@ -4,7 +4,7 @@ Social Likes - + @@ -132,7 +132,7 @@ body {
  • Google+
  • Pinterest
  • -