HTML5滑块验证码,支持移动版
无
<div class="container">
<input value="admin" readonly/>
<input type="password" value="1234567890" readonly/>
<div id="captcha"></div>
<div id="msg"></div>
</div>
<script src="./libs/jigsaw.min.js"></script>
<script>
jigsaw.init({
el: document.getElementById('captcha'),
onSuccess: function() {
document.getElementById('msg').innerHTML = '登录成功!'
},
onFail: cleanMsg,
onRefresh: cleanMsg
})
function cleanMsg() {
document.getElementById('msg').innerHTML = ''
}
</script>
无