-
Kontakta Helpdesk
//All settings are OPTIONAL. Remove them to use the defaults var hdWidget = { position: "right", //You can use "right" or "left" to position the widget bgColor: "#005ea1", //background color fgColor: "#ffffff", //text color borderColor: "#005ea1", //color of the border around the widget categoryId: 42, //pre-selected category in the widget. Get the ID from the admin panel hideCategory: 0, //set to "1" to hide category select box, works only if you also pass a default category autoShow: 1, //auto show the widget after X seconds. "0" to disable auto showing email: "", //prefilled user email if you already know it in your app };
//you can also open or close the widget programmatically //by calling _hdWidget.toggleWidget() anywhere in your code