-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
89 lines (78 loc) · 3.79 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
<!DOCTYPE html>
<html>
<head>
<title>Toilet Finder Beta</title>
<!-- Include Leaflet CSS -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" />
<!-- Include Bootstrap CSS (for modal) -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link type="text/css" rel="stylesheet" href="./css/styles.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>Toilet Finder Beta</h1>
<div class="container">
<ul id="toiletList"></ul>
<div id="map"></div>
</div>
<div id="toiletDetails" style="display: none;"></div>
<div id="search-container">
<input type="text" id="location-search" placeholder="Search for a place">
<button class="btn btn-primary" id="search-button">Search</button>
</div>
<button class="btn btn-primary" id="locateUser">Near Me</button>
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
<!-- Include Bootstrap JavaScript (for modal) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script type=module src="./js/main.js"></script>
<!-- Button to open the results modal -->
<button type="button" class="btn btn-primary" id="listResultsBtn">List Results</button>
<div class="modal fade" id="resultsModal" tabindex="-1" role="dialog" aria-labelledby="resultsModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="resultsModalLabel">Results</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body custom-modal-body">
<ul id="resultsList" class="list-group">
<!-- Each result has its own box -->
<li class="list-group-item result-box">
<div class="result-content">
<!-- Result content goes here -->
</div>
</li>
<!-- Repeat the above structure for each result -->
</ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal for Toilet Details -->
<div class="modal fade" id="toiletModal" tabindex="-1" role="dialog" aria-labelledby="modalTitle" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modalTitle">Toilet Name</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" id="modalBody">
<!-- Toilet details will be populated here -->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</body>
</html>