forked from GitZChen/DroneBlocks-Web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
missions.html
99 lines (86 loc) · 3.19 KB
/
missions.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
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html manifest="droneblocks.appcache">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width; initial-scale=1.25; maximum-scale=1.25; user-scalable=0;" />
<title>DroneBlocks</title>
<script src="./js/jquery-2.2.3.min.js"></script>
<style>
/* Override materialize h5 margin at top */
h5 {
margin: 0 !important;
}
</style>
<!-- Material -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="./materialize/css/materialize.min.css" media="screen,projection"/>
<!-- Firebase -->
<script src="https://www.gstatic.com/firebasejs/3.7.2/firebase.js"></script>
<script>
var aircraft = "DJI";
// Initialize Firebase
var config = {
apiKey: "AIzaSyBcbAt69BGUjPiOucQbkcNNbcdaSmE-G0o",
authDomain: "fiery-inferno-4972.firebaseapp.com",
databaseURL: "https://fiery-inferno-4972.firebaseio.com",
storageBucket: "",
};
/*var config = {
apiKey: "AIzaSyAGgqla_TWV4wVgaQ87HG3VDT0igLA8KhU",
authDomain: "droneblocks-staging.firebaseapp.com",
databaseURL: "https://droneblocks-staging.firebaseio.com",
projectId: "droneblocks-staging",
storageBucket: "droneblocks-staging.appspot.com",
};*/
firebase.initializeApp(config);
</script>
</head>
<body>
<h5 class="card-panel light-blue darken-1 white-text z-depth-0">My Missions</h5>
<table id="missionsTable">
<thead>
<tr>
<th style="padding-left: 25px">Title</th>
<th>Created</th>
<th>Actions</th>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
<div style="padding: 20px;">
<a class="waves-effect waves-light btn z-depth-0 light-blue" href="index.html">Back</a>
</div>
<div id="deleteMissionModal" class="modal">
<div class="modal-content">
<h6>Are you sure you want to delete this DroneBlocks mission?</h6>
</div>
<div class="modal-footer">
<a href="#!" class=" modal-action modal-close waves-effect waves-light btn z-depth-0" id="deleteMissionButton">Delete</a>
<a href="#!" class=" modal-action modal-close waves-effect waves-light btn-flat">Cancel</a>
</div>
</div>
<div id="shareModal" class="modal">
<div class="modal-content">
<p>Copy one of the links below to share this mission with a friend. You can share it with them on a desktop or on an iPad with DroneBlocks installed.</p>
<div>
<div class="input-field col s6">
<strong>iPad Share Link</strong>
<input id="iPadShareLink" type="text" class="validate">
</div>
</div>
<div>
<div class="input-field col s6">
<strong>Desktop Share Link</strong>
<input id="desktopShareLink" type="text" class="validate">
</div>
</div>
</div>
<div class="modal-footer">
<a href="#!" class=" modal-action modal-close waves-effect waves-light btn z-depth-0" id="okButton">OK</a>
</div>
</div>
<script type="text/javascript" src="./materialize/js/materialize.min.js"></script>
<script type="text/javascript" src="./js/missions.js"></script>
</body>
</html>