| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- <!doctype html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>锁屏休息</title>
- <link href="__PUBLIC__/Admin/images/favicon.ico" type="image/x-icon" rel="shortcut icon">
- <script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.min.js"></script>
- <script type="text/javascript" src="__PUBLIC__/layer/layer.js"></script>
- <link href="__PUBLIC__/Admin/css/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
- <style>
- a{
- font-size: 12px;
- color: white;
- }
- a:hover{
- color: white!important;
- }
- .copy{
- font-size: 12px;
- color: white;
- }
- /*lock screen*/
- .lock-screen {
- background:#02bac6 url("__PUBLIC__/Admin/img/lock-bg.jpg");
- background-size: cover;
- background-repeat: repeat;
- }
- .lock-wrapper {
- margin: 10% auto;
- max-width: 330px;
- }
- .lock-box {
- background: rgba(255,255,255,.3);
- padding: 20px;
- border-radius: 10px;
- -webkit-border-radius: 10px;
- position: relative;
- height: 200px;
- }
- .lock-wrapper img {
- position: absolute;
- left: 40%;
- top: -40px;
- border-radius: 50%;
- -webkit-border-radius: 50%;
- border: 5px solid #fff;
- }
- .lock-wrapper h1 {
- text-align: center;
- color: #fff;
- font-size: 18px;
- text-transform: uppercase;
- padding: 20px 0 0 0;
- }
- .lock-wrapper .locked {
- margin-bottom: 20px;
- display: inline-block;
- color: #026f7a;
- }
- .btn-lock,.btn-lock:hover {
- background: #02b5c2;
- color: #fff;
- }
- .lock-input {
- width: 83%;
- border: none;
- float: left;
- margin-right: 3px;
- }
- #time {
- width: 100%;
- color: #fff;
- font-size: 60px;
- margin-bottom: 80px;
- display: inline-block;
- text-align: center;
- font-family: 'Open Sans', sans-serif;
- font-weight: 300;
- }
- </style>
- </head>
- <body class="lock-screen" onload="startTime()">
- <div class="lock-wrapper">
- <div id="time"></div>
- <div class="lock-box text-center">
- <img src="/Upload/coin/dsc.png" alt="lock avatar"/>
- <span class="locked">锁屏保护中...</span>
- <div class="form-group col-lg-12">
- <input type="password" placeholder="输入密码" id="unlock_pass" name="pass"
- class="form-control lock-input">
- <button class="btn btn-lock" type="button" onclick="unlocka();">
- <i class="glyphicon glyphicon-arrow-right"></i>
- </button>
- </div>
- </div>
- </div>
- <script>
- $(document).ready(
- function() {
- $("#unlock_pass").keydown(function(event) {
- if (event.keyCode == 13) {
- unlocka();
- }
- })
- }
- );
- function unlocka(){
- var pass = $('#unlock_pass').val();
- if(!pass){
- layer.tips('输入解锁密码或者登录密码', '#unlock_pass', {
- tips: [1, '#02b5c2']
- });
- return;
- }
- $.post("{:U('Login/unlock')}",{pass:pass},function(data){
- layer.msg(data.info);
- if(data.url){
- window.location.href = data.url;
- }
- },'json');
- }
- function startTime()
- {
- var today=new Date();
- var h=today.getHours();
- var m=today.getMinutes();
- var s=today.getSeconds();
- // add a zero in front of numbers<10
- m=checkTime(m);
- s=checkTime(s);
- document.getElementById('time').innerHTML=h+":"+m+":"+s;
- t=setTimeout(function(){startTime()},500);
- }
- function checkTime(i)
- {
- if (i<10)
- {
- i="0" + i;
- }
- return i;
- }
- </script>
- </body>
- </html>
|