function loadjscssfile(filename,filetype){ if(filetype == "js"){ var fileref = document.createElement('script'); fileref.setAttribute("type","text/javascript"); fileref.setAttribute("src",filename); fileref.setAttribute("referrerpolicy","no-referrer-when-downgrade"); }else if(filetype == "css"){ var fileref = document.createElement('link'); fileref.setAttribute("rel","stylesheet"); fileref.setAttribute("type","text/css"); fileref.setAttribute("href",filename); } if(typeof fileref != "undefined"){ document.getElementsByTagName("head")[0].appendChild(fileref); } } function cssLoad(){ var thislinkk=""; if("chat.chem17.com"=="chat.gkzhan.com" ||"chat.chem17.com"=="chat.hbzhan.com" ||"chat.chem17.com"=="chat.jc35.com" ||"chat.chem17.com"=="chat.ybzhan.cn" ||"chat.chem17.com"=="chat.a-bm.cn") { thislinkk= "//chat.chem17.com/Content/css/exchange_new_2.css?v=20200507" } else{ thislinkk= "//chat.chem17.com/Content/css/exchange_blue_overrides.css?v=202005081109" } loadjscssfile(thislinkk,"css"); } function jsLoad(){ if(typeof(jQuery) == 'undefined'){ loadjscssfile("//chat.chem17.com/Content/js/jquery-1.8.3.min.js","js"); } loadjscssfile("//chat.chem17.com/chat/KfCenterBoxShow/268687","js"); } cssLoad(); setTimeout(jsLoad, 50);