Configuração padrão:
$.DirectChat({hash: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'});
Dados previamente preenchido:
$.DirectChat({ hash: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', name: 'Fulano', email: '[email protected]', phone: '11999999999' });
Abre em X segundos:
$.DirectChat({ hash: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', autoStart: 5 //5 segundos });
Departamento previamente preenchido:
$.DirectChat('startChat', { hash: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', department: 999, name: 'Fulano', email: '[email protected]', phone: '11999999999' });
Ícones:
$.DirectChat({ hash: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', iconType: 'icon-click-right-bottom' });
tipo de ícones disponíveis:
- bar-click-center
- bar-click-left-bottom
- bar-click-left-middle
- bar-click-left-top
- bar-click-right-bottom
- bar-click-right-middle
- bar-click-right-top
- bar-hover-center
- bar-hover-left-bottom
- bar-hover-left-middle
- bar-hover-left-top
- bar-hover-right-bottom
- bar-hover-right-middle
- bar-hover-right-top
- icon-click-left-bottom
- icon-click-left-top
- icon-click-right-bottom
- icon-click-right-top
Cores:
$.DirectChat({ hash: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', color: '374bff' //hex });
Trigger por javascript:
//abrir chat onclick="$.DirectChat('startChat', {hash: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'});" //abrir ligação onclick="$.DirectChat('startClick2call', {hash: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'});" //abrir chat - departamento previamente selecionado onclick="$.DirectChat('startChat', {type:'chat' department: 999});" //abrir ligação - departamento previamente selecionado onclick="$.DirectChat('startClick2call', {type:'click2call' department: 999});"
Parametros customizados:
$.DirectChat({ hash: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', codigo: 12989812, site: 'https://directcall.com.br' });
Listagem de departamentos:
var directchat = $.DirectChat({ hash: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' }); directchat.getDepartments(function(departments){ console.log(departments); });
Horários de atendimento por departamento:
var directchat = $.DirectChat({ hash: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' }); directchat.getDepartmentHour(999,function(hours){ console.log(hours); });
Verificar status do chat Online/Offline:
var directchat = $.DirectChat({ hash: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' }); directchat.getChatStatus(function(status){ console.log(status); });
22 Comentários
Anônimo
Anônimo
Anônimo
Anônimo
Anônimo
Anônimo
Anônimo
Anônimo
Anônimo
Anônimo
Anônimo
Anônimo
Anônimo
Anônimo
Anônimo
Anônimo
Anônimo
Anônimo
Anônimo
Anônimo
Anônimo
Anônimo
Adicionar Comentário