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.
45 lines
1.2 KiB
45 lines
1.2 KiB
<!DOCTYPE html>
|
|
<html lang="zh">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<script src="jquery-3.1.1.min.js"></script>
|
|
<style>
|
|
html {
|
|
text-align: center;
|
|
background: #50bfff;
|
|
/*background: linear-gradient(135deg, #3023ae 0%, #c86dd7 100%);*/
|
|
cursor: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<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>
|
|
</body>
|
|
<script>
|
|
function check() {
|
|
$.ajax({
|
|
url: "http://localhost",
|
|
success: function () {
|
|
setTimeout(function () {
|
|
$("#loading_img").fadeOut(2000, function () {
|
|
location.href = "http://localhost/"
|
|
})
|
|
}, 3000)
|
|
},
|
|
error: function (err) {
|
|
setTimeout(function () {
|
|
check()
|
|
}, 1000)
|
|
}
|
|
});
|
|
}
|
|
|
|
$("#loading_img").fadeIn(2000, function () {
|
|
|
|
check();
|
|
})
|
|
</script>
|
|
</html>
|