Skip to content

Instantly share code, notes, and snippets.

@ajace
Created October 14, 2014 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajace/8dc29b5d82dc464d1293 to your computer and use it in GitHub Desktop.
Save ajace/8dc29b5d82dc464d1293 to your computer and use it in GitHub Desktop.
Custom Pinterest Button with auto url and auto media
<!-- credit: http://www.brandaiddesignco.com/insights/add-a-custom-pinterest-pin-it-button-to-your-website/ -->
<a href='javascript:void((function()%7Bvar%20e=document.createElement(&apos;script&apos;);e.setAttribute(&apos;type&apos;,&apos;text/javascript&apos;);e.setAttribute(&apos;charset&apos;,&apos;UTF-8&apos;);e.setAttribute(&apos;src&apos;,&apos;http://assets.pinterest.com/js/pinmarklet.js?r=&apos;+Math.random()*99999999);document.body.appendChild(e)%7D)());'><img src='http://www.brandaiddesignco.com/insights/PinIt.png'/></a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment