-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
114 lines (107 loc) · 3.3 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
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>二次会景品ルーレット!</title>
<link rel="stylesheet" href="bootstrap.css"></link>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/ui-lightness/jquery-ui.css">
<link rel="stylesheet" href="bootstrap-responsive.css"></link>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/themes/ui-lightness/jquery-ui.css">
<link rel="stylesheet" href="demo.css"></link>
</head>
<body>
<div class="container">
<div class="page-header">
<h1>
Satoshi&Mai ビンゴ景品ルーレット!!
</h1>
</div>
<div class="roulette_container" >
<div class="roulette" style="display:none;">
<img src="hatena.jpg" width="500" height="500"/>
<img src="img1.png" width="500" height="500"/>
<img src="img2.png" width="500" height="500"/>
<img src="img3.png" width="500" height="500"/>
<img src="img4.jpg" width="500" height="500"/>
<img src="img5.jpg" width="500" height="500"/>
<img src="img6.jpg" width="500" height="500"/>
<img src="img7.jpg" width="500" height="500"/>
<img src="img8.jpg" width="500" height="500"/>
<img src="img9.jpg" width="500" height="500"/>
</div>
</div>
<div class="btn_container">
<p>
<button class="btn btn-large btn-primary btn-warning start"> START </button>
<!--
<button class="stop btn-large btn btn-warning"> STOP </button>
-->
</p>
</div>
<div class="sound hidden">
<div class="audio">
<audio id="roll" preload="auto">
<source src="./audio/start.mp3" type="audio/mp3">
</audio>
<audio id="decide" preload="auto">
<source src="./audio/end.mp3" type="audio/mp3">
</audio>
</div>
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/jquery-ui.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> <!-- -->
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/lity/1.6.6/lity.css' />
<script src='https://cdnjs.cloudflare.com/ajax/libs/lity/1.6.6/lity.js'></script>
<script src="roulette.js"></script>
<script>
function roll() {
$("#roll").get(0).play();
}
function decide() {
$("#roll").get(0).pause();
$("#roll").get(0).currentTime = 0;
$("#decide").get(0).play();
}
</script>
<script>
jQuery(function(){
// initialize!
var option = {
speed : 50,
duration : 500
}
$('div.roulette').roulette(option);
// START!
/*
$('.start').click(function(){
$('div.roulette').roulette('start');
roll();
});
// STOP!
$('.stop').click(function(){
$('div.roulette').roulette('stop');
decide();
});
*/
$('.start').click(function(){
if ($(this).hasClass("stop")) {
$('div.roulette').roulette('stop');
decide();
$(this).removeClass("stop");
$(this).text("START");
} else {
$('div.roulette').roulette('start');
$(this).addClass("stop");
$(this).text("STOP");
roll();
}
})
});
</script>
<!--
<script src="myRoulette.js"></script>
-->
</body>
</html>