Make your sharing widget! Sharrre is a jQuery plugin that allows you to create nice widgets sharing for Facebook, Twitter, Google Plus (with PHP script) and more. More information on [Sharrre] (http://sharrre.com/#demos)
- Pinterest is now handled without the server-side script.
- The server-side script (previously "sharrre.php") is now made in Python (see sharrre.py).
- The server-side script no longer handles some HTTP response and answer, it just contains an util function
get_count, it's up to you to integrate it with your favorite Python framework. The URL to your view must be specified in theurlCurloption. - The client-side plugin makes JSONP requests, so the server-side view must handle a
callbackparameter and wrapget_countresult into a JSONP response.
$('#sharrre').sharrre({
share: {
googlePlus: true,
facebook: true,
twitter: true
},
url: 'http://sharrre.com'
});
$(document).ready(function(){ $('#demo1').sharrre({ share: { googlePlus: true, facebook: true, twitter: true, delicious: true }, buttons: { googlePlus: {size: 'tall'}, facebook: {layout: 'box_count'}, twitter: {count: 'vertical'}, delicious: {size: 'tall'} }, hover: function(api, options){ $(api.element).find('.buttons').show(); }, hide: function(api, options){ $(api.element).find('.buttons').hide(); } }); });See example on [official website] (http://sharrre.com/#demos)
jQuery 1.7