var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); //document.write(""); var LimtSiteSiteName_CenterBox=["chat.jc35.com","chat.hbzhan.com","chat.afzhan.com","chat.gkzhan.com","chat.ybzhan.cn","chat.a-bm.cn","chat.chem17.com"]; //大框金色的这些还在用20200508 function setCookie(name, value, expireday) { var exp = new Date(); exp.setTime(exp.getTime() + expireday*24*60*60*1000); document.cookie = name+"="+escape(value)+"; expires"+"="+exp.toGMTString(); } function getCookie(name) { var cookieArr = document.cookie.match(new RegExp(name+"=[a-zA-Z0-9]*", "gi")); if(cookieArr != null && cookieArr.length>0){ var cookieVal = cookieArr[0].split("="); if(cookieVal[0] == name) { return unescape(cookieVal[1]); } } } function DelCookies(name) { var exp = new Date(); exp.setTime(exp.getTime() - 1); var cval=getCookie(name); if(cval!=null) document.cookie= name + "="+cval+";expires="+exp.toGMTString() + ";path=/"; } function CloseKFCenter() { setCookie("KfCenterBox_626733", 1, 365); jQuery("#KFCenterScreen").hide(); if(jQuery("#KFRightScreen")==null||jQuery("#KFRightScreen").length < 1){ //rightBoxShow(); //if("chat.hbzhan.com"=="chat.hbzhan.com" ||"chat.hbzhan.com"=="chat.afzhan.com" ||"chat.hbzhan.com"=="chat.gkzhan.com" ||"chat.hbzhan.com"=="chat.ybzhan.cn"){ rightNewBoxShow(); //1.环保站搞个新的客服框飘着20200430 2.工控看见后表示也想要20200507 3.仪表也要20200709 4.安防站也要20220525 //} //else{ // rightBoxShow(); //} } } function OpenChatBox(url) { CloseKFCenter(); var iHeight = 698; var iWidth = 1230; var iTop = (window.screen.availHeight - 30 - iHeight) / 2; //获得窗口的垂直位置; var iLeft = (window.screen.availWidth - 10 - iWidth) / 2; //获得窗口的水平位置; window.open(url, 'window1', 'height=' + iHeight + ', width=' + iWidth + ', top=' + iTop + ', left=' + iLeft + ', toolbar=no, menubar=no, scrollbars=no,resizable=no, location=no, status=no'); //window.open(url, window, 'dialogWidth:700px; dialogHeight:600px;help:1;status:1;resizeable:0;'); } //获取窗口高度 function getWindowHeight() { var windowHeight = 0; if (typeof (window.innerHeight) == 'number') { windowHeight = window.innerHeight; } else { if (document.documentElement && document.documentElement.clientHeight) { windowHeight = document.documentElement.clientHeight; } else { if (document.body && document.body.clientHeight) { windowHeight = document.body.clientHeight; } } } return windowHeight; } //获取窗口宽度 function getWindowWidth() { var windowWidth = 0; if (typeof (window.innerWidth) == 'number') { windowWidth = window.innerWidth; } else { if (document.documentElement && document.documentElement.clientWidth) { windowWidth = document.documentElement.clientWidth; } else { if (document.body && document.body.clientWidth) { windowWidth = document.body.clientWidth; } } } return windowWidth; } function ResetDivpostion() { var _move = false; var _x, _y; var index_x, index_y; var IsMobileVs=false; try { if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) { IsMobileVs=true; } } catch (e) { } jQuery("#KFCenterScreen").bind("mousedown", downIndex); jQuery(document).bind("mousemove", mmove); jQuery(document).bind("mouseup", mup); if(!IsMobileVs){ jQuery("#KFCenterScreen").css("cursor", "move"); } function mmove(event) { if (_move) { var x = event.pageX - _x; var y = event.pageY - _y; if(x>getWindowWidth()-10) x=getWindowWidth()-10 if(y>getWindowHeight()-10) y=getWindowHeight()-10 if(!IsMobileVs){ jQuery("#KFCenterScreen").css({ top: y, left: x }); } showDiv(x, y); } } function mup() { _move = false; } function downIndex(event) { _move = true; _x = event.pageX - parseInt(jQuery("#KFCenterScreen").css("left")); _y = event.pageY - parseInt(jQuery("#KFCenterScreen").css("top")); } function showDiv(x, y) { setCookie("KfCenterBoxLeft_626733", x, 365); setCookie("KfCenterBoxTop_626733", y, 365); } } jQuery(document).ready(function () { var IsMobileVs=false; try { if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) { IsMobileVs=true; } } catch (e) { } if (jQuery("#KFCenterScreen")==null||jQuery("#KFCenterScreen").length < 1) { if(typeof getCookie("KfCenterBox_626733") != "undefined"){ return; } var abc = ""; if(!IsMobileVs ||!IsLimtSite('chat.hbzhan.com',LimtSiteSiteName_CenterBox)){ abc += "
"; abc += "
"; abc += "

