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.
74 lines
1.9 KiB
74 lines
1.9 KiB
<!DOCTYPE html>
|
|
<html lang="zh">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
|
|
|
<link href="../component/other/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="https://cdn.bootcss.com/font-awesome/5.7.2/css/all.min.css" rel="stylesheet">
|
|
<link href="../component/other/css/slidercaptcha.css" rel="stylesheet" />
|
|
|
|
<style>
|
|
.slidercaptcha {
|
|
margin: 0 auto;
|
|
width: 314px;
|
|
height: 286px;
|
|
border-radius: 4px;
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.125);
|
|
margin-top: 40px;
|
|
}
|
|
|
|
.slidercaptcha .card-body {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.slidercaptcha canvas:first-child {
|
|
border-radius: 4px;
|
|
border: 1px solid #e6e8eb;
|
|
}
|
|
|
|
.slidercaptcha.card .card-header {
|
|
background-image: none;
|
|
background-color: rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
.refreshIcon {
|
|
top: -54px;
|
|
}
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<div class="slidercaptcha card">
|
|
<div class="card-header">
|
|
<span>请完成安全验证</span>
|
|
</div>
|
|
<div class="card-body">
|
|
<div id="captcha"></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script src="../component/other/js/jquery-1.11.0.min.js" type="text/javascript"></script>
|
|
<script src="../component/other/js/longbow.slidercaptcha.js"></script>
|
|
<script>
|
|
$('#captcha').sliderCaptcha({
|
|
repeatIcon: 'fa fa-redo',
|
|
setSrc: function () {
|
|
return 'https://t7.baidu.com/it/u=1297102096,3476971300&fm=193&f=GIF';
|
|
},
|
|
onSuccess: function () {
|
|
|
|
alert('验证通过!');
|
|
}
|
|
});
|
|
</script>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |