-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathindex.html
106 lines (88 loc) · 3.11 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta property="og:image" content="https://tympanix.github.io/pattern-lock-js/mockup.jpg" />
<title>Pattern Lock Demo</title>
<style media="screen">
* {
box-sizing: border-box;
}
html,
body {
padding: 0;
margin: 0;
height: 100vh;
max-height: 100vh;
overflow: hidden;
}
body {
font-family: 'Varela Round', sans-serif;
}
.container {
margin: auto;
height: 100%;
}
h1 {
text-align: center;
margin: 0;
height: 15vh;
line-height: 15vh;
text-align: center;
font-size: 6vh;
}
#lock {
width: 100%;
height: calc(100% - 15vh);
padding-bottom: 12vh;
min-height: 120px;
}
.stars {
margin: auto;
display: block;
}
</style>
<!-- build:css styles.css -->
<link rel="stylesheet" href="patternlock.css">
<!-- endbuild -->
<link href="https://fonts.googleapis.com/css?family=Varela+Round" rel="stylesheet">
</head>
<body>
<a href="https://github.com/Tympanix/pattern-lock-js">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png">
</a>
<div class="container">
<h1>pattern-lock-js</h1>
<iframe class="stars" src="https://ghbtns.com/github-btn.html?user=tympanix&repo=pattern-lock-js&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
<svg class="patternlock" id="lock" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<g class="lock-actives"></g>
<g class="lock-lines"></g>
<g class="lock-dots">
<circle cx="20" cy="20" r="2"/>
<circle cx="50" cy="20" r="2"/>
<circle cx="80" cy="20" r="2"/>
<circle cx="20" cy="50" r="2"/>
<circle cx="50" cy="50" r="2"/>
<circle cx="80" cy="50" r="2"/>
<circle cx="20" cy="80" r="2"/>
<circle cx="50" cy="80" r="2"/>
<circle cx="80" cy="80" r="2"/>
</g>
<svg>
</div>
<!-- build:js vendor.js -->
<script src="bower_components/jquery/dist/jquery.js" charset="utf-8"></script>
<!-- endbuild -->
<!-- build:js patternlock.js -->
<script src="patternlock.js" charset="utf-8"></script>
<!-- endbuild -->
<script type="text/javascript">
var e = document.getElementById('lock')
var p = new PatternLock(e, {
onPattern: function() {
this.success()
}
});
</script>
</body>
</html>