-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (47 loc) · 1 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
<!DOCTYPE html>
<head>
<title>Self-driving car - No libraries</title>
</head>
<style>
body{
margin: 0;
background: darkgray;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
}
#verticalButtons{
display: flex;
flex-direction: column;
}
button{
border: none;
border-radius: 5px;
padding: 5px 5px 7px 5px;
margin: 2px;
cursor: pointer;
}
#carCanvas{
background: lightgray;
}
#networkCanvas{
background: black;
}
</style>
<body>
<canvas id="carCanvas"></canvas>
<div id="verticalButtons">
<button onClick="save()">Salvar</button>
<button onClick="discard()">Discartar</button>
</div>
<canvas id="networkCanvas"></canvas>
<script src="./scripts/network.js"></script>
<script src="./scripts/sensor.js"></script>
<script src="./scripts/utils.js"></script>
<script src="./scripts/road.js"></script>
<script src="./scripts/controls.js"></script>
<script src="./scripts/car.js"></script>
<script src="./scripts/main.js"></script>
</body>
</html>