-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
112 lines (98 loc) · 3.09 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SDc GIS</title>
<!-- service worker -->
<script>
if ("serviceWorker" in navigator) {
navigator.serviceWorker
.register("/sw.js")
.then(function (registration) {
console.log(
"Service Worker registered with scope:",
registration.scope
);
})
.catch(function (err) {
console.log("Service Worker registration failed:", err);
});
}
</script>
<link rel="stylesheet" href="./src/styles/styles.css" />
<!-- leaflet CSS -->
<link
rel="stylesheet"
href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""
/>
<!-- socket io -->
<script src="https://cdn.socket.io/4.0.0/socket.io.min.js"></script>
<!-- font CDN -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500&display=swap"
rel="stylesheet"
/>
<!-- manifest json -->
<link rel="manifest" href="/manifest.json" />
<!-- favicon -->
<link rel="icon" href="./src/assets/favicon.ico" type="image/x-icon" />
<!-- <script>
document.onkeydown = function (e) {
if (event.keyCode == 123) {
return false;
}
if (e.ctrlKey && e.shiftKey && e.keyCode == "I".charCodeAt(0)) {
return false;
}
if (e.ctrlKey && e.shiftKey && e.keyCode == "J".charCodeAt(0)) {
return false;
}
if (e.ctrlKey && e.keyCode == "U".charCodeAt(0)) {
return false;
}
};
</script> -->
</head>
<body oncontextmenu="return false;">
<!-- Search container -->
<div class="nav-background"></div>
<div class="search-container">
<div class="searchInput">
<input
type="text"
class="textbox"
placeholder="Search"
spellcheck="false"
/>
<div class="resultBox"></div>
</div>
</div>
<div id="map"></div>
<div id="dialog-box" class="hidden-box">
<h1 id="dialog-text">You've reached your destination!</h1>
<div id="timer-bar"></div>
</div>
<button
id="locationButton"
class="location-button location-button-unclicked"
>
<img
class="location-icon-svg"
src="./src/assets/current-location.svg"
alt="Current Location"
/>
</button>
<!-- jquery CDN -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<!-- Leaflet JS -->
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script src="./src/scripts/leaflet.js"></script>
<!-- search Auto Suggestion -->
<script src="./src/scripts/autoSuggestion.js"></script>
</body>
</html>