-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathdemo.html
53 lines (47 loc) · 1.07 KB
/
demo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>lucky-card.js DEMO</title>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, width=device-width">
<style>
html,
body {
margin: 0;
padding: 0;
}
body {
background: #FFFFFF;
}
#card {
height: 100%;
font-weight: bold;
font-size: 40px;
line-height: 100px;
text-align: center;
background: #FAFAFA;
}
#scratch {
width: 300px;
height: 100px;
margin: 50px auto 0;
border: 1px solid #ccc;
}
</style>
<link rel="stylesheet" href="./dist/lucky-card.css">
<script src="./dist/lucky-card.min.js"></script>
</head>
<body>
<div id="scratch">
<div id="card">¥5000000元</div>
</div>
<script>
LuckyCard.case({
ratio: .7
}, function() {
alert('至于你信不信,我反正不信!');
this.clearCover();
});
</script>
</body>
</html>