Merge branch '1.0' of http://49.4.92.112:3000/root/ZHXY into 1.0
Former-commit-id: e1c3443a30c1372cf553392d05a65107f67b3b32TangShanKaiPing
commit
119ccc4057
@ -0,0 +1,41 @@
|
|||||||
|
<!DOCTYPE HTML>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<meta HTTP-EQUIV="pragma" CONTENT="no-cache">
|
||||||
|
<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>
|
||||||
|
<body class="Center-Container">
|
||||||
|
<img src="loading.svg?v=202004211141" class="Absolute-Center" />
|
||||||
|
</body>
|
||||||
|
<script>
|
||||||
|
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>
|
After Width: | Height: | Size: 1.7 KiB |
@ -0,0 +1,29 @@
|
|||||||
|
/**
|
||||||
|
* [通过参数名获取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