<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>请验证登录</title>
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!--标准mui.css-->
<link rel="stylesheet" href="public/css/mui.min.css">
<!--App自定义的css-->
<link rel="stylesheet" type="text/css" href="public/css/app.css" />
<style>
html,
body {
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
overflow: hidden;
background-color: #efeff4;
}
#holder {
width: 300px;
height: 300px;
border: solid 1px #bbb;
border-radius: 5px;
margin: 50px auto;
background-color: #fff;
}
#alert {
text-align: center;
padding: 20px 10px;
}
</style>
</head>
<body>
<header class="mui-bar mui-bar-nav">
<h1 class="mui-title">项目处于开发期如需访问请输入密码</h1>
</header>
<div class="mui-content">
<div id='holder' class="mui-locker" data-locker-options='{"ringColor":"rgba(210,210,210,1)","fillColor":"#ffffff","pointColor":"rgba(0,136,204,1)","lineColor":"rgba(0,136,204,1)"}' data-locker-width='300' data-locker-height='300'></div>
<div id='alert'></div>
</div>
<script src="public/js/mui.min.js"></script>
<script src="public/js/mui.locker.js"></script>
<script>
(function($, doc) {
$.init();
var holder = doc.querySelector('#holder'),
alert = doc.querySelector('#alert'),
record = [];
//处理事件
holder.addEventListener('done', function(event) {
var rs = event.detail;
if (rs.points.length < 4) {
alert.innerText = '不要非法输入谢谢';
record = [];
rs.sender.clear();
return;
}
//console.log(rs.points.join(''));
record.push(rs.points.join(''));
if (rs.points.join('') == '674301258') {
alert.innerText = '验证正确';
setTimeout(function(){self.location='index.php';}, 1000);
rs.sender.clear();
} else {
alert.innerText = '不要挑战此框架';
rs.sender.clear();
}
});
}(mui, document));
</script>
</body>
</html>
用手机访问 header 就直接消失 pc可以显示。。。 求解决
然后手势这个怎么弄成响应式大小
1 个回复
chender - 与人为善
手势密码控件也是一个标准的dom原生,就按传统的响应式界面做就行了