-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.html
226 lines (209 loc) · 9.85 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
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./index.css">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css">
<title>Amrita Map</title>
</head>
<body>
<div class="desktopnav">
<div class="sandwichandscroller">
<button class="sandwich" aria-expanded="false">
<svg class="sandwichsvg" viewBox="0 0 20 20" width="22">
<rect class="line top" width="20px" height="3px" y="3" rx="1.5"></rect>
<rect class="line middle" width="20px" height="3px" y="9" rx="1.5"></rect>
<rect class="line bottom" width="20px" height="3px" y="15" rx="1.5"></rect>
</svg>
</button>
<div class="mobile-nav">
<nav>
<a class="navbaractive" onclick="setTimeout(()=> {closenav()},200);">Map <span class="material-symbols-outlined leftmargin5">map</span></a>
<a href="#">Halls and Labs <span class="material-symbols-outlined leftmargin5">home_work</span></a>
</nav>
</div>
<div class="scroller">
<span>
<br>
EXPLORE<br><br>
ENGAGE<br><br>
EXPERIENCE
</span>
</div>
</div>
<div class="logocont">
</div>
<img src="./Res/amrita_logo.png" class="imglogo">
</div>
<div class="maincont">
<div class="searchcont">
<div class="searchcontainer">
<input list="slocations" name="start" id="start" placeholder="Start Point" class="inputbox">
<div class="scroll-dl">
<datalist id="slocations">
<option value="Police Station">
</option><option value="Burger">
</option><option value="Mall">
</option><option value="Arcade">
</option><option value="Bridge">
</option><option value="Railway Station">
</option><option value="Island">
</option><option value="Store">
</option></datalist>
</div>
<button id="swap" onclick="swapValues()">⇅</button>
</div>
<div class="searchcontainer">
<input list="elocations" name="end" id="end" placeholder="Destination" class="inputbox">
<div class="scroll-dl">
<datalist id="elocations">
<option value="Police Station">
</option><option value="Burger">
</option><option value="Mall">
</option><option value="Arcade">
</option><option value="Bridge">
</option><option value="Railway Station">
</option><option value="Island">
</option><option value="Store">
</option></datalist>
</div>
<button id="search">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#e8eaed"><path d="M647-440H160v-80h487L423-744l57-56 320 320-320 320-57-56 224-224Z"/></svg>
</button>
</div>
<div id="morecontrols" class="morecontrolss">
<button id="clearSearch" onclick="clearSearch()">X</button>
<button id="originalPos" class="moreControls" onclick="originalPos()"><span class="material-symbols-outlined">autorenew</span></button>
<button id="rotate90" class="moreControls" onclick="rotate90()"><span class="material-symbols-outlined">rotate_90_degrees_ccw</span></button>
<button id="mapNavInfo" class="moreControls-right" onclick="mapNavInfo()"><span class="material-symbols-outlined">info</span></button>
</div>
<div id="navigator" class="navigators">
<div id="dirImage"><span id="dirArrow" class="material-symbols-outlined dirArrow">arrow_upward</span></div>
<div id="ddiv">
<div id="dircont">
<div id="direction" class="direction" style="display: inline;"></div>
<div id="btncontainer">
<div id="dirbackbtn" onclick="goBackDir()">
<p style="margin:auto;">Back</p><span class="material-symbols-outlined">undo</span>
</div>
<div id="dirnextbtn" onclick="showDir()">
<p style="margin:auto;">Next</p><span class="material-symbols-outlined" style="margin:auto;">done</span>
</div>
</div>
</div>
</div>
</div>
<div id="placescontainer" class="placecont">
<div id="placestitlecontainer" class="placetcont">
<h2>On your way...</h2>
</div>
<div class="deskplacebg">
<div id="places" class="places"></div>
</div>
<template id="placetemplate" class="placetemplate">
<div class="place">
<div class="placeimg"><img src="#" alt="Image"></div>
<div class="placetxt">
<div class="placetitle">
<p class="ptext">...</p>
</div>
<div class="placedesc">
<p class="ptext">...</p><span class='more' onclick="">...more</span>
</div>
</div>
</div>
</template>
</div>
</div>
<div class="mapcont">
<div id="map">
<canvas id="canvas"></canvas>
<div id="compass" onclick="compassNorth()"></div>
</div>
<div class="distanceCont">
<span class="material-symbols-outlined" style="color:#fff;font-size:24px">
distance
</span>
<span id="distance">
</span>
</div>
</div>
<div class="deskmorecontrolss">
<button id="clearSearch" onclick="clearSearch()">X</button>
<button id="originalPos" class="moreControls" onclick="originalPos()"><span class="material-symbols-outlined">autorenew</span></button>
<button id="rotate90" class="moreControls" onclick="rotate90()"><span class="material-symbols-outlined">rotate_90_degrees_ccw</span></button>
<button id="mapNavInfo" class="moreControls-right" onclick="mapNavInfo()"><span class="material-symbols-outlined">info</span></button>
</div>
</div>
<div id="navigator" class="navigators">
<div id="dirImage"><span id="dirArrow" class="material-symbols-outlined dirArrow">arrow_upward</span></div>
<div id="ddiv">
<div id="dircont">
<div id="direction" class="direction" style="display: inline;"></div>
<div id="btncontainer">
<div id="dirbackbtn" onclick="goBackDir()">
<p style="margin:auto;">Back</p><span class="material-symbols-outlined">undo</span>
</div>
<div id="dirnextbtn" onclick="showDir()">
<p style="margin:auto;">Next</p><span class="material-symbols-outlined" style="margin:auto;">done</span>
</div>
</div>
</div>
</div>
</div>
<dialog id="confirmfinish">
<span class="material-symbols-outlined close" onclick="closeFinish()">close</span>
<span id="done" class="material-symbols-outlined">task_alt</span>
<p id="confirmtxt">You've successfully reached your destination.</p>
<div id="finishbtn" onclick="location.reload()">
<p style="margin:auto;">Finish</p>
</div>
</dialog>
<div id="placescontainer" class="placecont">
<div id="placestitlecontainer" class="placetcont">
<h2>On your way...</h2>
</div>
<div id="places" class="places"></div>
<template id="placetemplate" class="placetemplate">
<div class="place">
<div class="placeimg"><img src="#" alt="Image"></div>
<div class="placetxt">
<div class="placetitle">
<p class="ptext">...</p>
</div>
<div class="placedesc">
<p class="ptext">...</p><span class='more' onclick="">...more</span>
</div>
</div>
</div>
</template>
</div>
<dialog id="moreinfo">
<span class="material-symbols-outlined close" onclick="closeMore()">close</span>
<div id="moreinfotitle">
<h2></h2>
</div>
<div class="wrapper">
<i id="left" class="fa-solid fa-angle-left"></i>
<div class="carousel">
<img src="" alt="img" draggable="false">
<img src="" alt="img" draggable="false">
<img src="" alt="img" draggable="false">
</div>
<i id="right" class="fa-solid fa-angle-right"></i>
</div>
<p id="moreinfotext"> </p>
</dialog>
<script defer src="./otherfunctions.js"></script>
<script src="./script.js"></script>
<script src="./places.js"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/fabric.js/4.3.1/fabric.min.js">
</script>
<script src="./zoomscript.js"></script>
<script src="./carousel.js"></script>
<script src="./navbar.js"></script>
</body>
</html>