????

Your IP : 18.189.170.45


Current Path : C:/inetpub/vhost/webkt.nextform.vn/wp-content/plugins/echbay-facebook-messenger/
Upload File :
Current File : C:/inetpub/vhost/webkt.nextform.vn/wp-content/plugins/echbay-facebook-messenger/admin.js

function check_echbay_facebook_messenger () { var f = document.echbay_config_for_efm; var lang = jQuery('#fb_customerchat_lang').val() || '';
if ( lang == '' ) { var lang = jQuery('#fb_customerchat_lang').attr('data-wplang') || '';
if ( lang == '' ) { lang = 'en_US'; } else { if (lang.split('_')[0].split('-')[0].toLowerCase() == 'vi') { lang = 'vi_VN'; } else { lang = lang.replace( '-', '_' ); } } jQuery('#fb_customerchat_lang').val( lang );
} } try { (function () { if ( typeof $ != 'function' ) { $ = jQuery; } if ( typeof web_link != 'undefined' && typeof admin_link != 'undefined' && typeof mtv_id != 'undefined' && typeof isLogin != 'undefined' ) { console.log('Active private function for webgiare.org code'); $('.show-if-webgiare').removeClass('efm-d-none'); } jQuery('.btn-restore-default').click(function () { var a = jQuery(this).attr('data-set') || ''; var b = 'input[id="' + a + '"]'; jQuery(b).val( jQuery(b).attr('placeholder') || '' ); }); jQuery('input[name="_efm_time_show"]').change(function () { if ( jQuery(this).val() == 'time' ) { jQuery('.option-time-out').fadeIn(); } else { jQuery('.option-time-out').hide(); } }); if ( jQuery('input[name="_efm_time_show"]:checked').val() == 'time' ) { jQuery('.option-time-out').fadeIn(); } jQuery('#header_bg').change(function () {
jQuery('.efm-admin-full-exemple, .efm-mobile-full-exemple').css({ 'background-color' : jQuery(this).val() }); }); jQuery('#header_text').change(function () {
jQuery('.efm-admin-full-exemple, .efm-mobile-full-exemple').css({ 'color' : jQuery(this).val() }); }); jQuery('#widget_width').change(function () {
jQuery('.efm-admin-full-exemple, .efm-mobile-full-exemple').animate({ 'max-width' : jQuery(this).val() + 'px' }); }).change(); jQuery('#widget_title, #widget_mobile_title').change(function () {
jQuery('#exemple_widget_title').html( jQuery('#widget_title').val() || 'Support Online' );
jQuery('#exemple_widget_mobile_title').html( jQuery('#widget_mobile_title').val() || 'Chat' );
}); jQuery('.efm-chat-change-tabs li').click(function(e) { jQuery('.efm-chat-change-tabs li').removeClass('selected'); jQuery(this).addClass('selected'); jQuery('.efm-default-hide').hide(); var a = jQuery(this).attr('data-tab') || ''; jQuery('.' + a).show(); document.echbay_config_for_efm._efm_chat_with.value = a.replace( 'chat-with-', '' ); }); var chat_with = document.echbay_config_for_efm._efm_chat_with.value; if ( chat_with == '' ) { if ( jQuery('#fb_page_id').val() != '' && jQuery('#fb_page_id').val().substr( 0, 1 ) != '#' ) {
chat_with = 'customerchat'; } else if ( jQuery('#fb_link').val() != '' && jQuery('#fb_link').val().substr( 0, 1 ) != '#' ) {
chat_with = 'facebook'; } else if ( jQuery('#zalo_id').val() != '' && jQuery('#zalo_id').val().substr( 0, 1 ) != '#' ) {
chat_with = 'zalo'; } else if ( jQuery('#subiz_id').val() != '' && jQuery('#subiz_id').val().substr( 0, 1 ) != '#' ) {
chat_with = 'subiz'; } else if ( jQuery('#subiz_v4_id').val() != '' && jQuery('#subiz_v4_id').val().substr( 0, 1 ) != '#' ) {
chat_with = 'subiz'; } else if ( jQuery('#tawk_id').val() != '' && jQuery('#tawk_id').val().substr( 0, 1 ) != '#' ) {
chat_with = 'tawk'; } else if ( jQuery('#uhchat_id').val() != '' && jQuery('#uhchat_id').val().substr( 0, 1 ) != '#' ) {
chat_with = 'uhchat'; } } if ( chat_with == 'customerchat' ) { jQuery('.efm-chat-change-tabs li[data-tab="chat-with-customerchat"]').click(); } else if ( chat_with == 'facebook' ) { jQuery('.efm-chat-change-tabs li[data-tab="chat-with-facebook"]').click(); } else if ( chat_with == 'zalo' ) { jQuery('.efm-chat-change-tabs li[data-tab="chat-with-zalo"]').click(); } else if ( chat_with == 'subiz' ) { jQuery('.efm-chat-change-tabs li[data-tab="chat-with-subiz"]').click(); } else if ( chat_with == 'tawk' ) { jQuery('.efm-chat-change-tabs li[data-tab="chat-with-tawk"]').click(); } else if ( chat_with == 'uhchat' ) { jQuery('.efm-chat-change-tabs li[data-tab="chat-with-uhchat"]').click(); } else { jQuery('.efm-chat-change-tabs li:first').click(); } $('.efm-chat-change-tabs li.selected').removeClass('efm-d-none'); }()); } catch ( e ) { console.log( 'stack: ' + (e.stackTrace || e.stack) ); }