mirror of
https://github.com/ossrs/srs.git
synced 2025-02-24 15:04:20 +00:00
54 lines
1.8 KiB
HTML
54 lines
1.8 KiB
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta property="qc:admins" content="35453715257630661457637577164165323" />
|
|
<title>DailyReport</title>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=27171919" charset="UTF-8"></script>
|
|
<script type="text/javascript" src="js/jquery.js"></script>
|
|
<script type="text/javascript">
|
|
function parse_query_string(){
|
|
var query_string = String(window.location.hash).split("#")[1];
|
|
if(query_string == undefined){
|
|
return {};
|
|
}
|
|
|
|
var queries = query_string.split("&");
|
|
var obj = {};
|
|
$(queries).each(function(){
|
|
var query = this.split("=");
|
|
obj[query[0]] = query[1];
|
|
});
|
|
|
|
return obj;
|
|
}
|
|
|
|
function jump(){
|
|
// discovery the query string.
|
|
var obj = parse_query_string();
|
|
//console.log(obj);
|
|
|
|
// for IE, cannot pase the char ":", we use ".." to substitued.
|
|
var host = obj.state;
|
|
|
|
if(!host){
|
|
alert("invalid state to parsed to host");
|
|
return;
|
|
}
|
|
|
|
// generate the redirect url.
|
|
var url = "";
|
|
if (host == "check") {
|
|
url = "http://182.92.80.26:8085/srs/releases/index.html" + window.location.hash;
|
|
} else {
|
|
url = "http://182.92.80.26:1949/ui/auth.html" + window.location.hash;
|
|
}
|
|
//console.log(url);
|
|
//document.write(url);
|
|
|
|
window.location.href = url;
|
|
}
|
|
jump();
|
|
</script>
|
|
</body>
|