-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
executable file
·82 lines (74 loc) · 1.81 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
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="utf-8">
<title>Nevo</title>
<meta name="og:title" content="Nevo">
<meta name="og:image" content="screenshot.jpg">
<meta name="og:description" content="AI acquarium simulation in JS">
<meta charset="UTF-8">
<script src="brain/brain.js"></script>
<script src="evolution/generation.js"></script>
<script src="utils/utils.js"></script>
<script src="utils/perlin.js"></script>
<script src="utils/angle.js"></script>
<script src="utils/vec.js"></script>
<script src="utils/distr.js"></script>
<script src="utils/seq.js"></script>
<script src="world/meal.js"></script>
<script src="world/nevo.js"></script>
<script src="world/world.js"></script>
<script src="init.js"></script>
<style>
html, body {
margin:0;
width:100%;
height:100%;
overflow: hidden;
font-family: monospace;
font-size: 14px;
background: #111;
}
div {
position: relative;
}
#canvas_box {
float: left;
width: 100%;
height: 100%;
}
#github-link {
position: absolute;
top: 15px;
right: 15px;
color: #fff;
font-family: monospace;
z-index: 1000;
text-decoration: none;
border-bottom: 1px solid #fff;
opacity: .8;
padding-bottom: 5px;
}
#graph {
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
margin: auto auto;
height: 80%;
width: 80%;
background: rgba(50, 50, 50, .3);
-background: #fff;
border: 1px solid #555;
display: none;
}
</style>
</head>
<body>
<div id="canvas_box"></div>
<div id="graph" onclick="event.shiftKey || (this.style.display='none')"></div>
<a href="https://github.com/gufoe/nevo" id="github-link">It's on Github!</a>
<script src="sigma.min.js" charset="utf-8"></script>
</body>
</html>