Skip to content

Instantly share code, notes, and snippets.

@DeskSupport
Created November 30, 2012 14:06
Show Gist options
  • Save DeskSupport/4175924 to your computer and use it in GitHub Desktop.
Save DeskSupport/4175924 to your computer and use it in GitHub Desktop.
Email widget example
<!-- CSS & JS -->
<link href="https://desk-customers.s3.amazonaws.com/shared/email_widget.css" media="screen" rel="stylesheet" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="https://desk-customers.s3.amazonaws.com/shared/email_widget.js" type="text/javascript"></script>
<!-- The lightbox -->
<div id="desk-support-box">
<a id="desk-support-box-close">&otimes;</a>
<iframe src="http://YOUR-SITE.desk.com/customer/widget/emails/new" id="desk-widget-iframe"></iframe>
</div>
<div id="desk-darkness"></div>
<!-- Use one of these three different CTA styles (sidetab, button, or text link) -->
<a class="desk-cta desk-sidetab" href="http://YOUR-SITE.desk.com/customer/widget/emails/new">Support</a>
<a class="desk-cta desk-button" href="http://YOUR-SITE.desk.com/customer/widget/emails/new">Support</a>
<a class="desk-cta desk-text" href="http://YOUR-SITE.desk.com/customer/widget/emails/new">Support</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment