mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add srs community
This commit is contained in:
parent
0eb9e0af5b
commit
cf7b6f25f6
10 changed files with 9846 additions and 0 deletions
|
@ -0,0 +1,54 @@
|
|||
<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>
|
Loading…
Add table
Add a link
Reference in a new issue