Hi,
i am using zopim live chat on a website and I would like a different offset depending on if a div exists or not. I can’t get it working tho.
Code:
$zopim(function() {
if($('.js-steps').lenght){
$zopim.livechat.button.setOffsetVertical(82);
} else {
$zopim.livechat.button.setOffsetVertical(0);
}
});
Is anything wrong with my code here?