欢迎您!来自加利福尼亚旧金山的朋友!有什么可以帮助您的吗?

"; abc += "
"; abc += "
"; } else { abc+="
"; abc += "
"; abc += ""; abc += "
在线客服
"; abc += "
"; abc += "
"; abc += "

欢迎访问,有什么可以帮助您的吗?

"; abc += "

"; abc += "

点击咨询

"; abc += "
"; abc += "
"; abc += "
"; } var topMargin = 0; var leftMargin = 0; //gkzhan样式微调 靠右显示 'chat.hbzhan.com'=='chat.gkzhan.com'&& if( 'chat.hbzhan.com'=='chat.gkzhan.com'){ topMargin=getWindowHeight() / 2 -186; leftMargin = getWindowWidth() / 2 +306; } else if(IsLimtSite('chat.hbzhan.com',LimtSiteSiteName_CenterBox)){ topMargin=getWindowHeight() / 2 - 170 / 2; leftMargin = getWindowWidth() / 2 - 400 / 2; } else { topMargin=getWindowHeight() / 2 - 140 / 2; leftMargin= getWindowWidth() / 2 - 359 / 2; } jQuery("body").prepend(abc); if (jQuery("#KFCenterScreen") != null) { jQuery("#KFCenterScreen .accept").click(function(){ var strUrlReferrer=""; var u = navigator.userAgent; if(/swan\//.test(window.navigator.userAgent)||/^webswan-/.test(window.name)){ strUrlReferrer+="?bdminiprogram=1"; } var chatUrl="https://web.archive.org/web/20230716161326/https://chat.hbzhan.com/Chat/ChatIndex/637554?Weburl="+strUrlReferrer; if(!!u.match(/AppleWebKit.*Mobile.*/)){ chatUrl="https://web.archive.org/web/20230716161326/https://chat.hbzhan.com/Chat/MobileChatIndex/637554?Weburl="+strUrlReferrer; } OpenChatBox(chatUrl); return false; }); jQuery("#KFCenterScreen .next").click(function(){ CloseKFCenter(); return false; }); ResetDivpostion(); if(typeof getCookie("KfCenterBoxLeft_626733") != "undefined" && !IsMobileVs) { var leftpx=getCookie("KfCenterBoxLeft_626733"); jQuery("#KFCenterScreen").css("left", leftpx + "px"); } else if(!IsMobileVs) { jQuery("#KFCenterScreen").css("left", leftMargin + "px"); } if (!( /msie/.test(navigator.userAgent.toLowerCase())) || ( /msie/.test(navigator.userAgent.toLowerCase())) && ('undefined' == typeof(document.body.style.maxHeight)) ){ if(typeof getCookie("KfCenterBoxTop_626733") != "undefined" && !IsMobileVs) { var toppx=getCookie("KfCenterBoxTop_626733"); jQuery("#KFCenterScreen").css("top", toppx + "px"); if(IsLimtSite('chat.hbzhan.com',LimtSiteSiteName_CenterBox)){ jQuery("#KFCenterScreen").animate({ height: '170px' }, 1000); } else { jQuery("#KFCenterScreen").animate({ height: '140px' }, 1000); } } else if(!IsMobileVs){ jQuery("#KFCenterScreen").css("top", topMargin + "px"); if(IsLimtSite('chat.hbzhan.com',LimtSiteSiteName_CenterBox)){ jQuery("#KFCenterScreen").animate({ height: '170px' }, 1000); } else { jQuery("#KFCenterScreen").animate({ height: '140px' }, 1000); } } } jQuery("#KFCenterScreen").show(); jQuery(window).resize(function(){ DelCookies("KfCenterBoxLeft_626733"); DelCookies("KfCenterBoxTop_626733"); if( 'chat.hbzhan.com'=='chat.gkzhan.com'){ topMargin=getWindowHeight() / 2 -186; leftMargin = getWindowWidth() / 2 +306; } else if(IsLimtSite('chat.hbzhan.com',LimtSiteSiteName_CenterBox)){ leftMargin = getWindowWidth() / 2 - 400 / 2; } else { leftMargin = getWindowWidth() / 2 - 359 / 2; } if(!IsMobileVs){ jQuery("#KFCenterScreen").css("left", leftMargin + "px"); } if (!(jQuery.browser.msie) || (jQuery.browser.msie) && (jQuery.browser.version != "6.0")){ if(IsLimtSite('chat.hbzhan.com',LimtSiteSiteName_CenterBox)){ topMargin = getWindowHeight() / 2 - 170 / 2; } else { topMargin = getWindowHeight() / 2 - 140 / 2; } if(!IsMobileVs){ jQuery("#KFCenterScreen").css("top", topMargin + "px"); } } }); } } }); function IsLimtSite(BeSiteName,SiteName){ return true; for(var i=0;i