-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathindex.html
55 lines (47 loc) · 1.9 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
<!DOCTYPE html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!-- Consider specifying the language of your content by adding the `lang` attribute to <html> -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
More info: h5bp.com/i/378 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Random maze generator/solver</title>
<meta name="description" content="">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="lib/jasmine-1.2.0/jasmine.css">
<!-- Mobile viewport optimized: h5bp.com/viewport -->
<meta name="viewport" content="width=device-width">
</head>
<body class='index'>
<p id="pleasewait">Generating maze, please wait ...</p>
<canvas id="maze" width="600" height="600"></canvas>
<input type="submit" value="Solve Maze" id="solve"></input>
<script src="lib/jquery.min.js"></script>
<script src="lib/underscore-min.js"></script>
<script src="src/array.js"></script>
<script src="src/cell.js"></script>
<script src="src/mazeGenerator.js"></script>
<script src="src/graph.js"></script>
<script src="src/maze.js"></script>
<script>
var maze = new Maze(document, 'maze');
var waitElem = $("#pleasewait");
setTimeout(function() {
maze.generate();
maze.draw();
waitElem.remove();
$("#solve").show();
}, 1000);
$(function() {
$('#solve').click(function() {
maze.solve();
});
});
</script>
</body>
</html>