-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (70 loc) · 1.56 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
<!DOCTYPE html>
<html>
<head>
<title>Animate</title>
<style>
html, body {
margin: 0px;
padding: 0px;
}
#container {
height: 99vh;
width:50%;
border:1px solid black;
}
.message {
width:100%;
}
.from-you {
text-align:right;
}
.from-them {
text-align:left;
}
.sticker {
width:25%;
border:1px solid black;
}
.particle {
width:2px;
height:2px;
border-radius:1px;
border:1px solid black;
}
.yellow {
background-color:yellow;
}
</style>
<script src="js/plugin/jquery-2.1.4.min.js"></script>
<script src="js/plugin/sprintf.js"></script>
<script src="js/util.js"></script>
<script src="js/componant.js"></script>
<script src="js/base.js"></script>
<script src="js/mammal.js"></script>
</head>
<body>
<center>
<div id="container">
<div class="message from-them">
<object data="images/steve/steve.svg" type="image/svg+xml" id="steve" class="sticker"></object>
</div>
<div class="message from-you">
<object data="images/steve/steve.svg" type="image/svg+xml" id="monkey" class="sticker"></object>
</div>
</div>
</center>
<script>
var monkey = document.getElementById("monkey");
monkey.addEventListener("load", function() {
var sticker = new mammal(monkey, 1);
sticker.animate('twirl');
//sticker.animate('jump');
//sticker.animate('wobble');
//sticker.animate('explode');
//sticker.animate('kick');
//sticker.animate('dance');
//sticker.animate('piss');
});
</script>
</body>
</html>