Files
zszq-trs/YLErpWeb/Views/Account/LogOut.cshtml
T
2024-05-09 14:06:26 +08:00

45 lines
1.3 KiB
Plaintext

@model LogOnModel
@{
Layout = null;
ViewBag.Title = "登出";
}
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<meta charset="utf-8" />
<title>@GlobalConfig.ProjectTitle</title>
</head>
<body style="height:100%;max-height:100%;overflow:hidden;box-sizing:border-box;">
<div id="mainCont">
<div style="width:500px;height:50px;border:1px dashed #bbb;padding:15px;margin:0 auto;box-sizing:border-box">
已经登出系统,为安全性考虑,浏览器窗口将在&nbsp;<a href="#" id="aSecond">5秒</a>&nbsp;后自动关闭!
</div>
</div>
<script>
var seconds = 5;
function onReady() {
document.body.style.paddingTop = document.body.clientHeight / 3 + 'px'
setInterval(function () {
seconds--;
if (seconds <= 0) {
window.open("about:blank", "_self").close();
} else {
document.getElementById('aSecond').innerText = seconds + "秒";
}
}, 1000);
}
(function ready(fn) {
if (document.readyState != 'loading') {
fn();
} else {
document.addEventListener('DOMContentLoaded', fn);
}
}(onReady));
</script>
</body>
</html>