-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
191 lines (164 loc) · 4.51 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Avaku | JavaSript Avatar Customization Engine</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="avaku/config.js"></script>
<script type="text/javascript" src="avaku/linkedlist.js"></script>
<script type="text/javascript" src="avaku/algo.js"></script>
<script type="text/javascript" src="avaku/avatar.js"></script>
<script type="text/javascript" src="avaku/base.js"></script>
<script type="text/javascript" src="avaku/layer.js"></script>
<script type="text/javascript" src="avaku/itemfactory.js"></script>
<script type="text/javascript" src="images/Elidiun/elidiun.js"></script>
<script type="text/javascript" src="avaku/inventory.js"></script>
<script type="text/javascript" src="avaku/avaku.js"></script>
<script type="text/javascript">
function init() {
Avaku.init();
}
window.addEventListener('DOMContentLoaded', init);
</script>
<style type="text/css">
body {
margin: 0;
padding: 0;
background-color: #F6F6F6;
font: 14px/1.7 Arial, Verdana, sans-serif;
text-align: center;
}
#wrap {
width: 860px;
margin: 0 auto;
padding: 30px;
background-color: #FFFFFF;
border: solid #EEEEEE;
border-width: 0 1px;
text-align: left;
}
h1, h2 { margin: 1em 0 0 0; }
p { margin: 1em 0; }
code { margin-right: 6px; padding: 1px 6px; background-color: #EEEEEE; }
#avatars { float: left; width: 200px; padding-right: 30px; }
#avatars #compiled { float: right; }
#avatars #dom_compiled { float: right; position: relative; }
#avatars #dom_compiled img { position: absolute; top: 0; left: 0; }
#avatar, #bc_avatar { position: relative; }
#bc_avatar img { position: absolute; top: 0; left: 0; }
#about {
float: right;
width: 450px;
}
#author { font-size: 12px; }
#options {
clear: both;
padding: 10px 0;
}
#inventory { clear: both; }
#equipped { clear: both; float: left; }
#instructions { clear: both; padding-top: 20px; }
#save:link, #save:visited,
#clear:link, #clear:visited {
padding: 6px 8px;
background-color: #F0F0F0;
border: 1px solid #C0C0C0;
color: #559955;
border-radius: 5px;
}
#save:hover, #clear:hover {
background-color: #66AA66;
border-color: #336633;
color: #FFF;
}
.item {
display: block;
float: left;
position: relative;
height: 165px;
width: 120px;
margin: 0 15px 15px 0;
overflow: hidden;
background-color: #F6F6F6;
border: 1px solid #E0E0E0;
border-radius: 5px;
}
.item .equipped { background-color: #FFFCEF; }
.item:last-child { margin-right: 0; }
.item .layer img { border: 0; }
a { text-decoration: none; }
a.remove, a.raise, a.lower {
display: inline-block;
position: absolute;
top: 3px;
padding: 0 6px;
background-color: #EEEEEE;
border: 1px solid #E0E0E0;
font-family: Consolas, sans-serif;
border-radius: 0px;
}
a.remove:hover, a.raise:hover, a.lower:hover {
box-shadow: 0 0 2px #606060;
}
a.remove {
display: none;
right: 55px;
background-color: #FF9999;
border: 1px solid #990000;
color: #990000;
}
a.remove:hover, a.remove:active {
background-color: #CC6666;
border-color: #660000;
color: #330000;
}
a.raise { right: 29px; }
a.raise:hover, a.raise:active {
background-color: #DDEEDD;
border: 1px solid #006600;
color: #003300;
}
a.lower { right: 3px; }
a.lower:hover, a.lower:active {
background-color: #DDDDEE;
border: 1px solid #000066;
color: #000033;
}
h2 { clear: both; }
</style>
</head>
<body>
<div id="wrap">
<div id="avatars">
<canvas id="avatar" width="160" height="220">
<div id="bc_avatar"></div>
</canvas>
<div id="dom_compiled">
<img id="compiled" src="images/Elidiun/Base_normalF.png" width="160" height="220" />
</div>
</div>
<div id="about">
<h1>Avaku</h1>
<span id="author">By Gio Carlo Cielo</span>
<p>Avatars are dynamically generated by equipping items from the inventory. When saved,
the avatar will compile into the image on the right for saving.</p>
<p>For more dynamic items and avatars, try Avaku with server-side languages such as PHP.</p>
</div>
<h2>Equipped</h2>
<div id="equipped">
</div>
<div id="options">
<a href="#" id="save" >Save</a>
<a href="#" id="clear">Clear</a>
</div>
<h2>Inventory</h2>
<p>Equip some items. Remove them. Control the layering order.</p>
<div id="inventory">
</div>
<p id="instructions">
<code>+</code> raises the layer<br />
<code>-</code> lowers the layer<br />
<code>x</code> removes the layer
</p>
</div>
</body>
</html>