-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (36 loc) · 894 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>屏幕解锁</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
canvas {
border-top: 1px solid red;
border-bottom: 1px solid red;
}
</style>
</head>
<body>
<script src="index.js"></script>
<script>
const unlockScreen = createUnLockScreen({
container: document.body,
width: window.innerWidth,
style: {
color: 'blue',
lineWidth: 2
},
callback: (rel) => {
console.log("ahhhhhh", rel);
}
});
</script>
</body>
</html>