summaryrefslogtreecommitdiff
path: root/mazesolver.html
blob: 2002f7397f0baf81fdbd545aaf8a2fd18ed3ed2d (plain)
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
<html>

    <head>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <link href="css/style.css" rel="stylesheet">
        <title>Maze Solver</title>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    </head>

    <body>

        <div id="navbar"></div>
        <script src="navbar.js"></script>
        <h2>Maze Solver</h2>
        <hr>

        <div class="container-fluid">
            <div class="col-lg-5 col-md-6 col-sm-8 col-xs-12" id="explanation">
                Left-click to create walls, middle-click (press the scroll wheel) to clear walls, and right-click to place start and ending locations.
            </div>
        </div>
        <br>

        <button class="btn btn-sm btn-primary with-margin" onclick="startCreation();" id="StartButton">Create maze</button><br>
        <button class="btn btn-sm btn-primary with-margin" onclick="begin();" id="begin">Solve maze</button><br><br>
        <p id="Error" class="text-danger"></p>

        <div class="container-fluid" id="form">
            <div class="row">
                <div class="input-group input-group-md col-lg-3 col-md-6 col-sm-8 col-xs-10">
                    <span class="input-group-addon">Size</span>
                    <input id="size" class="form-control" type="number" value="50">
                </div>
            </div>
        </div><br>


        <canvas height="500" width="500" id="Canvas" oncontextmenu="return false;"></canvas>

        <script src="js/mazesolver.js"></script>


    </body>
    <footer>
        <p>MazeSolver is licensed under the <a href="LICENSE.txt">GNU General public license</a>.</p>
    </footer>

</html>