-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpatternLock.html
50 lines (49 loc) · 2.07 KB
/
patternLock.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
46
47
48
49
50
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Pattern Authenticator</title>
<link rel="stylesheet" type="text/css" href="patternLock.css" />
<link rel="stylesheet" type="text/css" href="patternLock-theme.css" />
<script src="jquery-1.11.1.min.js"></script>
<script src="jquery-patternlock/dist/jquery.patternlock.js"></script>
<script>
$(document).ready(function(){
// $("#mydiv").patternLock({
// width: 240,
// height: 300,
// rows: 8,
// columns: 9,
// patternLineColor: '#f00',
// showPatterLine:false,
// fieldName: 'pattern',
// valueSeparator:'-',
// valueArray:[9,8,7,6,5,4,3,2,1],
// centerCircle:true,
// centerCircleSize:15,
// showPatternLine: true,
// lineWidth: 4,
// drawEnd: function(data) {
// console.log(data);
// },
// allowRepeatSelection:true
// });
$('#mydiv1').patternLock({
centerCircle: true,
selectionColor: 'red',
timeout: 4000,
centerCircleSize: 20,
drawEnd: function(data) {
console.log(data);
}
});
});
</script>
</head>
<body>
<div id="mydiv"></div>
<div id="mydiv1"></div>
</body>
</html>