-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (47 loc) · 1.5 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
<html>
<head>
<meta name="viewport" content="user-scalable=yes, initial-scale=0.5, maximum-scale=2.0, width=device-width" />
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script src="js/squirrel.js"></script>
<link rel="stylesheet" type="text/css" href="css/textures.css">
<style>
#canvas {
position: relative;
width: 100%;
height: 100%;
}
#squirrel {
position: absolute;
left: 50%;
top: 50%;
margin-left: -212px;
margin-top: -115px;
}
#belly {
width: 80px;
height: 110px;
margin-left: 166px;
margin-top: 180px;
background-color: rgba(0, 0, 0, 0);
}
#nut {
position: absolute;
-webkit-transform: scale(0);
transform: scale(0);
-webkit-transition: -webkit-transform 0.1s ease-out;
transition: transform 0.1s ease-out;
}
</style>
</head>
<body>
<div id="canvas">
<div id="squirrel" class="sprite sq_c">
<div id="belly"></div>
</div>
<div id="nut" class="sprite nut"></div>
</div>
<audio src="sound/humpf.mp3" id="miss_sound" preload="auto"></audio>
<audio src="sound/yay.mp3" id="catch_sound" preload="auto"></audio>
<audio src="sound/giggle.mp3" id="giggle_sound" preload="auto"></audio>
</body>
</html>