Skip to content

Instantly share code, notes, and snippets.

@arbales
Created August 31, 2011 19:40
Show Gist options
  • Select an option

  • Save arbales/1184493 to your computer and use it in GitHub Desktop.

Select an option

Save arbales/1184493 to your computer and use it in GitHub Desktop.
%section.social
%fb:like{href:"", send: "false", layout: "button_count", width: "", show_faces: "false", style: 'bottom: 3px'}
%g:plusone{size: "medium"}
%a{href: "http://twitter.com/share", class: "twitter-share-button", 'data-count' => "horizontal", 'data-text' => 'Do is an exciting new app launching soon. Sign up to be the first to receive an invite.', 'data-url' => 'http://do.com', 'data-via' => 'anditsdone'} Tweet
- content_for :javascripts do
#fb-root
:plain
<script src="http://connect.facebook.net/en_US/all.js#appId=166087366802364&amp;xfbml=1"></script>
<script src="http://platform.twitter.com/widgets.js"></script>
:coffeescript
# Google +1
do ->
script = document.createElement 'script'
script.type = 'text/javascript'
script.async = true
script.src = '//apis.google.com/js/plusone.js'
s = document.getElementsByTagName('script')[0]
s.parentNode.insertBefore(script, s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment