51 lines
1.5 KiB
Plaintext
51 lines
1.5 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="NGTools._default" %>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head runat="server">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>天然气工业计算工具集</title>
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
window.onload = function IsPC() {
|
|
var userAgentInfo = navigator.userAgent;
|
|
var Agents = ["Android", "iPhone",
|
|
"SymbianOS", "Windows Phone",
|
|
"iPad", "iPod"];
|
|
var flag = true;
|
|
for (var v = 0; v < Agents.length; v++) {
|
|
if (userAgentInfo.indexOf(Agents[v]) > 0) {
|
|
flag = false;
|
|
break;
|
|
}
|
|
}
|
|
if (flag) {
|
|
//window.location.href = "Mobilepages/frmLoginMobile.aspx";
|
|
//window.location.href = "muiPages/frmLogin.aspx";
|
|
// window.location.href = "Scripts/MUI/index.html";
|
|
|
|
window.location.href = "pages/frmLoginPC.aspx";
|
|
} else {
|
|
window.location.href = "Mobilepages/frmLoginMobile.aspx";
|
|
//window.location.href = "muiPages/frmLogin.aspx";
|
|
//window.location.href = "Scripts/MUI/index.html";
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
</head>
|
|
<body style="position: center; vertical-align: bottom; background-color: #33CCFF;">
|
|
|
|
|
|
</body>
|
|
</html>
|