Kundenlogin

var def_tawk_bottom = "200px"; /*This is their default style that I want to change*/ var def_tawk_right = "160px"; /*This is their default style that I want to change*/ var customize_tawk = ""; /*Interval object*/ function customize_tawk_widget(){ var cur_bottom = jQuery("iframe[title='chat widget']").eq(0).css('bottom'); /*Get the default style*/ var cur_right = jQuery("iframe[title='chat widget']").eq(0).css('right'); /*Get the default style*/ if(cur_bottom == def_tawk_bottom && cur_right == def_tawk_right){ /*Check if the default style exists then remove it and add my custom style*/ jQuery("iframe[title='chat widget']").eq(0).css({ 'right': '', 'bottom': '' }); jQuery("iframe[title='chat widget']").eq(0).addClass("custom-chat-widget"); clearInterval(customize_tawk); } } /*Customize the widget as soon as the widget is loaded*/ Tawk_API = Tawk_API || {}; Tawk_API.onLoad = function(){ /*Only for mobile version*/ if(/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent) ) { var customize_tawk = setInterval(customize_tawk_widget, 100); } }; /*Customize the widget as soon as the widget is minimized*/ Tawk_API = Tawk_API || {}; Tawk_API.onChatMinimized = function(){ /*Only for mobile version*/ if(/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent) ) { var customize_tawk = setInterval(customize_tawk_widget, 100); } };