Last active
August 29, 2015 13:56
-
-
Save tstachl/9261241 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--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: '', | |
// labels_new: '', | |
// priority: '', | |
// subject: '', | |
// custom_my_new_custom_field: '', | |
// custom_my_new_number_field: '', | |
// custom_my_new_date_field: '', | |
// custom_my_new_boolean_field: '', | |
// custom_my_new_list_field: '', | |
// custom_follow_up: '', | |
// custom_dependent: '' | |
}, | |
interaction: { | |
// email: '', | |
// name: '' | |
}, | |
email: { | |
//subject: '', | |
//body: '' | |
}, | |
customer: { | |
// company: '', | |
// desc: '', | |
// first_name: '', | |
// last_name: '', | |
// locale_code: '', | |
// title: '', | |
// custom_my_custom_field: '', | |
// custom_my_number_field: '', | |
// custom_my_boolean_field: '', | |
// custom_my_date_field: '', | |
// custom_my_list_field: '' | |
} | |
} | |
}).render(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment