forked from bellamarief/HalloweenSlotMachine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
213 lines (185 loc) · 6.47 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Halloween Caça Niquel</title>
<link rel="stylesheet" href="style/estilos.css">
<script src="js/jquery-2.1.0.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.easing.1.3.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jcanvas.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.jSlots.js" type="text/javascript" charset="utf-8"></script>
<script src="js/all.js" type="text/javascript" charset="utf-8"></script>
<script language="javascript">
window.addEventListener('fullscreenchange',fullScreenEvent);
window.addEventListener('webkitfullscreenchange',fullScreenEvent);
window.addEventListener('mozfullscreenchange',fullScreenEvent);
function DoFullScreen() {
var isInFullScreen = (document.fullScreenElement && document.fullScreenElement !== null) || // alternative standard method
(document.mozFullScreen || document.webkitIsFullScreen);
var docElm = document.documentElement;
if (!isInFullScreen) {
if (docElm.requestFullscreen) {
docElm.requestFullscreen();
}
else if (docElm.mozRequestFullScreen) {
docElm.mozRequestFullScreen();
}
else if (docElm.webkitRequestFullScreen) {
docElm.webkitRequestFullScreen();
}
}
}
function fullScreenEvent() {
//alert(document.documentElement.clientWidth + '; '+ screen.width);
}
function flyBat() {
//alert(bat.style.left);
}
var bat = null;
function ready() {
bat = document.getElementById("animBat");
}
/*setInterval(function() {
var style = getComputedStyle(bat);
if (style) {
if (parseInt(style.left, 10) < -2000) {
bat.style.left = (document.documentElement.clientWidth)+"px";
} else {
bat.style.left = parseInt(style.left, 10) - 10 + "px";
}
}
}, 50); /**/
</script>
</head>
<body>
<div id="what" style="color: white;"></div>
<div class="dvLoading">
Carregando...
<div class="objHat dvSizeNull"></div>
<div class="objPumpkin dvSizeNull"></div>
<div class="objCauldron dvSizeNull"></div>
<div class="objSkull dvSizeNull"></div>
<div class="objVampire dvSizeNull"></div>
<div class="objCat dvSizeNull"></div>
<div class="objMoon dvSizeNull"></div>
<div class="objCandy dvSizeNull"></div>
<div class="objGhost dvSizeNull"></div>
<div class="objWitch dvSizeNull"></div>
<div class="objSatan dvSizeNull"></div>
<div class="objFrank dvSizeNull"></div>
</div>
<div class="dvHelp">
<h2>AJUDA</h2><br/>
<pre>
LINHAS
===================================================
Q = 1 Linha
W = 5 Linhas
E = 9 Linhas
R = 15 Linhas
T = 20 Linhas
COMANDOS
===================================================
G --> Aumenta multiplicador da aposta
F --> Diminuiu multiplicador da aposta
S --> Modo automatico
F11 --> Tela Cheia
[ENTER] --> Jogar
</pre>
</div>
<!-- Bonus Cauldron -->
<div class="bonusCauldron" id="bonusCauldron">
<div class="dvCauldronTop">
<img src="imgs/witchFace.gif"></img></br>
<div class="dvCauldronLine" id="CauldronLine">
<div class="objLineCauldron"></div>
<div class="objLineCauldron"></div>
<div class="objLineCauldron"></div>
<div class="objLineCauldron"></div>
<div class="objLineCauldron"></div>
</div>
</div>
<div class="dvCauldronData">
<div style="width: 80%; height: 100%; margin: 0 auto; ">
<table>
<tr>
<td>Bonus</td><td><input type="text" class="inpCauldron"></input></td>
</tr>
<tr>
<td>Credito</td><td><input type="text" class="inpCauldron"></input></td>
</tr>
<tr>
<td>Prêmio</td><td><input type="text" class="inpCauldron"></input></td>
</tr>
</table>
</div>
</div>
</div> <!-- -->
<img class="source-image" src="imgs/back6.png" />
<div class="animBat" id="animBat"></div>
<div class="dvTop">
<div class="dvMsg" id="dvMsg"><b>Atenção: </b>Voce nao esta no modo tela cheia. Para ativar, pressione <b>F11</b> ou clique <a href="#" style="color: white" onclick="javascript: DoFullScreen();">aqui</a>!</div>
<table class="tbInfo">
<tr>
<td style="width: 130px;"><img src="imgs/creditos.png" style="width: 100%"></img></td>
<td style="width: 200px; min-width: 200px;"><div id="betCredits" class="dvBox">R$ 1000,00</div></td>
<td></td>
<td style="text-align: right; width: 100px;">
<img src="imgs/premio.png" style="width: 100%"></img></td>
<td style="width: 200px; min-width: 200px;"><div id="betAward" class="dvBox">R$ 0,00</div></td>
<td></td>
<td style="position: relative; width: 115px;">
<img src="imgs/topcat.png" style="float: right; width: 100%;"></img>
<div id="betBase" class="dvBetBase">1</div>
</td>
<td style="text-align: right; width: 100px;"><img src="imgs/aposta.png" style="width: 100%"></img></td>
<td style="text-align: right; width: 200px; min-width: 200px;"><div id="betValue" class="dvBox">R$ 2,00</div></td>
</tr>
<tr>
<td colspan="9" style="text-align: center; font-size: 10px;" id="playAuto">JOGO AUTOMATICO</td>
</tr>
</table>
</div>
<div class="dvAjusta">
<div class="dvCenter">
<div class="dvCol">
<ul class="ulSlot">
<li class="objSatan"></li>
<li class="objPumpkin"></li>
<li class="objMoon"></li>
</ul>
</div>
</div>
</div>
<div class="dvFoot">
<div style="float: left;">
<img src="imgs/acumulado.png"></img><div class="dvBox" style="width: 240px;">R$ 1.239,00</div>
</div>
<button class="dvBtnPlay" id="playFancy"><b>JOGAR</b></button>
</div>
<script type="text/javascript" charset="utf-8">
$('.ulSlot').jSlots({
number : 5,
winnerNumber : 7,
spinner : '#playFancy',
easing : 'linear',
time : 2000,
loops : 16,
onStart : function() {
$('.dvSlot').removeClass('winner');
},
onWin : function(winCount, winners) {
// only fires if you win
$.each(winners, function() {
this.addClass('winner');
});
// react to the # of winning slots
if ( winCount === 1 ) {
//alert('You got ' + winCount + ' 7!!!');
} else if ( winCount > 1 ) {
//alert('You got ' + winCount + ' 7?s!!!');
}
}
});
</script>
</body>
</html>