Created
February 4, 2015 04:42
-
-
Save mhluska/b6d4584ce5fc6a932129 to your computer and use it in GitHub Desktop.
Load social buttons
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loadSocialButtons = (-> | |
# Coinbase | |
$.getScript('//www.coinbase.com/assets/tips.js', -> | |
# HACK(maros): Find a load event for the coinbase tip button. | |
setTimeout((-> | |
socialButtonReady('coinbase') | |
), 1000) | |
) | |
$.getScript('//connect.facebook.net/en_US/sdk.js', -> | |
FB.Event.subscribe('xfbml.render', -> | |
socialButtonReady('facebook') | |
) | |
) | |
$.getScript('//platform.twitter.com/widgets.js', -> | |
twttr.events.bind('loaded', -> | |
socialButtonReady('twitter') | |
) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment