-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
52 lines (47 loc) · 2.09 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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Dérive Génétique</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<script src="js/raphael-min.js" type="text/javascript" charset="utf-8"></script>
</head>
<body onkeydown="keyDown(event)">
<h1>La dérive génétique</h1>
<div id="graph"></div>
<div id="holder" class="well"></div>
<div id="generationSt">Génération n°<span id="gennumberst">0</span></div>
<div id="generationSd">Génération n°<span id="gennumbersd">1</span></div>
<div id="textGraph"></div>
<div class="well">
<div id="start">
<div class="row-fluid">
<div class="span4">
Nombre de couleurs (entre 2 et 5)<input type="text" value="5" id="nbColors"><br>
Nombre de balles (entre 5 et 100)<input type="text" value="5" id="nbBalls">
</div>
<div class="span6" style="margin-top: 40px;">
<center>
<input id="generer" type="button" class="btn btn-primary btn-large" value="Générer"
onclick="remplirTabBoule(document.getElementById('nbBalls').value, document.getElementById('nbColors').value)">
</center>
</div>
</div>
</div>
<div id="toolbar" style="margin-top: 20px;margin-bottom: 20px;display: none;">
<center>
<input id="drawBall" type="button" class="btn btn-large" value="Tirer une boule"
onclick="chooseBall()">
<input id="drawAllBalls" type="button" class="btn btn-large" value="Tirer toutes les boules"
onclick="drawAllBalls();">
<input id="newGen" class="btn btn-large" type="button" onclick="nextGen();"
value="Génération suivante">
<input id="annuler" type="button" class="btn btn-warning btn-large" value="Annuler"
onclick="reInit()">
</center>
</div>
</div>
<script type="text/javascript" src="js/js.js"></script>
</body>
</html>