<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">;
//Sixe Contact Online
jQuery(document).ready(function () {

    // Storage
    var scoSessStoreYN = true;
    var scoSessStoreFlag = 'SIXE_CONTACT_ONLINE_STATE';
    try {
        window.sessionStorage.setItem("SIXE_CONTACT_ONLINE_TEST", 1);
    } catch (e) {
        scoSessStoreYN = false;
    }

    // 插件展开状态
    var scoStatus = function () {
        var _list = jQuery('.sixe-contact-online &gt; ul');
        var _close = jQuery('.sixe-contact-online .sco-item-close');
        var _state = scoSessStoreYN ? window.sessionStorage.getItem(scoSessStoreFlag) : '';

        // 如果插件设置不在移动端显示
        if (jQuery('.sixe-contact-online').hasClass('hideonmobile') &amp;&amp; jQuery(window).outerWidth() &lt; 769) {
            jQuery('.sixe-contact-online').hide();
        } else {
            jQuery('.sixe-contact-online').show();
            if (_state === 'on') {
                _list.removeClass('sco-hidden');
                _close.find('i').removeClass('scoicon-comment').addClass('scoicon-close');
                _close.siblings().not('.sco-item-top').show();
            } else if (_state === 'off') {
                _list.addClass('sco-hidden');
                _close.find('i').removeClass('scoicon-close').addClass('scoicon-comment');
                _close.siblings().not('.sco-item-top').hide();
            } else {
                if (jQuery(window).outerWidth() &gt; 768) {
                    _list.removeClass('sco-hidden');
                    _close.find('i').removeClass('scoicon-comment').addClass('scoicon-close');
                    _close.siblings().not('.sco-item-top').show();
                    if (scoSessStoreYN) {
                        window.sessionStorage.setItem(scoSessStoreFlag, 'on');
                    }
                } else {
                    _list.addClass('sco-hidden');
                    _close.find('i').removeClass('scoicon-close').addClass('scoicon-comment');
                    _close.siblings().not('.sco-item-top').hide();
                    if (scoSessStoreYN) {
                        window.sessionStorage.setItem(scoSessStoreFlag, 'off');
                    }
                }
            }
        }
    }

    // QQ移动端处理
    var scoQQLink = function () {
        var ua = navigator.userAgent.toLowerCase();
        console.log(navigator.userAgent);
        console.log(ua);
        if (jQuery('.sixe-contact-online .sco-item-qq').length &gt; 0) {
            jQuery('.sixe-contact-online .sco-item-qq .sco-pop .sco-btn a.noshangqq').each(function () {
                /*
                if (/(iphone|ipad|ipod|ios)/i.test(ua)) { //判断iPhone|iPad|iPod|iOS
                    jQuery(this).attr('href', jQuery(this).attr('data-ios_link'));
                } else if (/(android)/i.test(ua)) {  //判断Android
                    jQuery(this).attr('href', jQuery(this).attr('data-android_link'));
                } else { //pc
                    jQuery(this).attr('href', jQuery(this).attr('data-pc_link'));
                };
                */

                if (jQuery(window).outerWidth() &gt; 768) {
                    jQuery(this).attr('href', jQuery(this).attr('data-pc_link'));
                } else {
                    jQuery(this).attr('href', jQuery(this).attr('data-ios_link'));
                }
            });
        }
    }

    scoStatus();
    scoQQLink();
    jQuery(window).resize(function () {
        if (scoSessStoreYN) {
            scoStatus();
        }
        scoQQLink();
    });

    // 面板开启与关闭
    jQuery(document).on('click', '.sixe-contact-online .sco-item-close', function () {
        var _list = jQuery('.sixe-contact-online &gt; ul');
        if (_list.hasClass('sco-hidden')) {
            jQuery(this).find('i').removeClass('scoicon-comment').addClass('scoicon-close');
            jQuery(this).siblings().not('.sco-item-top').show();
            _list.removeClass('sco-hidden');
            if (scoSessStoreYN) {
                window.sessionStorage.setItem(scoSessStoreFlag, 'on');
            }
        } else {
            jQuery(this).find('i').removeClass('scoicon-close').addClass('scoicon-comment');
            jQuery(this).siblings().not('.sco-item-top').hide();
            _list.addClass('sco-hidden');
            if (scoSessStoreYN) {
                window.sessionStorage.setItem(scoSessStoreFlag, 'off');
            }
        }
    });

    // 面板项目响应
    if (jQuery(window).outerWidth() &gt; 768) {
        jQuery(document).on('mouseenter', '.sixe-contact-online li', function () {
            jQuery(this).find('.sco-pop').show();
            jQuery(this).siblings().find('.sco-pop').hide();
        });

        jQuery(document).on('mouseleave', '.sixe-contact-online', function () {
            jQuery('.sixe-contact-online').find('.sco-pop').hide();
        });
    } else {
        jQuery(document).on('click', '.sixe-contact-online li', function () {
            jQuery(this).find('.sco-pop').show();
            jQuery(this).siblings().find('.sco-pop').hide();
            jQuery('.sixe-contact-online-mask').show();
        });

        jQuery(document).on('click', '.sixe-contact-online-mask', function () {
            jQuery('.sixe-contact-online').find('.sco-pop').hide();
            jQuery(this).hide();
        });
    }

    // 返回顶部按钮
    if (jQuery('.sixe-contact-online .sco-item-top').length &gt; 0) {

        jQuery(window).scroll(function () {
            var top = jQuery('.sixe-contact-online .sco-item-top');
            if (jQuery(document).scrollTop() &gt; parseInt(top.attr('data-backtopheight'))) {
                top.css({display: 'block'});
            } else {
                if (top.is(':visible')) {
                    top.hide();
                }
            }
        });

        jQuery(document).on('click', '.sixe-contact-online .sco-item-top', function () {
            jQuery('html,body').animate({scrollTop: 0});
        });
    }

});</pre></body></html>