Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. External Javascript An external Javascript http://courses.cs.cityu.edu.hk/cs2204/cw3/cinemas.js must be used in the Now Showing and Ticket pages. This script provides a function getCinemas() to
2. External Javascript An external Javascript http://courses.cs.cityu.edu.hk/cs2204/cw3/cinemas.js must be used in the Now Showing and Ticket pages. This script provides a function getCinemas() to return information about cinemas and show date time. You also need to define another external Javascript movies.js in which a function getMovies() can be called to return the movie information you have used in CW1 and CW2. Specifications of the functions getMovies() and getCinemas() are in the Appendix. During testing, you may use a local copy of cinemas.js and edit it to give more test data. The above link must be used in your final submission and different data may be used to test your pages. 3. Movies Page prepare your external Javascript movies.js 4. using the function getMovies(), generate the HTML for the Now Showing and Up Coming lists of movies. The CSS styles of the page should be maintained as in CW2 you cannot assume and hard-coded the number of movies in your script set up and play the video using information for the 1st movie in the Now Showing list at the end of video playing, wait for 2 seconds and switch to the next movie in the Now Showing list; continue with the Up Coming list or go back to the 1st movie if necessary when a movie thumbnail (image) is clicked, the current showing video will be stopped and the video of the clicked movie will be shown; at the end of it, continue showing the next one in the list after waiting 2 seconds Now Showing Page using the function getCinemas(), generate the Select Cinema drop down box and corresponding movies and show date time available for the first cinema when another cinema is selected, movies and their shows will be updated the movie name and show index (see appendix I) will be sent to Ticket page when the Buy Ticket button is clicked layout and styles done in CW2 must be preserved
Step by Step Solution
There are 3 Steps involved in it
Step: 1
a Probability of Waiting in Line Pw We dont have the specific value of I arrival rate every 3 ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started