ibms-dome/ibms_react/public/index.html
2023-01-31 23:15:50 +08:00

40 lines
1.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<!-- @noSnoop -->
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Web site created using create-react-app" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<title>Mitsubishi</title>
<script src="%PUBLIC_URL%/Require.js"></script>
<!-- <script type="text/javascript" src="http://220.132.206.5:8080/requirejs/config.js"></script>
<script
type="text/javascript"
src="http://220.132.206.5:8080/module/js/com/tridium/js/ext/require/require.min.js?"
></script> -->
<script>
//重新轉址 for Niagara4
var temp_cuurent_Url_pathname = window.location.pathname.split("/").slice(0, 3);
var redirectionUrl =
window.location.origin +
"/" +
temp_cuurent_Url_pathname[temp_cuurent_Url_pathname.length - 1].replace(":%5E", "/") +
"/" +
window.location.pathname.split("/").slice(3).join("/");
//判斷url是否包含"ord",如果有重新轉址
if (temp_cuurent_Url_pathname.findIndex((x) => x == "ord") > -1) {
window.location.replace(redirectionUrl.substr(0, redirectionUrl.length - 1));
}
</script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<div id="model_root"></div>
</body>
</html>