If you want to control Lime Talk outside its user interface, you can use our API.
After loading the widget, you can use the following commands:
Setting widget position
limetalk.api.setPosition('left');
limetalk.api.setPosition('right');
Chat widget control (expanding, minimizing, color changes)
limetalk.api.chatbox.show();
limetalk.api.chatbox.hide();
limetalk.api.chatbox.setColor('#000000');
Chat bubble control (expanding, minimizing, color changes)
limetalk.api.bubble.show();
limetalk.api.bubble.hide();
limetalk.api.bubble.setColor('#000000');
Setting visitor’s name and e-mail
limetalk.api.visitor.setDefaults('Name', 'name@email.domain');
If you wish to use any of the above mentioned commands before the widget is loaded (for instance when calling during event <body onload="">), you must wrap the above mentioned commands in function:
limetalk.ready(function() { });
Example:
limetalk.ready(function() { limetalk.api.setPosition('left'); });