-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
120 lines (110 loc) · 5.22 KB
/
index.html
File metadata and controls
120 lines (110 loc) · 5.22 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TrackYourBus - Telangana TSRTC Live Bus Tracking</title>
<meta name="description" content="Track Telangana State Road Transport Corporation (TSRTC) buses in real-time across all 33 districts. Find routes, check ETAs, and monitor bus locations instantly.">
<link rel="stylesheet" href="style.css">
<script
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDh8EU4tGdooXfJdsKE14hMNZy-aCeOKig&callback=initMap"
async
defer>
</script>
</head>
<body>
<header class="header">
<div class="header-content">
<div class="header-title">
<div class="header-icon">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7v10m8-10v10M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z" />
</svg>
</div>
<div>
<h1>TrackYourBus</h1>
<p class="header-subtitle">Telangana State Road Transport</p>
</div>
</div>
<div class="current-stop" id="currentStopContainer">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 0 1-2.827 0l-4.244-4.243a8 8 0 1 1 11.314 0z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 1 1-6 0 3 3 0 0 1 6 0z" />
</svg>
<span>Current Stop: <strong id="currentStop"></strong></span>
</div>
</div>
</header>
<div class="district-filter">
<div class="district-scroll" id="districtFilter"></div>
</div>
<div class="search-container">
<div class="search-wrapper">
<svg class="search-icon" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 1 1-14 0 7 7 0 0 1 14 0z" />
</svg>
<input
type="text"
id="searchInput"
class="search-input"
placeholder="Search by route, destination, or district..."
/>
</div>
</div>
<main class="main-content">
<div class="status-bar">
<div class="count-section">
<div class="count-badge" id="busCount">0</div>
<div>
<p class="count-text"><span id="busCountText">Buses</span> Found</p>
<p class="count-subtext" id="districtText">across all districts</p>
</div>
</div>
<div class="live-indicator">
<div class="live-dot"></div>
<span class="live-text">LIVE</span>
</div>
</div>
<div class="bus-list" id="busList"></div>
</main>
<div class="modal" id="busModal">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title" id="modalTitle">Bus Details</h2>
<button class="modal-close" onclick="closeModal()">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
<div class="modal-body" id="modalBody"></div>
</div>
</div>
<div class="modal" id="stopSelectionModal">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title">Select Your Current Stop</h2>
<button class="modal-close" onclick="closeStopSelectionModal()">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
<div class="modal-body">
<p class="modal-label" style="margin-bottom: 1rem;">Choose the bus stop where you are currently waiting.</p>
<div id="stopListContainer">
</div>
</div>
<div class="modal-footer">
<button class="modal-btn btn-secondary" onclick="closeStopSelectionModal()">Cancel</button>
<button class="modal-btn btn-primary" onclick="confirmStopSelection()">Confirm Stop</button>
</div>
</div>
</div>
<div class="toast" id="toast">
<div class="toast-title" id="toastTitle"></div>
<div class="toast-description" id="toastDescription"></div>
</div>
<script src="script.js"></script>
</body>
</html>