-
Notifications
You must be signed in to change notification settings - Fork 0
/
nav.php
195 lines (168 loc) · 8.38 KB
/
nav.php
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<?php
// We need to use sessions, so you should always start sessions using the below code.
session_start();
// If the user is not logged in redirect to the login page...
// if (!isset($_SESSION['loggedin'])) {
// header('Location: login.php');
// exit;
// }
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<title>Lorg Glaschu</title>
<meta name="theme-color" content="#040720">
<meta name="apple-mobile-web-app-status-bar-style" content="#040720">
<!-- <meta name="description" content="A simple HTML5 Template for new projects.">
<meta name="author" content="SitePoint">
<meta property="og:title" content="A Basic HTML5 Template">
<meta property="og:type" content="website">
<meta property="og:url" content="https://www.sitepoint.com/a-basic-html5-template/">
<meta property="og:description" content="A simple HTML5 Template for new projects.">
<meta property="og:image" content="image.png">
<link rel="icon" href="/favicon.ico">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png"> -->
<link rel="icon" href="media/icon.png">
<link rel="apple-touch-icon" href="media/icon.png">
<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous">
<link rel="stylesheet" href="index.css">
<!-- LeafLet CSS -->
<!-- Removed bcs of Crossorigin policylink rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""/-->
<link rel="stylesheet" href="libraries/leaflet.css">
<style>
#mapid { height: 400px;}
body {overflow: hidden;}
.dark {
background-color: #040720;
}
.white {
color: #ffffff;
}
.hide {
display: none;
}
.topcaption {
top: 0;
bottom: auto;
}
.carousel-item {
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
}
</style>
</head>
<body>
<div class="cover-container d-flex w-100 h-100 mx-auto flex-column pb-0 mb-0">
<div id="top" class="mb-2">
<!-- HEADER -->
<header class="m-2 p-1 border-bottom d-flex justify-content-between">
<div>
<span class="arrow arrow-left" onclick="window.history.back()"></span>
<img src='media/maximize.png' style="height:25px;width:25px;vertical-align: sub;margin-left:10px" onclick='toggleFullScreen()'/>
</div>
<div class="m-2 fixed-top text-center" style="pointer-events: none;font-size:1.3rem" id="pathName">Treasure Hunt</div>
<div style="font-size: 0.8rem;line-height:0px;text-align: right;margin-top: -3px">
<span>
<img src="media/wifi-signal.png" style="height:23px;width:23px;padding:2px;">
<span id="gps">Good</span><br>GPS
</span>
</div>
</header>
<main role="main" class="inner">
<div class="hide" id="mapid"></div>
<div class="p-2 hide" id="list" style="overflow-y:auto; height:200px">
<h2 id="inst">Instruction</h2>
<p id="hint">Hint</p>
<!-- <button type="button" id="dd" class="btn btn-primary" onclick="paths[actualState.pathId].endgame();">
finish
</button> -->
<!-- Button for open question -->
<button type="button" id="questionButton" class="btn btn-primary hide m-2" data-toggle="modal" data-target="#qwin" data-keyboard="false" data-backdrop="static">
Fosgail a’ cheist
</button>
<button type="button" id="extraInfo" class="btn btn-light hide m-2" data-toggle="modal" data-target="#info" data-keyboard="false" data-backdrop="static">
Barrachd fiosrachaidh
</button>
<button type="button" id="moveToNextAnsBtn" onclick="paths[actualState.pathId].moveToNextAns();" class="btn btn-warning hide m-2">
Dhan ath cheist
</button>
</div>
<div class="p-2 hide overflow-auto" id="finalmsg" style="height:200px">
<h2 id="end_title" class="p-1"></h2>
<canvas id="canvas" width="299" height="350" class="m-3"></canvas>
<p id="end_text" class="p-1"></p>
<button id="savebtn" onclick='save()' class="btn btn-primary m-2 hide">Sàbhail</button>
<button id="sharebtn" onclick='share()' class="btn btn-success m-2 hide">Sgaoil air na meadhanan sòisealta</button><br />
<button id="newbtn" onclick='newgame()' class="btn btn-warning m-2 mb-4 hide">Tòisich geama ùr</button>
</div>
<div id="picturescarcont" class="hide"></div>
<!-- Modal for questions -->
<div class="modal fade" id="qwin" tabindex="-1" role="dialog" aria-labelledby="qwin" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog" role="document">
<div class="modal-content dark">
<div class="modal-header">
<h5 class="modal-title" id="questionTitle">no question</h5>
<button type="button" class="close white" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" id="questionBody">
no body
</div>
<div class="modal-body hide" id="discoverMore">
<!-- <h2>Discover more!</h2> -->
<p id="discoverMoreText"></p>
</div>
</div>
</div>
</div>
<!-- Modal for notifications -->
<div class="modal fade" id="info" tabindex="-1" role="dialog" aria-labelledby="info" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content dark">
<div class="modal-header">
<h5 class="modal-title" id="infoTitle">No title</h5>
<button type="button" class="close white" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" id="infoBody">
no body
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<div id="mapcontainer" class="fixed-bottom">
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- your content here... -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<!-- LeafLet JS -->
<!--script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""></script-->
<script src="libraries/leaflet.js"></script>
<script src="js/classes.js?v=289322"></script>
<script src="js/distance.js?v=289322"></script>
<script src="js/gamedata.js?v=289322"></script>
<script src="js/gamelogic.js?v=269322"></script>
<script src="js/geolocation.js?v=269322"></script>
<script src="js/map.js?v=269322"></script>
<script src="js/screen.js?v=269322"></script>
<script>
let url_path = new URLSearchParams(window.location.search).get('path');
startPath(url_path);
</script>
</body>
</html>