Skip to content

Instantly share code, notes, and snippets.

@eristoddle
Created September 27, 2012 21:51
Show Gist options
  • Save eristoddle/3796667 to your computer and use it in GitHub Desktop.
Save eristoddle/3796667 to your computer and use it in GitHub Desktop.
Sharethis jQuery
(function($){
$.fn.shareThis = function(){
return this.each(function(index){
var purl = document.URL;
var ptitle = document.title;
stLight.options({
publisher:'dr-255294f2-4f5f-ac06-234-20d2bab2ab7c',
onhover:false,
button: false,
});
stWidget.addEntry({
service:'sharethis',
element:this,
url:purl,
title:ptitle,
type:'custom'
});
});
}
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment