-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (41 loc) · 1.33 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE HTML>
<html>
<head lang="en">
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>SpotCaptcha jQuery plugin guidelines</title>
<link rel="stylesheet" href="css/styles.css" type="text/css">
<script src="https://code.jquery.com/jquery-1.6.min.js"></script>
<script src="jquery.spotsCaptchaLite.js"></script>
</head>
<body>
<div class="container">
<h5>Implementation</h5>
<h6>Step 1:</h6>
<p>Include jQuery plugin in your file. Supported versions 1.6+. Include jquery.spotsCaptcha.js in your file.</p>
<h6>Step 2:</h6>
<p>Create a container and append the captcha as in the example:</p>
<pre>
<div id="captcha-container"></div>
<script>
var check = $("#captcha-container").spotsCaptcha();
</script>
</pre>
<strong>Result:</strong>
<div id="captcha-container"></div>
<script>
var check = $("#captcha-container").spotsCaptcha();
$("#captcha-container").click(function(){
alert(check.getCaptchaResult());
});
</script>
<br>
<h6>Step 3:</h6>
<p>Check the result.</p>
<pre>
if(check.getCaptchaResult()){
//proceed
}
</pre>
</div><!-- end div .container -->
</body>
</html>