-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·57 lines (43 loc) · 1.46 KB
/
Copy pathindex.html
File metadata and controls
executable file
·57 lines (43 loc) · 1.46 KB
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Arduino Slot Machine!</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=2.0">
<!-- Stylesheets -->
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/jquery.slotmachine.css" type="text/css" media="screen" />
<!-- Libraries -->
<script type="text/javascript" src="js/mousetrap.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.slotmachine.js"></script>
</head>
<body class="hue">
<div id="slotMachineWrapper" class="container">
<div class="center-y">
<div class="slotMachineFrame"></div>
<div id="slotMachine">
<!-- LIST OF SLOT MACHINE STARTS HERE -->
<div>Press "x"</div>
<div>to see</div>
<div>what</div>
<div>happens</div>
<!-- LIST ENDS HERE -->
</div>
</div>
</div>
<script>
var machine =
$("#slotMachine").slotMachine({
active : 1,
delay : 700,
auto : false,
direction: "down",
});
Mousetrap.bind('x', function() {
if (machine.running) machine.stop();
else machine.shuffle();
}, 'keyup');
</script>
</body>
</html>