-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (31 loc) · 1.02 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
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/p5@1.4.1/lib/p5.js"></script>
<script src="sketch.js"></script>
<script src="controls.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<title>A*</title>
</head>
<body>
<br>
<center>
<main>
<h1>A * Yassir Amami</h1>
</main>
<br>
<p id="result"></p>
<button onclick=run() class="btn btn-danger" id="start">Start</button>
<button onclick=stop() class="btn btn-warning" id="pause">Pause</button>
<a href="" class="btn btn-primary">Generate</a>
<br>
<br>
<p>Press Spacebar to start the Algorithm !</p>
<p>Press 'P' to pause the Algorithm !</p>
<p>Press 'S' repeatedly to go step by step !</p>
<br>
<input id="diagonal" type="checkbox" onclick="validate()" />
<label> - Diagonal Neighbors</label>
</center>
</body>
</html>