From c041be8c04ffbfc298b4b168068c00f6d175b22f Mon Sep 17 00:00:00 2001 From: khalid586 Date: Sun, 18 Feb 2024 18:11:30 +0600 Subject: [PATCH] booked seat information enhanced --- index.html | 11 ++++++++--- script.js | 5 +++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 08fa7ed..1aaa800 100644 --- a/index.html +++ b/index.html @@ -62,9 +62,14 @@
-

Seats 0

-

Selected seats

-

+
+

Seat 0

+

Class

+

Price

+
+
+

+

Total : 0


diff --git a/script.js b/script.js index e433bc9..adca9ea 100644 --- a/script.js +++ b/script.js @@ -21,8 +21,9 @@ allSeats.forEach(seats => document.getElementById('coupon-btn').removeAttribute('disabled'); } - const newSeat = document.createElement('p'); - newSeat.innerText = `You have selected ${seat.id}`; + const newSeat = document.createElement('div'); + newSeat.classList.add('flex','justify-between'); + newSeat.innerHTML = `

${seat.id}

Economy

550

`; document.getElementById('selected').appendChild(newSeat); let seatsLeft = parseInt(document.getElementById('remaining').innerText);