-
Notifications
You must be signed in to change notification settings - Fork 2
/
WasDarwinWrong.htm
53 lines (44 loc) · 1.69 KB
/
WasDarwinWrong.htm
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="description" content="A web page that converts creationists to darwinism by means of empirical evidence">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="ga.js"></script>
<script type="text/javascript" src="levenshtein.js"></script>
<script type="text/javascript">
// a function that converts creationists to darwinism by means of empirical evidence
var convertInfidelsHndlr = function(){
// clean output area
$('#evolutionPlaceHolder').html('');
// generate initial population of random strings
var initialPopulation = generateInitialPop(INDIVIDUAL_SIZE, INITIAL_POP_SIZE);
var currentGeneration = initialPopulation;
var maxFitness = 0;
var generationCounter = 0;
evolve(currentGeneration, generationCounter);
return 0;
}
$(document).ready(function(){
$('#evolveBtn').click(convertInfidelsHndlr);
});
</script>
<TITLE>Was Darwin Wrong?</TITLE>
</head>
<body>
<div style="text-align: center">
<h1>Was Darwin Wrong?</h1>
<div>
<img src="evolution.jpg" title="Yeah - I ripped this pic off some website!" />
</div>
<input id="evolveBtn" type="button" value="Let me evolve the answer for ya" />
</div>
<div id="wrapper" style="text-align: center; margin-top: 25px">
<div id="evolutionPlaceHolder" style="margin: auto; width: 280px;">
</div>
</div>
<div style="text-align: center; margin-top: 25px">
<a style="text-decoration: none;" href="http://twitter.com/John_Idol">credits</a>
</div>
</body>
</html>