parent
7a588919b0
commit
54708e5680
@ -1,41 +1,12 @@
|
|||||||
<!DOCTYPE HTML>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta HTTP-EQUIV="pragma" CONTENT="no-cache">
|
<title></title>
|
||||||
<meta HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate">
|
|
||||||
<meta HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 01:01:01 GMT">
|
|
||||||
<meta HTTP-EQUIV="expires" CONTENT="0">
|
|
||||||
<title>载入中...</title>
|
|
||||||
<style>
|
|
||||||
html{
|
|
||||||
height:100%;
|
|
||||||
}
|
|
||||||
body{
|
|
||||||
height:100%;
|
|
||||||
}
|
|
||||||
.Center-Container {
|
|
||||||
background-color: #07c160;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Absolute-Center {
|
|
||||||
width: 20%;
|
|
||||||
height: 50%;
|
|
||||||
overflow: auto;
|
|
||||||
margin: auto;
|
|
||||||
position: absolute;
|
|
||||||
top: 0; left: 0; bottom: 0; right: 0;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body class="Center-Container">
|
<body>
|
||||||
<img src="loading.svg?v=202004211141" class="Absolute-Center" />
|
<script>
|
||||||
|
window.location.href = '/IoTCenter/?v=' + Date.parse(new Date());
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
<script>
|
</html>
|
||||||
var secScript = document.createElement("script");
|
|
||||||
secScript.setAttribute("type", "text/javascript");
|
|
||||||
secScript.setAttribute("src", 'redirect.js?v=' + new Date().toLocaleTimeString());
|
|
||||||
document.body.insertBefore(secScript, document.body.lastChild);
|
|
||||||
</script>
|
|
||||||
</html>
|
|
||||||
|
Before Width: | Height: | Size: 1.7 KiB |
@ -1,29 +0,0 @@
|
|||||||
/**
|
|
||||||
* [通过参数名获取url中的参数值]
|
|
||||||
* 示例URL:http://iot.edusoa.com/IoTCenter/index.html?organ=测试学校
|
|
||||||
* @param {[string]} queryName [参数名]
|
|
||||||
* @return {[string]} [参数值]
|
|
||||||
*/
|
|
||||||
function GetQueryValue(queryName) {
|
|
||||||
var reg = new RegExp("(^|&)" + queryName + "=([^&]*)(&|$)", "i");
|
|
||||||
var r = window.location.search.substr(1).match(reg);
|
|
||||||
if ( r != null ){
|
|
||||||
return decodeURI(r[2]);
|
|
||||||
}else{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var url = '';
|
|
||||||
var school = GetQueryValue('organ').replace(/\'/g, '');
|
|
||||||
|
|
||||||
switch(school) {
|
|
||||||
case '东师理想':
|
|
||||||
url = 'http://iot.edusoa.com'
|
|
||||||
break;
|
|
||||||
case '唐山市税东中学':
|
|
||||||
url = 'http://tsssdzx.iot.edusoa.com'
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
url = 'http://iot.edusoa.com'
|
|
||||||
}
|
|
||||||
window.location.href = url;
|
|
Loading…
Reference in new issue