Skip to content

wonjong2/Week4_Code_Quiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Week4_Code_Quiz

Description

This Web site provides Coding Quiz about JavaScript and manages Top10 highscore lists.

  • Make five major containers for different screens in HTML file
    • .header-container : It includes elements for "View Highscore" and "Time: XX"
    • .firstpage-container : It includes elements to configure the first screen shown when a user opens the web site.
    • .quiz-container : It includes elements to configure the quiz screen
    • .result-container : It includes elements to configure the final result screen
    • .highscore-container : It includes elements to configure the highscore screen
  • To show proper contents on the screen, set 'display' property of specific containers to 'flex' and other containers to 'none'
    • For example, in the quiz screen, only .header-container and quiz-container have 'display: flex' and others have 'display: none'
  • Basic style for each elements are defined in CSS file
  • Use JavaScript to change contents on the screen according to user input
  • Use setInterval()/setTimeout() to execute time related functions
  • Store and load top10 highscore data in localStorage
  • Use event listener to interact with various events
  • Dynamically add li elements according to the length of the highscore list
  • Seperated js file("data.js") contains data of quiz questions

Web Site's URL

Git Hub URL for this Web Site

Usage

  • When a user clicks "Start Quiz" button, Coding Quiz starts and the timer runs

  • A user can select the one among the multi-choice shown on the screen

    • Background color of the item changed when the mouse is over it.
    • When a user selects the one, the result of whether the answer is correct or not is displayed for 0.5sec
    • If the incorrect answer, timer value decreased by 10sec
  • When all questions are answered or the timer reaches 0, it shows your score and request you to enter your initials

    • If a user clicks "Submit" button without any input, it requests you to enter initials until you fill something.
  • When a user clicks "View highscore" or clicks "Submit" button with initials, it shows the Top10 highscore lists

    • A user can click "View Highscore" on various places like the first screen, the quiz screen and the final result screen
    • Therefore, if a user clicks "Go back" button, it leads to previous screen. (except for the case of clicking "Submit" button with initials)
  • Simple Demo : https://watch.screencastify.com/v/pysN5OX8p5OMCKZjnfAX

Please see the screenshots on this Website.

  • The first screen when user opens this web site.
    First

  • The quiz screen.
    quiz

  • The final result screen
    Result

  • The highscore screen
    highscore

License

MIT License

Copyright (c) [2022] [Wonjong Park]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors