Skip to content

Instantly share code, notes, and snippets.

@nickws
Created April 13, 2011 15:50
Show Gist options
  • Save nickws/917796 to your computer and use it in GitHub Desktop.
Save nickws/917796 to your computer and use it in GitHub Desktop.
emot.io Javascript
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
var _emq = _emq || [];
(function() {
_emq.push(['setPID', 'YOUR-PARTNER-ID-HERE']); // Set the partner ID here
var s = document.createElement('SCRIPT');
var c = document.getElementsByTagName('script')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'http://emotio.heroku.com/javascripts/widget/init.js';
c.parentNode.insertBefore(s, c);
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment