-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
263 lines (179 loc) · 6.67 KB
/
index.php
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
<!doctype html>
<html lang="en">
<head>
<?php
# Configurações iniciais
require('config.php');
?>
<meta charset="UTF-8">
<title><?php echo $site_name; ?></title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default main">
<div class="panel-heading main-heading"><h1><?php echo $site_name; ?></h1></div>
<div class="panel-body">
<form role="form" action="avatar-generator.php" method="GET">
<!-- Avatar Name -->
<div class="form-group">
<label for="avatar-name"><?php echo $avatar_name; ?></label>
<input type="text" class="form-control" name="avatar-name" value="Avatar" placeholder="<?php echo $avatar_name; ?>" required="required">
</div>
<!-- Body Color -->
<div class="form-group">
<label for="body-color"><?php echo $body_color; ?></label>
<select name="body-color" class="form-control">
<option value="1"><?php echo $body_color_one; ?></option>
<option value="2"><?php echo $body_color_two; ?></option>
</select>
</div>
<!-- Hair Type -->
<div class="form-group">
<label for="hair-type"><?php echo $hair_type; ?></label>
<div class="radio">
<label>
<input type="radio" name="hair-type" value="1" checked>
<span><?php echo $hair_type_one; ?></span>
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="hair-type" value="2">
<span><?php echo $hair_type_two; ?></span>
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="hair-type" value="3">
<span><?php echo $hair_type_three; ?></span>
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="hair-type" value="4">
<span><?php echo $hair_type_four; ?></span>
</label>
</div>
</div>
<!-- Hair Color -->
<div class="form-group">
<label for="hair-color"><?php echo $hair_color; ?></label>
<div class="row">
<div class="col-lg-2">
<input class="form-color" type="color" id="hair-color" name="hair-color" value="#242424">
</div>
<div class="col-lg-10">
<div class="form-control" id="hexcolor-hair"></div>
</div>
</div>
</div>
<!-- Eyebrow Type -->
<div class="form-group">
<label for="eyebrow-type"><?php echo $eyebrow_type; ?></label>
<div class="radio">
<label>
<input type="radio" name="eyebrow-type" value="1" checked>
<span><?php echo $eyebrow_type_one; ?></span>
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="eyebrow-type" value="2">
<span><?php echo $eyebrow_type_two; ?></span>
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="eyebrow-type" value="3">
<span><?php echo $eyebrow_type_three; ?></span>
</label>
</div>
</div>
<!-- Eye Type -->
<div class="form-group">
<label for="eye-type"><?php echo $eye_type; ?></label>
<div class="radio">
<label>
<input type="radio" name="eye-type" value="1" checked>
<span><?php echo $eye_type_one; ?></span>
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="eye-type" value="2">
<span><?php echo $eye_type_two; ?></span>
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="eye-type" value="3">
<span><?php echo $eye_type_three; ?></span>
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="eye-type" value="4">
<span><?php echo $eye_type_four; ?></span>
</label>
</div>
</div>
<!-- Eye Color -->
<div class="form-group">
<label for="hair-color"><?php echo $eye_color; ?></label>
<div class="row">
<div class="col-lg-2">
<input class="form-color" type="color" id="eye-color" name="eye-color" value="#242424">
</div>
<div class="col-lg-10">
<div class="form-control" id="hexcolor-eye"></div>
</div>
</div>
</div>
<!-- Mouth Type -->
<div class="form-group">
<label for="mouth-color"><?php echo $mouth_type; ?></label>
<select name="mouth-type" class="form-control" >
<option value="1"><?php echo $mouth_type_one; ?></option>
<option value="2"><?php echo $mouth_type_two; ?></option>
<option value="3"><?php echo $mouth_type_three; ?></option>
<option value="4"><?php echo $mouth_type_four; ?></option>
</select>
</div>
<!-- T-Shirt Type -->
<div class="form-group">
<label for="tshirt-type"><?php echo $tshirt_type; ?></label>
<select name="tshirt-type" class="form-control">
<option value="g-black"><?php echo $tshirt_type_one; ?></option>
<option value="g-brown-red "><?php echo $tshirt_type_two; ?></option>
<option value="g-green"><?php echo $tshirt_type_three; ?></option>
<option value="g-gray"><?php echo $tshirt_type_four; ?></option>
</select>
</div>
<!-- Nose Type -->
<div class="form-group">
<label for="nose-size"><?php echo $nose_size; ?></label>
<div class="row">
<div class="col-lg-11">
<input class="form-range" type="range" id="nose-size" name="nose-size" min="1" max="4" value="1">
</div>
<div class="col-lg-1">
<div class="form-control" id="output-nose-size"></div>
</div>
</div>
<div id="output-nose-size"></div>
</div>
<button type="submit" class="btn btn-default generate">Gerar Avatar</button>
</form>
</div> <!-- /.panel-body -->
</div> <!-- /.main -->
</div> <!-- /.col-md-12 -->
</div> <!-- /.row -->
<!-- Scripts -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>