forked from odhyan/slot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
90 lines (89 loc) · 2.09 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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Slot Machine in Javascript</title>
<meta name="description" content="Welcome to the Javascript version of Slot Machine written by Saurabh Odhyan">
<meta name="keywords" content="javascript, jquery, spritely, animation, sprite, background position, slot, game, games, saurabh, odhyan">
<style>
body {
font-family:verdana,arial;
padding:20px;
}
.bd {
text-align:center;
}
.container {
margin:0 auto;
width:266px;
}
.slot-wrapper {
border: 1px solid #000000;
}
.slot {
background:url("images/reel_normal.png") repeat-y; /*Taken from http://www.swish-designs.co.uk*/
width:86px;
height:70px;
float:left;
border:1px solid #000;
background-position:0 4px;
}
.motion {
background:url("images/reel_blur.png") repeat-y; /*Taken from http://www.swish-designs.co.uk*/
}
button {
display:block;
width:138px;
height:33px;
margin:20px 60px;
font-size:16px;
cursor:pointer;
}
#result {
margin:20px 0;
font-size:18px;
font-weight:bold;
height:22px;
}
.credits {
font-size:15px;
margin-top:20px;
}
.credits .browsers {
font-style:italic;
font-size:14px;
color:#777;
margin-top:4px;
}
.clear {
clear:both;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script src="jquery.spritely.js"></script>
<script src="jquery.backgroundPosition.js"></script>
<script src="slot.js"></script>
</head>
<body>
<div class="hd">
</div>
<div class="bd">
<h1>Slot machine in Javascript</h1>
<div class="container">
<div class="slot-wrapper">
<div id="slot1" class="slot"></div>
<div id="slot2" class="slot"></div>
<div id="slot3" class="slot"></div>
<div class="clear"></div>
</div>
<div id="result"></div>
<div><button id="control">Start</button></div>
</div>
<div><a href="http://odhyan.com/blog/2011/05/slot-machine-in-javascript/">Learn how to build this</a></div>
<div class="credits">
<div>Author: <a href="http://odhyan.com/blog/">Saurabh Odhyan</a></div>
<div class="browsers">Tested in Firefox, Chrome and IE8</div>
</div>
</div>
</body>
</html>