var _timer = null;         function yourFunction(visibility) {             if (visibility === 'visible') {                 console.log('聊天窗口处于显示状态');                 clearTimeout(_timer);             } else {                 console.log('聊天窗口处于隐藏状态');                 _timer = setTimeout(function(){                     _MEIQIA('showPanel');                      }, 5000);//聊天窗口隐藏10s后打开窗口                  };             };                  (function(m, ei, q, i, a, j, s) {             m[i] = m[i] || function() {                 (m[i].a = m[i].a || []).push(arguments)             };             j = ei.createElement(q),                 s = ei.getElementsByTagName(q)[0];             j.async = true;             j.charset = 'UTF-8';             j.src = 'https://static.meiqia.com/dist/meiqia.js?_=t';             s.parentNode.insertBefore(j, s);         })(window, document, 'script', '_MEIQIA');         _MEIQIA('entId', 265255);         // 获取聊天窗口可见性         _MEIQIA('getPanelVisibility', yourFunction);