lemon_slider_validation

功能描述

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>

特别说明