-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.html
86 lines (86 loc) · 3.07 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
83
84
85
86
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Pathfinding Visualizer</title>
<link rel="icon" href="img/c_icon.png" />
<link
href="https://fonts.googleapis.com/css?family=Indie+Flower&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="css/style.css" />
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" />
</head>
<body onload="app.launch()">
<div id="overlay-1" onclick="app.endFirstOverLay()">
<p
id="text-1"
class="typewrite"
data-period="1000"
data-type='["Welcome to Pathfinding Visualizer.."]'
>
<span class="wrap">🎈🎉</span>
</p>
</div>
<div id="overlay-2" onclick="app.endNoPathOverLay()">
<div class="typewriter" id="text-2">
❌ No path found ❌ <br />Randomize || Remove some blocks
</div>
</div>
<div id="overlay-3" onclick="app.endClickOverLay()">
<div class="typewriter" id="text-3">
Let's Go, Click to Try 🎈🚀
</div>
</div>
<header>
<div class="title">Pathfinding<span>Visualizer</span></div>
</header>
<div class="grid"></div>
<div id="controls">
<button class="btn btn-outline-primary" onclick="app.findPathWithCustomSpeed('Fast')">
Fast
</button>
<button class="btn btn-outline-primary" onclick="app.findPathWithCustomSpeed('Medium')">
Medium
</button>
<button class="btn btn-outline-primary" onclick="app.findPathWithCustomSpeed('Slow')">
Slow
</button>
<button class="btn btn-outline-primary" onclick="Grid.randomizeObstacles()">
Randomize Blocks
</button>
<button class="btn btn-outline-primary" onclick="Grid.clearGridObstaclesAndPaths()">
Clear Board
</button>
</div>
<div class="social-icons">
<a href="https://github.com/AbdallahHemdan" target="_black">
<i title="Github" class="fab fa-github"></i>
</a>
<a href="https://www.linkedin.com/in/abdallah-a-hemdan-4a94a614a/" target="_black">
<i title="Linkedin" class="fab fa-linkedin-in"></i>
</a>
<a href="mailto:abdallah.ahmed.hemdan@gmail.com" target="_black">
<i title="My mail" class="far fa-envelope"></i>
</a>
<a href="https://www.hackerrank.com/Hemdan" target="_black">
<i title="HackerRank" class="fab fa-hackerrank"></i>
</a>
<a href="https://www.facebook.com/profile.php?id=100009270028400" target="_black">
<i title="FaceBook" class="fab fa-facebook-f"></i>
</a>
<a href="https://codeforces.com/profile/AbdallahHemdan" target="_black">
<i title="CodeForces" class="fas fa-link"></i>
</a>
</div>
<footer>
CopyRight©<span style="color: #e90404;"> AbdallahHemdan</span>
2020.
</footer>
<script src="js/grid.js"></script>
<script src="js/ASTAR.js"></script>
<script src="js/app.js"></script>
</body>
</html>