1.0.0 • Published 8 years ago

jqdragme v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

jqdragme

a jQuery Plugin for CAPTCHA

Intro

  • everyone parameter are optional,but you can change everyone;
  • support callback;
  • only on js file;
  • it's responsive; & the only depency is jQuery.

Usage

        jQuery(function($){
            $('#coolwp-drag-me').coolwpDragMe({
                tip:            '将滑块拖动到右侧进行人机验证',
                successTip:     '验证成功!',
                callback:       function(res){
                                    window.console.log(res);
                                    if(true===res){
                                       // alert('success!');
                                    }else{
                                        //alert('failure!');
                                       // window.location.href='http://coolwp.com/create-jquery-plugin-3.html';
                                   }
                             
                                }
            });
        });   

Project Home

jQuery Drag Me