Giter Club home page Giter Club logo

puzzlecaptcha.js's Introduction

PuzzleCAPTCHA

Demo

Have a look at the live demo!!

http://plugins.supos.com.au/PuzzleCAPTCHA/

How it works

  • It automatically generates a very simple jigsaw kind of puzzle from any image on the web.
  • Need to lock the form by using [disabled="true"] on the submit button.
  • You can generate a value by Server-side Script and put into the option called [targetVal] then it will pass when the form is submitted so can double check by Server-side script.

How to use

Basic Usage

  1. Add the plugin script
    	<pre>&lt;script src="puzzleCAPTCHA.js"&gt;&lt;/script&gt;</pre>
    	
    </li>
    <li>
    	Add the style
    	<pre>&lt;link rel="stylesheet" href="puzzleCAPTCHA.css"&gt;</pre>
    </li>
    <li>
    	Add HTML
    	<pre>&lt;div id="PuzzleCaptcha"&gt;&lt;/div&gt;</pre>
    </li>
    <li>
    	Call me!!
    	<pre>
    

    <script> $("#PuzzleCaptcha").PuzzleCAPTCHA({ imageURL:'http://distilleryimage2.s3.amazonaws.com/c886e1100cbe11e3a77722000a1fbc49_5.jpg' }); </script>

Options // default value

imageURL // My instagram photo ;)
including [http://].
<dt>width // <small>"auto"</small></dt>
<dd>Use number<small>(* without "px")</small>, when you need to specify the width of the puzzle.</dd>

<dt>height // <small>"auto"</small></dt>
<dd>The same as [width].</dd>

<dt>columns // <small>3</small></dt>
<dd>Add number to divide in column.</dd>

<dt>rows // <small>2</small></dt>
<dd>Add number to divide in row.</dd>

<dt>targetInput // <small>null</small></dt>
<dd>
	Using jQuery selector - 
	<br>
	e.g) The input tag looks like:<br>
<input type="hidden" class="any-class-name-selector-for-input" name="the-name-that-you-want-to-confirm-on-server-side-script">
	<br>
	The value could be {targetInput:".any-class-name-selector-for-input"}
</dd>

<dt>targetVal // <small>null</small></dt>
<dd>The value that can be anything what you want to submit so you can confirm on submitted form.</dd>

<dt>targetButton // <small>null</small></dt>
<dd>
	Using jQuery selector - 
	<br>
	e.g) The button tag looks like:<br>
	<pre>&lt;button type="submit" disabled="true" class="any-class-name-selector-for-button" name="any-name"&gt;Submit!!&lt;/button&gt;</pre>
	<br>
	The value could be {targetButton:".any-class-name-selector-for-button"}

</dd>




*Thing to do:

  • Validate the value passed when it is called.
  • Image preloading is not clear depending on the browser.

puzzlecaptcha.js's People

Contributors

supop avatar

Watchers

 avatar

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.