Created
December 5, 2011 14:54
-
-
Save supasympa/1433849 to your computer and use it in GitHub Desktop.
Some code to update ShareThis buttons with custom images - useful in SPAs or AJAX apps
Simple and great code.
shareThis still did not implement an updateEntity fn so this is still effective.
Thank you.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OK so it uses jQuery but it wouldn't be hard to change it to a pure Javascript version.
Obviously you'll need to change the services and their associated images.
The function is called with three properties:
location: the location url to share
title : the title to share
imgsrc : the image (icon) to share