-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
84 lines (65 loc) · 2.67 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
<!DOCTYPE html>
<html>
<head>
<title>Maze</title>
<link rel="stylesheet" href="assets/css/style.css" type="text/css" media="all">
<meta name=viewport content="width=device-width, initial-scale=1">
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.15.5/firebase-app.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script src="https://www.gstatic.com/firebasejs/7.15.5/firebase-analytics.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.15.5/firebase-firestore.js"></script>
<script>
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: "AIzaSyAlfXgCVazpjfoWvjZHeLSS8eVXtGvpikU",
authDomain: "the-maze-a86a4.firebaseapp.com",
databaseURL: "https://the-maze-a86a4.firebaseio.com",
projectId: "the-maze-a86a4",
storageBucket: "the-maze-a86a4.appspot.com",
messagingSenderId: "309940934979",
appId: "1:309940934979:web:90b1a67977c762fd4477f6",
measurementId: "G-Z7TCYCQEFX"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
firebase.analytics();
// Initialize Cloud Firestore through Firebase
const db = firebase.firestore();
</script>
</head>
<body>
<header>
<a href=""><img src="assets/logo.png" alt="Maze" /></a>
</header>
<main ng-app="maze" ng-controller="mazeCtrl">
<section id="maze_list" ng-controller="mazeChooser">
<div class="maze_list-box">
<input ng-repeat="m in mazeList" ng-class="isActive(m.id)" ng-click="loadMaze(m.id);" onclick="this.className+='selected'" type="button" value="{{ m.name }}" />
</div>
</section>
<section id="maze_board" class="maze_board__central_box" ng-controller="mazeBoard">
<br>
<div class="maze_board__content">
<div class="maze_board__row" ng-repeat="row in maze.matrix track by $index">
{{blockRow = $index}}
<div ng-repeat="blockID in row track by $index" class="maze_board__block">
{{blockCol = $index}}
<div class="{{ blocks[blockID] }}" ng-mouseover="evalPath(blockID,blockRow,blockCol)"></div>
</div>
</div>
</div>
<h3>{{ maze.name }}</h3>
</section>
</main>
<footer>
<p>Developed by <a href="http://mondspace.com" target="_blank">Marco</a> | <a href="./new.html">Draw your own maze</a></p>
</footer>
<script src="./assets/vendor/angular.min.js"></script>
<script src="./assets/js/app.js"></script>
<script src="./assets/js/maze__ctrl.js"></script>
<script src="./assets/js/maze_chooser__ctrl.js"></script>
<script src="./assets/js/maze_board__ctrl.js"></script>
</body>
</html>