Coder Social home page Coder Social logo

captcha-slider's Introduction

Captcha Slider

基于Canvas实现拖动滑块验证

html5 Canvas drag captcha slider jigsaw

例子 Demo

demo

图片

使用 Usage

引入组件.
Import components.


<link rel="stylesheet" type="text/css" href="./captcha-slider.css">
<script src="./captcha-slider.js"></script>

开始使用.
Usage.


<div id="captcha-slider" class="captcha-slider"></div>

<script>

    CaptchaSlider.init({
        id: 'captcha-slider',
        width: 310,
        height: 155,
    })
    .then(function (succeed) {
        ...
    }, function (error) {
        ...
    });
    
</script>

图片 Image

图片存储在七牛云上面, 大家可以在代码里面自行替换掉.

Picture is stored in qiniu. You can replace it in the JavaScript Code.

感谢 Contribution

此项目参考前辈的代码, 十分感谢前辈们的分享!

This project refers to the code of the older generation and is very grateful to the older generation for sharing!

js+canvas实现滑动拼图验证码功能canvas滑动验证码

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.