-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
111 lines (101 loc) · 4.66 KB
/
index.html
File metadata and controls
111 lines (101 loc) · 4.66 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
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PUP-CEA Parking Garage</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>
<body>
<div class="container">
<header>
<button class="theme-toggle" id="themeToggle">
<i class="fas fa-sun"></i>
<span>Theme</span>
</button>
<h1>PUP-CEA Parking Garage</h1>
<p class="algorithm-note">Using Queue Data Structure (FIFO - First In, First Out)</p>
</header>
<main>
<div class="panels">
<!-- Left Panel - Operations -->
<section class="operations-panel">
<h2>Parking Operations</h2>
<div class="capacity-indicator">
<div class="progress-bar">
<div class="progress" id="capacityBar"></div>
</div>
<p id="capacityLabel">Available Spaces: 10/10</p>
</div>
<div class="input-section">
<label for="plateNumber">License Plate:</label>
<input type="text" id="plateNumber" maxlength="10" placeholder="Enter plate number">
</div>
<div class="button-group">
<button class="btn success" id="parkButton">Park</button>
<button class="btn danger" id="removeButton">Depart</button>
</div>
<div class="button-group" style="margin-top: 1rem;">
<button class="btn primary" id="randomPlateButton" style="grid-column: span 2;">Random Plate</button>
</div>
<div class="explanation-pane" id="explanationPane">
<h3>Explanation</h3>
<p id="explanationText">Details about the queue algorithm and processes will appear here.</p>
</div>
</section>
<!-- Center Panel - Visualization -->
<section class="visualization-panel">
<div class="garage-container">
<div class="entrance">Entrance</div>
<div class="garage-queue" id="garageQueue">
<!-- Parking spots will be generated by JavaScript -->
</div>
<div class="exit">Exit</div>
</div>
<div class="legend">
<div class="legend-item">
<div class="legend-color empty"></div>
<span>Empty Spot</span>
</div>
<div class="legend-item">
<div class="legend-color occupied"></div>
<span>Occupied Spot</span>
</div>
<div class="legend-item">
<div class="legend-color moving"></div>
<span>Moving Car</span>
</div>
</div>
</section>
<!-- Right Panel - Status -->
<section class="status-panel">
<h2>Current Status</h2>
<div class="statistics">
<p id="totalArrivals">Total Arrivals: 0</p>
<p id="totalDepartures">Total Departures: 0</p>
<p id="totalMovements">Total Movements: 0</p>
</div>
<div class="notice-pane" id="noticePaneContainer">
<p id="noticeMessage" class="notice-message">No current notices</p>
</div>
<div class="parked-cars">
<h3>Currently Parked Cars</h3>
<div class="cars-list" id="parkedCarsList">
<p class="empty-message">No cars currently parked</p>
</div>
</div>
</section>
</div>
</main>
</div>
<!-- Modal for messages -->
<div class="modal" id="messageModal">
<div class="modal-content">
<p id="modalMessage"></p>
<button class="btn primary" id="modalClose">OK</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>