-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-drivers.html
More file actions
65 lines (59 loc) · 2.05 KB
/
test-drivers.html
File metadata and controls
65 lines (59 loc) · 2.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test Driver Portal</title>
<style>
body { font-family: Arial, sans-serif; padding: 20px; }
.booking { border: 1px solid #ccc; margin: 10px 0; padding: 10px; }
</style>
</head>
<body>
<h1>Driver Portal Test</h1>
<div id="status">Loading...</div>
<div id="bookings"></div>
<script>
console.log('Script starting...');
document.getElementById('status').innerHTML = 'Script loaded';
// Simple test data
const testBookings = [
{
pnr: '7561',
time: '09:00',
customerName: 'Test Customer 1',
pickupLocation: 'Airport',
dropoffLocation: 'Hotel',
passengers: 2,
driver: 'Gary Bell',
price: 57.50
},
{
pnr: '8215',
time: '10:00',
customerName: 'Test Customer 2',
pickupLocation: 'Hotel',
dropoffLocation: 'Airport',
passengers: 3,
driver: 'Shawn Olsen',
price: 79.20
}
];
console.log('Test bookings:', testBookings);
const container = document.getElementById('bookings');
testBookings.forEach(booking => {
const div = document.createElement('div');
div.className = 'booking';
div.innerHTML = `
<strong>${booking.pnr}</strong> - ${booking.time}<br>
${booking.customerName}<br>
${booking.pickupLocation} → ${booking.dropoffLocation}<br>
PAX: ${booking.passengers} | Driver: ${booking.driver} | $${booking.price}
`;
container.appendChild(div);
});
document.getElementById('status').innerHTML = `Loaded ${testBookings.length} test bookings`;
console.log('Test complete');
</script>
</body>
</html>