setShare
A jQuery plugin to add social like buttons with one single call.
Download
How to use:
Call the plugin on the set of elements to add the like buttons.
Options:
$(selector).setShare(options);
$('elem').setShare({
url: string,
description: string,
image: string,
action: 'append'||'prepend'||'after'||'before'||'replace'||'html',
facebook: true||false,
twitter: true||false,
google: true||false,
pinterest: true||false
});
Defaults to window.location and description of the page set in the head tag, all 4 buttons and action 'replace'.
Examples:
$('.setShare').setShare();
$('.industrialMask').setShare({
url: $('.industrialMask').find('img').attr('src'),
description: $('.industrialMask').find('img').attr('alt'),
action: 'append'
});
Legal:
Author & copyright (c) 2013: Masquerade Circus
Dual MIT & GPLv2 license