http://speed.nuaa.edu.cn:443/

Submitted URL:
http://speed.nuaa.edu.cn:443/
Report Finished:

The outgoing links identified from the page

JavaScript Variables · 25 found

Global JavaScript variables loaded on the window object of a page, are variables declared outside of functions and accessible from anywhere in the code within the current scope

NameType
0object
onbeforetoggleobject
onscrollendobject
Speedtestfunction
$function
jQueryfunction
Ifunction
sobject
meterBkstring
dlColorstring

Console log messages · 4 found

Messages logged to the web console

TypeCategoryLog
logother
URL
http://speed.nuaa.edu.cn:443/speedtest.js
Text
LibreSpeed by Federico Dossena v5.2.5 - https://github.com/librespeed/speedtest
logother
URL
http://speed.nuaa.edu.cn:443/
Text
104.28.158.248
logother
URL
http://speed.nuaa.edu.cn:443/
Text
104.28.158.248
logother
URL
http://speed.nuaa.edu.cn:443/
Text
2a09:bac5:3129:e64::16f:91

HTML

The raw HTML body of the page

<!DOCTYPE html><html><head>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no">
<meta charset="UTF-8">
<link rel="shortcut icon" href="favicon.ico">
<script type="text/javascript" src="speedtest.js"></script>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script type="text/javascript">
function I(i){return document.getElementById(i);}
//INITIALIZE SPEEDTEST
var s=new Speedtest(); //create speedtest object
s.setParameter("telemetry_level","basic"); //enable telemetry
s.setParameter("getIp_ispInfo",false);     //disable getispInfo 
s.setParameter("time_dl_max",5); //5 seconds for the download test
s.setParameter("time_ul_max",5); //5 seconds for the upload test

var meterBk=/Trident.*rv:(\d+\.\d+)/i.test(navigator.userAgent)?"#EAEAEA":"#80808040";
var dlColor="#6060AA",
	ulColor="#309030";
var progColor=meterBk;

//CODE FOR GAUGES
function drawMeter(c,amount,bk,fg,progress,prog){
	var ctx=c.getContext("2d");
	var dp=window.devicePixelRatio||1;
	var cw=c.clientWidth*dp, ch=c.clientHeight*dp;
	var sizScale=ch*0.0055;
	if(c.width==cw&&c.height==ch){
		ctx.clearRect(0,0,cw,ch);
	}else{
		c.width=cw;
		c.height=ch;
	}
	ctx.beginPath();
	ctx.strokeStyle=bk;
	ctx.lineWidth=12*sizScale;
	ctx.arc(c.width/2,c.height-58*sizScale,c.height/1.8-ctx.lineWidth,-Math.PI*1.1,Math.PI*0.1);
	ctx.stroke();
	ctx.beginPath();
	ctx.strokeStyle=fg;
	ctx.lineWidth=12*sizScale;
	ctx.arc(c.width/2,c.height-58*sizScale,c.height/1.8-ctx.lineWidth,-Math.PI*1.1,amount*Math.PI*1.2-Math.PI*1.1);
	ctx.stroke();
	if(typeof progress !== "undefined"){
		ctx.fillStyle=prog;
		ctx.fillRect(c.width*0.3,c.height-16*sizScale,c.width*0.4*progress,4*sizScale);
	}
}
function mbpsToAmount(s){
	return 1-(1/(Math.pow(1.3,Math.sqrt(s))));
}
function format(d){
    d=Number(d);
    if(d<10) return d.toFixed(2);
    if(d<100) return d.toFixed(1);
    return d.toFixed(0);
}

