-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
145 lines (130 loc) · 4.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1">
<title>Face Test</title>
<link href="css/index.css" rel="stylesheet">
<script src="js/jquery-2.1.4.min.js"></script>
<script src="js/drawing-funcs.js"></script>
<script src="js/genetic-funcs.js"></script>
<script src="js/index.js"></script>
</head>
<body>
<h1>Face Drawing - Genetic Algorithm Test</h1>
<div>
<p>Welcome! This is the page for my project on face generation and genetic algorithms.</p>
<p>This program draws a series of faces. Rate all the faces on their attractiveness, then click "Next Generation" at the bottom of the page.</p>
<p>Using a variant of the Simple Genetic Algorithm (SGA), this program will create new generations of faces passing along favorable elements.</p>
<p>Give it a shot!</p>
</div>
<div class = "container">
<div class="panel">
<canvas id="c0" width="250" height="250">
<p>Your browser doesn't support canvas.</p>
</canvas>
<form class = "rating">
<span class="cross">✗</span>
<input type="range" name="rating" min="0" max="100" value="50">
<span class="check">✓</span>
</form>
</div>
<div class="panel">
<canvas id="c1" width="250" height="250"></canvas>
<form class = "rating">
<span class="cross">✗</span>
<input type="range" name="rating" min="0" max="100" value="50">
<span class="check">✓</span>
</form>
</div>
<div class="panel">
<canvas id="c2" width="250" height="250"></canvas>
<form class = "rating">
<span class="cross">✗</span>
<input type="range" name="rating" min="0" max="100" value="50">
<span class="check">✓</span>
</form>
</div>
<div class="panel">
<canvas id="c3" width="250" height="250"></canvas>
<form class = "rating">
<span class="cross">✗</span>
<input type="range" name="rating" min="0" max="100" value="50">
<span class="check">✓</span>
</form>
</div>
<div class="panel">
<canvas id="c4" width="250" height="250"></canvas>
<form class = "rating">
<span class="cross">✗</span>
<input type="range" name="rating" min="0" max="100" value="50">
<span class="check">✓</span>
</form>
</div>
<div class="panel">
<canvas id="c5" width="250" height="250"></canvas>
<form class = "rating">
<span class="cross">✗</span>
<input type="range" name="rating" min="0" max="100" value="50">
<span class="check">✓</span>
</form>
</div>
<div class="panel">
<canvas id="c6" width="250" height="250">
<p>Your browser doesn't support canvas.</p>
</canvas>
<form class = "rating">
<span class="cross">✗</span>
<input type="range" name="rating" min="0" max="100" value="50">
<span class="check">✓</span>
</form>
</div>
<div class="panel">
<canvas id="c7" width="250" height="250"></canvas>
<form class = "rating">
<span class="cross">✗</span>
<input type="range" name="rating" min="0" max="100" value="50">
<span class="check">✓</span>
</form>
</div>
<div class="panel">
<canvas id="c8" width="250" height="250"></canvas>
<form class = "rating">
<span class="cross">✗</span>
<input type="range" name="rating" min="0" max="100" value="50">
<span class="check">✓</span>
</form>
</div>
<div class="panel">
<canvas id="c9" width="250" height="250"></canvas>
<form class = "rating">
<span class="cross">✗</span>
<input type="range" name="rating" min="0" max="100" value="50">
<span class="check">✓</span>
</form>
</div>
<div class="panel">
<canvas id="c10" width="250" height="250"></canvas>
<form class = "rating">
<span class="cross">✗</span>
<input type="range" name="rating" min="0" max="100" value="50">
<span class="check">✓</span>
</form>
</div>
<div class="panel">
<canvas id="c11" width="250" height="250"></canvas>
<form class = "rating">
<span class="cross">✗</span>
<input type="range" name="rating" min="0" max="100" value="50">
<span class="check">✓</span>
</form>
</div>
<div class="genButton">
<button>NEXT GENERATION</button>
</div>
<div class="licences">
<p>Note - Assets largely borrowed from Nintendo's Mii Creator software.</p>
</div>
</div>
</body>
</html>