-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathraffle.html
95 lines (85 loc) · 2.01 KB
/
raffle.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="css/common.css">
</head>
<body>
<div class="raffle">
<ul>
<li class="sector sector1">
<span>一等奖</span>
</li>
<li class="sector sector2">
<span>二等奖</span>
</li>
<li class="sector sector3">
<span>三等奖</span>
</li>
<li class="sector sector4">
<span>四等奖</span>
</li>
<li class="sector sector5">
<span>五等奖</span>
</li>
<li class="sector sector6">
<span>六等奖</span>
</li>
</ul>
<div class="raffle-btn">
<button>
</button>
<i class="arrow"></i>
</div>
</div>
<div class="door">
<div class="doorl">
<div class="doork-nob">
<div class="doorknob"></div>
</div>
</div>
<div class="doorr">
<div class="doork-nob">
<div class="doorknob"></div>
</div>
</div>
</div>
<script src="js/jquery-1.10.2.js"></script>
<script src="js/raffle.js"></script>
<script>
var settings = [{
'name': '谢谢参与',
'probability': '39'
}, {
'name': '一等奖',
'probability': '1'
}, {
'name': '二等奖',
'probability': '10'
}, {
'name': '三等奖',
'probability': '50'
}, {
'name': '四等奖',
'probability': '50'
}];
// 'sector1': {
//
// },
// 'sector2': {
// 'name': '二等奖',
// 'probability': '0.1'
// },
// 'sector3':{
// 'name':'三等奖',
// 'probability':'0.5'
// },
// 'sector0':{
// 'name':'谢谢参与',
// 'probability':'0.39'
// }
var test = new Raffle(settings);
</script>
</body>
</html>