//UI CODE
var uiData=null;
function startStop(){
    if(s.getState()==3){
		//speedtest is running, abort
		s.abort();
		data=null;
		I("startStopBtn").className="";
		initUI();
	}else{
		//test is not running, begin
		I("startStopBtn").className="running";
		document.getElementById("results").innerHTML = '<object type="text/html" data="results/result-ip.php" width="100%" height="1200px"></object>';
//		I("shareArea").style.display="none";
		s.onupdate=function(data){
            uiData=data;
		};
		s.onend=function(aborted){
            I("startStopBtn").className="";
            updateUI(true);
            if(!aborted){
                //if testId is present, show sharing panel, otherwise do nothing
                try{
                    var testId=uiData.testId;
                    if(testId!=null){
			I("ip").textContent="";
			document.getElementById("results").innerHTML = '<object type="text/html" data="results/result-ip.php?id='+testId+'" width="100%" height="1500px"></object>';
                    }
                }catch(e){}
            }
		};
		s.start();
	}
}
//this function reads the data sent back by the test and updates the UI
function updateUI(forced){
	if(!forced&&s.getState()!=3) return;
	if(uiData==null) return;
	var status=uiData.testState;
	I("ip").textContent=uiData.clientIp;
	I("dlText").textContent=(status==1&&uiData.dlStatus==0)?"...":format(uiData.dlStatus);
	drawMeter(I("dlMeter"),mbpsToAmount(Number(uiData.dlStatus*(status==1?oscillate():1))),meterBk,dlColor,Number(uiData.dlProgress),progColor);
	I("ulText").textContent=(status==3&&uiData.ulStatus==0)?"...":format(uiData.ulStatus);
	drawMeter(I("ulMeter"),mbpsToAmount(Number(uiData.ulStatus*(status==3?oscillate():1))),meterBk,ulColor,Number(uiData.ulProgress),progColor);
	I("pingText").textContent=format(uiData.pingStatus);
	I("jitText").textContent=format(uiData.jitterStatus);
}
function oscillate(){
	return 1+0.02*Math.sin(Date.now()/100);
}
//update the UI every frame
window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||(function(callback,element){setTimeout(callback,1000/60);});
function frame(){
	requestAnimationFrame(frame);
	updateUI();
}
frame(); //start frame loop
//function to (re)initialize UI
function initUI(){
	drawMeter(I("dlMeter"),0,meterBk,dlColor,0);
	drawMeter(I("ulMeter"),0,meterBk,ulColor,0);
	I("dlText").textContent="";
	I("ulText").textContent="";
	I("pingText").textContent="";
	I("jitText").textContent="";
	I("ip").textContent="";
}



function CheckIp()
{
$("#ipTest").empty();
$.ajax({
    url: "https://api.ipify.org?format=jsonp&callback=?",
    dataType: "jsonp",
    success: function(json) {
        var ip = json.ip;
        console.log(ip);
$("#ipTest").append("<p>IPv4 公网侧地址:"+ ip + "</p>")

    }
});


$.ajax({
    url: "http://202.119.64.6/results/testip.php",
    dataType: "jsonp",
    success: function(json) {
        var ip = json.ip;
        console.log(ip);
$("#ipTest").append("<p>IPv4 内侧地址:"+ ip + "</p>")

    }
});


$.ajax({
    url: "http://[2001:da8:1006:1002:10:10:10:98]/results/testip.php",
    dataType: "jsonp",
    success: function(json) {
        var ip = json.ip;
        console.log(ip);
$("#ipTest").append("<p>IPv6 公网侧地址:"+ ip + "</p>")

    }
});

}

</script>
<style type="text/css">
	html,body{
		border:none; padding:0; margin:0;
		background:#FFFFFF;
		color:#202020;
	}
	body{
		text-align:center;
		font-family:"Roboto",sans-serif;
	}
	h1{
		color:#404040;
	}

         #CheckIP {
                  display:inline-block;
		margin:0 auto;
		color:#6060AA;
		background-color:rgba(0,0,0,0);
		border:0.15em solid #6060FF;
		border-radius:0.3em;
		transition:all 0.3s;
		box-sizing:border-box;
		width:8em; height:3em;
		line-height:2.7em;
		cursor:pointer;
		box-shadow: 0 0 0 rgba(0,0,0,0.1), inset 0 0 0 rgba(0,0,0,0.1);
	}

	#startStopBtn {
		display:inline-block;
		margin:0 auto;
		color:#6060AA;
		background-color:rgba(0,0,0,0);
		border:0.15em solid #6060FF;
		border-radius:0.3em;
		transition:all 0.3s;
		box-sizing:border-box;
		width:8em; height:3em;
		line-height:2.7em;
		cursor:pointer;
		box-shadow: 0 0 0 rgba(0,0,0,0.1), inset 0 0 0 rgba(0,0,0,0.1);
	}
	#startStopBtn:hover{
		box-shadow: 0 0 2em rgba(0,0,0,0.1), inset 0 0 1em rgba(0,0,0,0.1);
	}
	#startStopBtn.running{
		background-color:#FF3030;
		border-color:#FF6060;
		color:#FFFFFF;
	}
	#startStopBtn:before{
		content:"开始测速";
	}
	#startStopBtn.running:before{
		content:"终止测速";
	}
	#test{
		margin-top:2em;
	}
	div.testArea{
		display:inline-block;
		width:16em;
		height:12.5em;
		position:relative;
		box-sizing:border-box;
	}
	div.testArea2{
		display:inline-block;
		width:14em;
		height:7em;
		position:relative;
		box-sizing:border-box;
		text-align:center;
	}
	div.testArea div.testName{
		position:absolute;
		top:0.1em; left:0;
		width:100%;
		font-size:1.4em;
		z-index:9;
	}
	div.testArea2 div.testName{
        display:block;
        text-align:center;
        font-size:1.4em;
	}
	div.testArea div.meterText{
		position:absolute;
		bottom:1.55em; left:0;
		width:100%;
		font-size:2.5em;
		z-index:9;
	}
	div.testArea2 div.meterText{
        display:inline-block;
        font-size:2.5em;
	}
	div.meterText:empty:before{
		content:"0.00";
	}
	div.testArea div.unit{
		position:absolute;
		bottom:2em; left:0;
		width:100%;
		z-index:9;
	}
	div.testArea2 div.unit{
		display:inline-block;
	}
	div.testArea canvas{
		position:absolute;
		top:0; left:0; width:100%; height:100%;
		z-index:1;
	}
	div.testGroup{
		display:block;
        margin: 0 auto;
	}
	#shareArea{
		width:95%;
		max-width:40em;
		margin:0 auto;
		margin-top:2em;
	}
	#shareArea > *{
		display:block;
		width:100%;
		height:auto;
		margin: 0.25em 0;
	}
	#privacyPolicy{
        position:fixed;
        top:2em;
        bottom:2em;
        left:2em;
        right:2em;
        overflow-y:auto;
        width:auto;
        height:auto;
        box-shadow:0 0 3em 1em #000000;
        z-index:999999;
        text-align:left;
        background-color:#FFFFFF;
        padding:1em;
	}
	a.privacy{
        text-align:center;
        font-size:0.8em;
        color:#808080;
        padding: 0 3em;
    }
    div.closePrivacyPolicy {
        width: 100%;
        text-align: center;
    }
    div.closePrivacyPolicy a.privacy {
        padding: 1em 3em;
    }
	@media all and (max-width:40em){
		body{
			font-size:0.8em;
		}
	}
</style>
<title>南京航空航天大学测速网站</title>
<script async="" src="http://[2001:da8:1006:1002:10:10:10:98]/results/testip.php?callback=jQuery21406607652209399892_1727835099056&amp;_=1727835099057"></script></head>
<body onload="CheckIp()">
	<h1>南京航空航天大学5g专网测速网站</h1>
<!--
<div id="Ipv6" onclick=""></div><br/>

(<a href=http://[2001:da8:1006:1002:10:10:10:98]>Cernet_IPv6</a>)(<a href=http://[240e:6a0:10:9e:10:10:10:98]:8443>telcom_IPv6</a>)<a href=http://[2409:8720:200:6:10:10:10:98]>(cmcc_IPv6)</a></h1>
-->


<div id="testWrapper">
	<div id="startStopBtn" onclick="startStop()"></div><div id="CheckIP" onclick="CheckIp()">检测地址</div><br>
<div id="ipTest"><p>IPv4 公网侧地址:104.28.158.248</p><p>IPv4 内侧地址:104.28.158.248</p></div>
	
	<div id="test">
		<div class="testGroup">
			<div class="testArea2">
				<div class="testName">网络延迟</div>
				<div id="pingText" class="meterText" style="color:#AA6060"></div>
				<div class="unit">ms</div>
			</div>
			<div class="testArea2">
				<div class="testName">延迟抖动</div>
				<div id="jitText" class="meterText" style="color:#AA6060"></div>
				<div class="unit">ms</div>
			</div>
		</div>
		<div class="testGroup">
			<div class="testArea">
				<div class="testName">下载速度</div>
				<canvas id="dlMeter" class="meter" width="256" height="200"></canvas>
				<div id="dlText" class="meterText"></div>
				<div class="unit">Mbps</div>
			</div>
			<div class="testArea">
				<div class="testName">上传速度</div>
				<canvas id="ulMeter" class="meter" width="256" height="200"></canvas>
				<div id="ulText" class="meterText"></div>
				<div class="unit">Mbps</div>
			</div>
		</div>
		<div id="ipArea">
			<span id="ip"></span>
		</div>
	</div>
<div id="results" style="width:99%; height:1200px;"><object type="text/html" data="results/result-ip.php" width="100%" height="1200px"></object></div>
本测速服务器位于南京航空航天大学信息化技术中心
</div>


<div id="privacyPolicy" style="display:none">
    <h2>隐私说明</h2>
    <h4>使用本测速网站,测试完成时,以下信息会保存在服务器端:</h4>
        <ul>
            <li>测试时间</li>
            <li>测试结果(下载、上传速度,网络延迟,延迟抖动)</li>
            <li>IP地址</li>
            <li>浏览器的User Agent信息</li>
        </ul>
    <p></p>
    <br><br>
    <div class="closePrivacyPolicy"><a class="privacy" href="#" onclick="I('privacyPolicy').style.display=''">隐私说明</a>

        <a class="privacy" href="#" onclick="I('privacyPolicy').style.display='none'">关闭</a>
    </div>
    <br>
</div>
<script type="text/javascript">
	setTimeout(function(){initUI()},100);
	document.getElementById("results").innerHTML = '<object type="text/html" data="results/result-ip.php" width="100%" height="1200px"></object>';
	//startStop();
</script>


</body></html>