-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
44 lines (41 loc) · 1.31 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
<html>
<head>
<meta charset="UTF-8" />
<script src="lib/p5.js"></script>
<script src="lib/p5.dom.js"></script>
<script src="lib/p5.sound.js"></script>
<script src="sketch.js"></script>
<script src="core/ConnectionGene.js"></script>
<script src="core/ConnectionHistory.js"></script>
<script src="core/Node.js"></script>
<script src="core/Player.js"></script>
<script src="core/Population.js"></script>
<script src="core/Species.js"></script>
<script src="core/Genome.js"></script>
<script src="utils/Chart.js"></script>
<script src="utils/Counter.js"></script>
<script src="utils/Indicators.js"></script>
<script src="data/btcusdt_5m.js"></script>
</head>
<body>
<div id="main">
<div id="canvas"></div>
</div>
<script>
//center the canvas
var tempString =
'' +
(window.innerWidth * 0.9 - 1026 - window.innerWidth * 0.9 * 0.08) / 2 +
'px';
document.getElementById('main').style.marginLeft = tempString;
window.onresize = function (event) {
var tempString =
'' +
(window.innerWidth * 0.9 - 1026 - window.innerWidth * 0.9 * 0.08) /
2 +
'px';
document.getElementById('main').style.marginLeft = tempString;
};
</script>
</body>
</html>