Skip to content

Commit

Permalink
Added dynamic year in check availability page
Browse files Browse the repository at this point in the history
  • Loading branch information
ygowthamr committed Nov 8, 2024
1 parent dd93e4c commit 8eff957
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion check_availability.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,11 @@ <h3>Bus Ticket</h3>
</body>

<footer>
<p>&copy; 2024 Ticket Marketplace. All rights reserved.</p>
<p>&copy; <span id="currentYear"></span> Ticket Marketplace. All rights reserved.</p>
</footer>
</body>
<script>
document.getElementById("currentYear").textContent = new Date().getFullYear();
const tickets = JSON.parse(localStorage.getItem('tickets')) || [];
document.getElementById('showTickets').addEventListener('click', function () {
const ticketType = document.getElementById('ticketType').value;
Expand Down

0 comments on commit 8eff957

Please sign in to comment.