Giter Club home page Giter Club logo

f1-quizgame's Introduction

F1-QuizGame

Formula 1 Quiz is made to test the knowledge of Formula 1 enthusiasts of all ages in a quick and simple way with 10 questions. The answers are shown if answered incorrectly. (Main Quiz Page) - https://renaldas0.github.io/F1-QuizGame/ am-i-responsive

Features

  • Front Page

    • The first thing to load up for the user is the introduction page which features a start button and text explaining to press start to begin the quiz.

    • Clicking on the header will take the user back to the load up page.

    • The background behind the quiz is an image based on Formula 1 to match the theme of this quiz and it covers the entire page. start-page

    • Responsive feature for mobile devices makes the buttons align under each other. phone-screenshot

  • Quiz Page

    • The quiz page itself is a very similar layout as the opening page

    • Consists of a header, Question, 4 answer buttons, a score tracker , next and restart buttons.

    • This quiz has a total of 10 questions and the next will only show if an answer has been selected. quiz-page

    • If answered correctly then the background colour of the quiz container changes to green and a text appears to say it is correct.

    • With every correct answer the score count goes up by 1. Correct answer f1

    • If answered incorrectly then the background colour changes to red and the text reads "You got this one wrong . The correct answer was (correct answer). Wrong answer colour f1

  • Navigation

    • The header will take the user back to the start page if clicked.

    • The start button will load up the quiz page.

    • Next button will only work if an answer is selected and will then display the next question until it reaches the last one. Select answer alert f1

    • Once all 10 questions are answered an alert will show up to inform the user of the next step.

    • The final score is also displayed in the alert message Final-score-alert

    • The restart button will take the user back to the first question of the quiz.

Testing

  • I have tested that this website is responsive, looks good and works as intended on the different standard screen sizes, using the devtools device toolbar in Google Chrome.
  • I have tested that this website works in different browsers: Chrome, Safari, Firefox.
  • I have confirmed that the quiz is fully functional. The different buttons do what they're supposed to do and trigger their respective functions.
  • I have also checked the lighthouse statistics for the game Lighthouse screenshot f1
  • I also passed the website through responsinator to check the responsiveness on different devices and it looks good.

Validator Testing

  • HTML

  • CSS

  • JavaScript

  • Metrics

    • There are 3 functions in this file.
    • Function with the largest signature take 1 arguments, while the median is 0.
    • Largest function has 16 statements in it, while the median is 11.
    • The most complex function has a cyclomatic complexity value of 9 while the median is 3.
  • There are 13 warnings issued -'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

    • 'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
    • 'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
    • 'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
    • 'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
    • 'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
    • 'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
    • 'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
    • 'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
    • 'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
    • 'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
    • 'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
    • 'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

Bugs encountered

  • Encountered a bug where the answer buttons would move out of alignment if the text inside is longer on smaller width devices.
  • I fixed this bug by using media quesries and setting the buttons to display underneath one another on devices with a screen width below 440px.

Unfixed Bugs

  • There are No unfixed bugs.

Deployment

  • The site was deployed to GitHub pages. The steps to deploy are as follows:
  • In the GitHub repository, navigate to the Settings tab
  • From the source section drop-down menu, select pages
  • Then select the main branch
  • Once the main branch has been selected, the page will be automatically be refreshed and successfully deployed.

The live link can be found here: (F1-QuizGame) https://renaldas0.github.io/F1-QuizGame/

Credits

Content

  • Some inspiration was taken from a youtube tutorial by Web Dev Simplified for the change of background colours link - https://www.youtube.com/c/WebDevSimplified
  • I also referred back to the javaScript essentials lessons for the coding of functions.

Media

f1-quizgame's People

Contributors

renaldas0 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.