Skip to content

Instantly share code, notes, and snippets.

@whichlight
Created January 16, 2014 07:56
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 whichlight/8451255 to your computer and use it in GitHub Desktop.
Save whichlight/8451255 to your computer and use it in GitHub Desktop.
button example with betahaus
var button = "&lt;a class=&quot;embedly-button&quot; href=&quot;http://embed.ly/code&quot; data-lang=&quot;Auto (Determined by Browser)&quot;&gt;Embed&lt;/a&gt;<br/>&lt;script&gt;!function(a){var b=&quot;embedly-platform&quot;,c=&quot;script&quot;;if(!a.getElementById(b)){var d=a.createElement(c);d.id=b,d.src=(&quot;https:&quot;===document.location.protocol?&quot;https&quot;:&quot;http&quot;)+&quot;://cdn.embedly.com/widgets/platform.js&quot;;var e=document.getElementsByTagName(c)[0];e.parentNode.insertBefore(d,e)}}(document);&lt;/script&gt;"; var $button = jQuery('<div/>').html(button).text(); jQuery(".post-content").append($button)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment