Skip to content

Instantly share code, notes, and snippets.

@joelklabo
Created March 2, 2011 02:07
Show Gist options
  • Save joelklabo/850328 to your computer and use it in GitHub Desktop.
Save joelklabo/850328 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
Event.observe(document,'dom:loaded',function(){
var flashvars = {};
flashvars.appname = '<%= SITE_NAME %>';
flashvars.appurl = '<%= site_with_protocol %>/desktop/Yammer.air';
flashvars.airversion = '1.5.3';
flashvars.imageurl = "/images/desktop_badge.png";
flashvars.jsonclickcallback = function(){ window.location = '<%= site_with_protocol %>#/Threads/index?type=following' };
var params = {};
params.bgcolor = "#FFFFFF";
var attributes = {};
attributes.id = "Badge";
swfobject.embedSWF("/flash/AIRBadge.swf", "flashcontent", "217", "180", "9.0.115", "/flash/expressinstall.swf", flashvars, params, attributes);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment