Skip to content

Instantly share code, notes, and snippets.

@tstachl
Last active August 29, 2015 13:56
Show Gist options
  • Save tstachl/9261241 to your computer and use it in GitHub Desktop.
Save tstachl/9261241 to your computer and use it in GitHub Desktop.
<!--If you already have jquery on the page you don't need to insert this script tag-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
<link href="https://d218iqt4mo6adh.cloudfront.net/assets/widget_embed_191.css" media="screen" rel="stylesheet" type="text/css" />
<!--If you already have fancybox on the page this script tag should be omitted-->
<script src="https://d218iqt4mo6adh.cloudfront.net/assets/widget_embed_libraries_191.js" type="text/javascript"></script>
<script>
// ********************************************************************************
// This needs to be placed in the document body where you want the widget to render
// ********************************************************************************
new DESK.Widget({
version: 1,
site: 'blueye.desk.com',
secure: true,
type: 'email',
displayMode: 1, //0 for popup, 1 for lightbox
features: {},
fields: {
ticket: {
// desc: &#x27;&#x27;,
// labels_new: &#x27;&#x27;,
// priority: &#x27;&#x27;,
// subject: &#x27;&#x27;,
// custom_my_new_custom_field: &#x27;&#x27;,
// custom_my_new_number_field: &#x27;&#x27;,
// custom_my_new_date_field: &#x27;&#x27;,
// custom_my_new_boolean_field: &#x27;&#x27;,
// custom_my_new_list_field: &#x27;&#x27;,
// custom_follow_up: &#x27;&#x27;,
// custom_dependent: &#x27;&#x27;
},
interaction: {
// email: &#x27;&#x27;,
// name: &#x27;&#x27;
},
email: {
//subject: '',
//body: ''
},
customer: {
// company: &#x27;&#x27;,
// desc: &#x27;&#x27;,
// first_name: &#x27;&#x27;,
// last_name: &#x27;&#x27;,
// locale_code: &#x27;&#x27;,
// title: &#x27;&#x27;,
// custom_my_custom_field: &#x27;&#x27;,
// custom_my_number_field: &#x27;&#x27;,
// custom_my_boolean_field: &#x27;&#x27;,
// custom_my_date_field: &#x27;&#x27;,
// custom_my_list_field: &#x27;&#x27;
}
}
}).render();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment