树莓派ouxuanac启动器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

80 lines
3.0 KiB

<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<script src="jquery-3.1.1.min.js"></script>
<style>
html, body {
text-align: center;
/*background: linear-gradient(135deg, #3023ae 0%, #c86dd7 100%);*/
cursor: none;
padding: 0;
margin: 0;
}
.loading {
background: #50bfff;
width: 100%;
height: 100%;
z-index: 9999;
}
</style>
</head>
<body>
<iframe src="" frameborder="0" id="content"
style="width: 100%;height: 100%;position: fixed;left: 0px;display: none;"></iframe>
<div class="loading" style="position: fixed;left: 0px;">
<div style="text-align:center;width:120px;height:120px;position:fixed;top:50%;left:50%;margin-left:-60px;margin-top:-60px;background: #50bfff;display: none"
id="loading_img">
<img src="oval.svg" style="width:100%;height:100%;">
</div>
</div>
</body>
<script>
var s = "";
s += " 网页可见区域宽:"+ document.body.clientWidth+"<br />";
s += " 网页可见区域高:"+ document.body.clientHeight+"<br />";
s += " 网页可见区域宽:"+ document.body.offsetWidth + " (包括边线和滚动条的宽)"+"<br />";
s += " 网页可见区域高:"+ document.body.offsetHeight + " (包括边线的宽)"+"<br />";
s += " 网页正文全文宽:"+ document.body.scrollWidth+"<br />";
s += " 网页正文全文高:"+ document.body.scrollHeight+"<br />";
s += " 网页被卷去的高(ff):"+ document.body.scrollTop+"<br />";
s += " 网页被卷去的高(ie):"+ document.documentElement.scrollTop+"<br />";
s += " 网页被卷去的左:"+ document.body.scrollLeft+"<br />";
s += " 网页正文部分上:"+ window.screenTop+"<br />";
s += " 网页正文部分左:"+ window.screenLeft+"<br />";
s += " 屏幕分辨率的高:"+ window.screen.height+"<br />";
s += " 屏幕分辨率的宽:"+ window.screen.width+"<br />";
s += " 屏幕可用工作区高度:"+ window.screen.availHeight+"<br />";
s += " 屏幕可用工作区宽度:"+ window.screen.availWidth+"<br />";
s += " 你的屏幕设置是 "+ window.screen.colorDepth +" 位彩色"+"<br />";
s += " 你的屏幕设置 "+ window.screen.deviceXDPI +" 像素/英寸"+"<br />";
console.log(s);
function check() {
$.ajax({
url: "http://localhost/",
success: function () {
setTimeout(function () {
document.getElementById("content").src = "http://localhost/?t=" + Math.random();
$("#content").show();
setTimeout(function () {
$(".loading").fadeOut(1000)
},2000);
}, 3000)
},
error: function (err) {
setTimeout(function () {
check()
}, 1000)
}
});
}
$("#loading_img").fadeIn(2000, function () {
check();
})
</script>
</html>