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.
iot/projects/UserCenter/Views/Account/JsonpLogout.cshtml

44 lines
1.3 KiB

@model List<string>
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport" />
<link rel="stylesheet" href="~/lib/bootstrap/css/bootstrap.min.css" />
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="jumbotron text-center">
<p>@ViewBag.Message</p>
<p><a id="redirect" href="@ViewBag.Url"><span class="badge" id="counter"></span> 正在为您跳转,如果您的浏览器没有响应,请手动点击此链接。</a></p>
</div>
</div>
</div>
@foreach (var item in Model)
{
<script src="@item"></script>
}
<script src="~/lib/jquery/jquery.min.js"></script>
<script>
var timer;
function StartTimer(sec) {
if (sec > 0) {
$('#counter').addClass('wait').text(sec);
timer = setTimeout('StartTimer("' + (sec - 1) + '")', 1000);
}
else {
EndTimer();
window.location = $('#redirect').attr('href');
}
}
function EndTimer() {
clearTimeout(timer);
}
StartTimer(0);
</script>
</body>
</html>