KO
|
EN
gitlite — search
Search
#python
#typescript
#react
#machine-learning
#hacktoberfest
#rust
#reactjs
#llm
#nextjs
#javascript
#docker
#postgresql
GAMINGS
★ 31
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
bub-multichar
:
bub-multichar is a multicharacter system for the Qbox framework.
eno
:
game engine WIP written in odin
typescript-fundamentals
:
No description available.
graphql-toe
:
GraphQL Throw-On-Error
metrics-drilldown
:
A queryless experience for browsing Prometheus-compatible metrics. Quickly find related metrics without writing PromQL queries.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
GAMINGS
?
Download (.md)
# GAMINGS const container = document.querySelector('.container'); const seats = document.querySelectorAll('.row .seat:not(.occupied)'); const count = document.getElementById('count'); const total = document.getElementById('total'); const movieSelect = document.getElementById('movie'); let ticketPrice = +movieSelect.value; // Update total and count function updateSelectedCount() { const selectedSeats = document.querySelectorAll('.row .seat.selected'); const selectedSeatsCount = selectedSeats.length; const seatIndex = [...selectedSeats].map(seat => [...seats].indexOf(seat)); count.innerText = selectedSeatsCount; total.innerText = selectedSeatsCount * ticketPrice; } // Movie select event movieSelect.addEventListener('change', (e) => { ticketPrice = +e.target.value; updateSelectedCount(); }); // Seat click event container.addEventListener('click', (e) => { if (e.target.classList.contains('seat') && !e.target.classList.contains('occupied')) { e.target.classList.toggle('selected'); updateSelectedCount(); } }); // Confirm Booking function confirmBooking() { const selectedSeats = document.querySelectorAll('.row .seat.selected'); if (selectedSeats.length > 0) { alert("Booking Confirmed! Enjoy the show!"); } else { alert("Please select a seat before confirming the booking."); } }