refactor: 移除js脚本设置样式代码
This commit is contained in:
parent
8868b8384c
commit
d3b51bef2f
|
@ -1,7 +1,7 @@
|
||||||
@model LockModel
|
@model LockModel
|
||||||
@{
|
@{
|
||||||
ViewBag.Title = "系统登陆";
|
ViewBag.Title = "系统登陆";
|
||||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
Layout = "_Layout";
|
||||||
}
|
}
|
||||||
@section css {
|
@section css {
|
||||||
<environment include="Development">
|
<environment include="Development">
|
||||||
|
@ -12,25 +12,16 @@
|
||||||
<link href="~/lib/twitter-bootstrap/css/bootstrap.min.css" rel="stylesheet" />
|
<link href="~/lib/twitter-bootstrap/css/bootstrap.min.css" rel="stylesheet" />
|
||||||
<link href="~/lib/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
|
<link href="~/lib/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
|
||||||
</environment>
|
</environment>
|
||||||
<link href="~/lib/captcha/slidercaptcha.css" rel="stylesheet" />
|
|
||||||
<link href="~/css/lock.css" rel="stylesheet" />
|
<link href="~/css/lock.css" rel="stylesheet" />
|
||||||
}
|
}
|
||||||
@section javascript {
|
@section javascript {
|
||||||
<environment include="Development">
|
<environment include="Development">
|
||||||
<script src="~/lib/twitter-bootstrap/js/bootstrap.bundle.js"></script>
|
<script src="~/lib/twitter-bootstrap/js/bootstrap.bundle.js"></script>
|
||||||
<script src="~/lib/validate/jquery.validate.js"></script>
|
|
||||||
<script src="~/lib/validate/localization/messages_zh.js"></script>
|
|
||||||
<script src="~/lib/sweetalert/sweetalert2.js" rel="stylesheet"></script>
|
|
||||||
</environment>
|
</environment>
|
||||||
<environment exclude="Development">
|
<environment exclude="Development">
|
||||||
<script src="~/lib/twitter-bootstrap/js/bootstrap.bundle.min.js"></script>
|
<script src="~/lib/twitter-bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||||
<script src="~/lib/validate/jquery.validate.min.js"></script>
|
|
||||||
<script src="~/lib/validate/localization/messages_zh.min.js"></script>
|
|
||||||
<script src="~/lib/sweetalert/sweetalert2.min.js" rel="stylesheet"></script>
|
|
||||||
</environment>
|
</environment>
|
||||||
<script src="~/lib/captcha/longbow.slidercaptcha.js"></script>
|
|
||||||
<script src="~/lib/longbow/longbow.common.js"></script>
|
<script src="~/lib/longbow/longbow.common.js"></script>
|
||||||
<script src="~/lib/longbow/longbow.validate.js"></script>
|
|
||||||
<script src="~/js/lock.js"></script>
|
<script src="~/js/lock.js"></script>
|
||||||
}
|
}
|
||||||
<div class="lock-wrapper">
|
<div class="lock-wrapper">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.lock-screen {
|
body {
|
||||||
background: #02bac6 url("../images/lock-bg.jpg");
|
background: #02bac6 url("../images/lock-bg.jpg");
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-repeat: repeat;
|
background-repeat: repeat;
|
||||||
|
|
|
@ -1,12 +1,9 @@
|
||||||
$(function () {
|
$(function () {
|
||||||
$('body').addClass('lock-screen');
|
|
||||||
$('#time').text((new Date()).format('HH:mm:ss'));
|
$('#time').text((new Date()).format('HH:mm:ss'));
|
||||||
|
|
||||||
setInterval(function () {
|
setInterval(function () {
|
||||||
$('#time').text((new Date()).format('HH:mm:ss'));
|
$('#time').text((new Date()).format('HH:mm:ss'));
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|
||||||
$.extend($.validator.messages, { required: "请输入密码" });
|
|
||||||
|
|
||||||
$(".lock-wrapper").autoCenter();
|
$(".lock-wrapper").autoCenter();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue