-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlottery-right.html
93 lines (88 loc) · 2.46 KB
/
lottery-right.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>抽奖系统</title>
<link rel="stylesheet" href="css/lottery.bass.css">
<link rel="stylesheet" href="css/lottery.main.css">
</head>
<body>
<div class="lottery" pos="right">
<section class="first" style="display: none;">
<div class="title">
<img src="images/title-1-right.png" alt="奖项名称" style="width:220px;">
</div>
<div class="lucky">
<ul class="lucky-list clearfix">
</ul>
</div>
</section>
<section class="second" style="margin-top:48px;display: none;">
<div class="title">
<img src="images/title-2-right.png" alt="奖项名称" style="width:220px;">
</div>
<div class="lucky">
<ul class="lucky-list clearfix">
</ul>
</div>
</section>
<div class="bg">
<section class="bgarea"></section>
</div>
</div>
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="js/lottery.common.js"></script>
<script type="text/javascript" src="js/lottery.js"></script>
<script type="text/javascript" src="js/lottery.localStorage.js"></script>
<script>
var showFirst = function(timer){
var ul = $('.first').find('.lucky-list'), people;
ul.find('li').remove();
for(var i=0;i<timer;i++){
people = lottery.localStorage.get('first_'+i);
people = people.split(",");
ul.prepend(
'<li>'
+'<img src="images/img-border1.png" alt="">'
+'<div class="person_image">'
+'<div class="hexagon hexagon1">'
+'<div class="hexagon-in1">'
+'<div class="hexagon-in2">'
+'<img src="'+people[2]+'" alt="">'
+'</div>'
+'</div>'
+'</div>'
+'</div>'
+'<div class="name">'+people[1]+'</div>'
+'</li>'
);
}
$('.first').fadeIn(1000);
};
var showSecond = function(timer){
var ul = $('.second').find('.lucky-list'), people;
ul.find('li').remove();
for(var i=0;i<timer;i++){
people = lottery.localStorage.get('second_'+i);
people = people.split(",");
ul.prepend(
'<li>'
+'<img src="images/img-border1.png" alt="">'
+'<div class="person_image">'
+'<div class="hexagon hexagon1">'
+'<div class="hexagon-in1">'
+'<div class="hexagon-in2">'
+'<img src="'+people[2]+'" alt="">'
+'</div>'
+'</div>'
+'</div>'
+'</div>'
+'<div class="name">'+people[1]+'</div>'
+'</li>'
);
}
$('.second').fadeIn(1000);
};
</script>
</body>
</html>