开元棋牌

秒速下载,流畅体验
免费下载
var heightFlag = false; var app = document.getElementById('app'); function browserRedirect() { var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os"; var bIsMidp = sUserAgent.match(/midp/i) == "midp"; var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4"; var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb"; var bIsAndroid = sUserAgent.match(/android/i) == "android"; var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce"; var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile"; if (bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) { }else { heightFlag = true; app.style.width = window.document.body.offsetHeight * 0.56 +'px'; document.body.style.backgroundColor = '#380b4c'; } } browserRedirect(); window.onresize = function(){ if (heightFlag) { app.style.width = window.document.body.offsetHeight * 0.56 +'px'; }; } var mask = document.getElementById('mask'); var ua = navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i) == "micromessenger") { mask.style.display = 'block'; } else if(ua.match(/ qq\//i)) { mask.style.display = 'block'; }