if(typeof(GAMES_WIDGETS) == 'undefined'){ var GAMES_WIDGETS = { _p : function(msg){ if(window.console) window.console.info(msg); }, newScript : function(src){ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = src; return ga; }, newCssLink : function(src){ var ga = document.createElement('link'); ga.type = 'text/css'; ga.rel = "stylesheet" ga.href = src; return ga; } }; } GAMES_WIDGETS.LoginBox = { containerId : 'WidgetLogin_Root', init : function(){ this.initResource(); this.initHTML(); this.initEvent(); } }; GAMES_WIDGETS.LoginBox.initResource = function(){ var LoginRoot = document.getElementById(this.containerId); }; GAMES_WIDGETS.LoginBox.init = function(loginCallback){ var html = ""; $("#" + this.containerId).append(html); document.domain = 'creaction-network.com'; GAMES_WIDGETS.LoginBox.loginCallback = loginCallback; }; GAMES_WIDGETS.LoginBox.hide = function(){ $('#GAMES_WIDGETS_loginbox').hide(); $('#fullbg').hide(); }; GAMES_WIDGETS.LoginBox.showLogin = function(){ if(!document.getElementById("login_reg_page")){ setTimeout(function(){GAMES_WIDGETS.LoginBox.showLogin();},200); }else{ var childrenElement = document.getElementById("login_reg_page").contentWindow; try{ if(typeof childrenElement.show_login == 'function'){ document.getElementById("login_reg_page").contentWindow.show_login(); $('#GAMES_WIDGETS_loginbox').show(); $('#fullbg').show(); }else{ setTimeout(function(){GAMES_WIDGETS.LoginBox.showLogin();},200); } }catch(e){ setTimeout(function(){GAMES_WIDGETS.LoginBox.showLogin();},200); } } }; GAMES_WIDGETS.LoginBox.showReg = function(){ if(!document.getElementById("login_reg_page")){ setTimeout(function(){GAMES_WIDGETS.LoginBox.showReg();},200); }else{ var childrenElement = document.getElementById("login_reg_page").contentWindow; try{ if(typeof childrenElement.show_reg == 'function'){ document.getElementById("login_reg_page").contentWindow.show_reg(); $('#GAMES_WIDGETS_loginbox').show(); $('#fullbg').show(); }else{ setTimeout(function(){GAMES_WIDGETS.LoginBox.showReg();},200); } }catch(e){ setTimeout(function(){GAMES_WIDGETS.LoginBox.showReg();},200); } } }; var fcoEnable = '1'; if(fcoEnable == '1'){ //捆绑GDPR插件 var script = document.createElement('script'),head = document.getElementsByTagName("head")[0]; script.type = 'text/javascript'; script.async = true; script.src = '//img.creaction-network.com/fc-common/production/v2.0.1.1/loader.min.js'; head.appendChild(script); var fcoGDPRConfig = { lang: 'ar' }; }