Skip to content

Instantly share code, notes, and snippets.

@Radagaisus
Created August 9, 2012 20:23
Show Gist options
  • Select an option

  • Save Radagaisus/3307782 to your computer and use it in GitHub Desktop.

Select an option

Save Radagaisus/3307782 to your computer and use it in GitHub Desktop.
Async Captain Up
<div id='cptup-ready'></div>
<script type='text/javascript'>
(function() {
var cpt = document.createElement('script');
cpt.type = 'text/javascript';
cpt.async = true;
cpt.src = 'http%s://captainup.com/assets/embed.js';
cpt.src.replace('%s', (location.protocol == 'https:' ? 's' : ''));
(document.getElementsByTagName('head')[0] ||
document.getElementsByTagName('body')[0]).appendChild(cpt);
})();
</script>
<script type='text/javascript'>
window.captain = {
up: function(fn) {
captain.topics.push(fn)
},
topics: []
}
captain.up({
/* Add Settings Here: */
api_key: '501f328f9c2ee4763900005a',
local: true,
debug: 8
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment