(function(){ var protocol = 'https://'; var hostname = 'www.ttcdw.cn/p/study/u'; var uCenterServer = 'https://www.ttcdw.cn/p/uc'; rootTmpl = '
个人学习中心管理工作台帮助中心
'; document.write(rootTmpl); var loginUserTmpl = '你好' + '退出'; var loginEls = document.getElementById("logins"); if(loginEls){ loginEls.href = "https://www.ttcdw.cn/p/uc/login?service="+window.location.href; }; var loginEl = document.getElementById("loginLink"); if(loginEl){ loginEl.href = "https://www.ttcdw.cn/p/uc/login?service="+encodeURIComponent(window.location.href)+"&orgId=410663534188040192"; } var registerEl = document.getElementById("register"); if(registerEl){ registerEl.href = "https://www.ttcdw.cn/p/uc/register?service="+encodeURIComponent(window.location.href)+"&orgId=410663534188040192"; }; if(false){ var userWrapper = document.getElementById("g-header-userinfo"); userWrapper.innerHTML = loginUserTmpl; var usernameText = document.getElementById('g-header-username'); usernameText.innerText = ''; var logoutEl = document.getElementById("logoutLink"); var href = ""; var xhr = ""; var logoutUrl = ""; if(logoutEl){ href = "https://www.ttcdw.cn/p/uc/userLogout?service=" + encodeURIComponent(window.location.href) + "&orgId=410663534188040192"; logoutUrl = "https://www.ttcdw.cn/p/uc/passport/api/v1/logout"; logoutEl.onclick = function() { if(!$ || !$.ajax) { window.location.href = href; return } $.ajax({ url: logoutUrl, type: "GET", crossDomain: true, dataType: 'jsonp', complete: function (res) { window.location.href = href; } }); } }; } })(); var a = document.getElementById("paramsUn"); if(a){ var a1 =document.createElement('a'); var txt=document.createTextNode(""); a1.setAttribute("href", ""); a1.style.cssText = "color: #353535;font-size: 13px;margin-left: 26px"; a1.setAttribute("target","_blank"); a1.appendChild(txt); a.insertBefore(a1,a.childNodes[0]); var a2 =document.createElement('a'); var txta=document.createTextNode(""); a2.setAttribute("href", ""); a2.setAttribute("target","_blank"); a2.style.cssText = "color: #353535;font-size: 13px;margin-left: 26px"; a2.appendChild(txta); a.insertBefore(a2,a.childNodes[1]) }