Need help with this. I attached how it should look Declare the questionList variable, storing in it the node list created by the querySelectorAll() method using “div#quiz input” as the CSS selector. Add an onclickevent handler to the startQuiz object, running an anonymous function that sets the class attribute of the overlay object to “showquiz” and repeats the countdown() function every 1 second (every 1000 milliseconds), storing the id of the timed command in the global timeID variable you declared in Step 3. Create the countdown()function to u
Need help with this. I attached how it should look Declare the questionList variable, storing in it the node list created by the querySelectorAll() method using “div#quiz input” as the CSS selector. Add an onclickevent handler to the startQuiz object, running an anonymous function that sets the class attribute of the overlay object to “showquiz” and repeats the countdown() function every 1 second (every 1000 milliseconds), storing the id of the timed command in the global timeID variable you declared in Step 3. Create the countdown()function to u
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
100%
Need help with this. I attached how it should look
- Declare the questionList variable, storing in it the node list created by the querySelectorAll() method using “div#quiz input” as the CSS selector.
- Add an onclickevent handler to the startQuiz object, running an anonymous function that sets the class attribute of the overlay object to “showquiz” and repeats the countdown() function every 1 second (every 1000 milliseconds), storing the id of the timed command in the global timeID variable you declared in Step 3.
- Create the countdown()function to update the quiz clock. Within the function create an if else statement that tests whether the value of the timeLeft variable is equal to 0. If it is equal to 0, do the following: 0. Use the clearInterval()method to cancel the timed command with the variable timeID.
- Declare a variable named totalCorrect and set it equal to the value returned by the checkAnswers()
- If totalCorrect is equal to the length of the correctAnswers array then display an alert window congratulating the student on getting 100%, otherwise do the following:
- Display an alert window indicating the number of incorrect answers out of the total number of questions on the quiz,
-
-
-
- change the value of the timeLeft variable to quizTime,
- set quizClock.value to the value of the timeLeft variable, and
- change the class attribute of the overlay object to “hidequiz”.
-
-
- Otherwise, if the timeLeft variable is not equal 0, then:
- Decrease the value of timeLeft by 1.
- Set quickClock.value to the value of the timeLeft variable.
- Run the quiz within the allotted time. Verify that the clock counts down the time remaining every second. At the end of the time limit, confirm that the quiz catches your mistakes and reports the number of correct answers out of the total number of questions. Verify that when you get all the answers correct, a congratulatory message is given.
- Increase the value of the timeLimitvariable to 90 and close the file, saving your changes
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 1 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY