Developer: Aldwin Arriola
Table of content
- Purpose of the project
- User stories
- Features
- Typography and color scheme
- Wireframes
- Technology
- Testing
- 7.1 Code Validation
- 7.2 fixed bugs
- 7.3 supported screens and browsers
- Deployment
- via gitpod
- via github pages
- Credits
Purpose of the project
The purpose of this project is for Project #2(JavaScript), this is part of me achieving the Diploma in Full Stack Software Development at Code Institute.besides this it is a General Knowledge, Fun Trivia question quiz game project, it can provide more knowledge for the User.
User stories
- as a User the starting screen have a button that i can click to start the quiz, there should be prompted through a series of at least 10 multiple choice questions that i can answer and should be asked questions 1 after the other, it should only be prompted with 1 question at a time. I should not be able to skip questions, should also be able to see which question i we're on (for instance, "7 out of 10") and their current score ("5 correct). Upon submitting an answer, users should: 1) Receive feedback about their answer. If they were incorrect, they should be told the correct answer. 2) be moved onto the next question (or interact with an element to move on). it will not gain score if the time limit is off and it will show the correct answer. It should be shown my overall score at the end of the quiz. In other words, how many questions i got right out of the total questions asked. and should be able to start a new quiz.
Features
-
History Trivia Quiz
A Simple, Easy to Remember URL:
Start Quiz
- buttons so that the User can start a quiz.
Score and Total of questions
- where the User can see his Score and the number of questions left.
Feedback to answer
- where the User can see the correct answer when his answer is wrong.
Interact with an element to move on
- where the User cannot go to the next question until he answers the question whether it is right or wrong.
Quiz timer
- Add the quiz timer to limit the time your respondents will have to complete each question. This way you can ensure that the user will not have enough time to search the answers on the web. You'll find this feature in the Extra Options tab at the Quiz options section.
Timer Off
- Display correct answer.
- User will not gain correct score.
View correct answer
- When user selected wrong answer, it will automatically display correct answer.
- correct answer with a tick
- wrong answer with a xmark
Result at end of quiz
- Users score will be shown in the end of the quiz, failing score will note "Try Again" Passing score will note "Nice" and Perfect and greater than passing score will note "Congrats!".
-
This website is mobile friendly or responsive design that fits standard screen sizes.
-
Future features
- A background music.
- More history trivia questions.
Typography and color scheme
Typography
- I used Roboto fonts in this project with fall back being Sans-serif. This Font is simple and adapted to the website and it is linked to the CSS document via @import.
Color Scheme
- In this website I used black #000000 for the Fonts and white #FFFFFF for the text shadow. I also used different colors for the style of the buttons and other backgrounds. like Chocolate tradition #783205 as the main color of the buttons to get its golden style. next are the other colors I used.Alice Blue#F0F8FF,Dark Cornflower #004085, Beau Blue #CCE5FF, Forest Green Web #23903C, Crimson UA #A42834, Lincoln Green #155724, and Persian Plum #721C24. other colors not mentioned are border color and box shadow. i used these colors to match the theme of the website.
Wireframes
- Balsamiq - i used balsamiq to create wireframes for my project.
Technology
Languages used
- HTML5
- CSS3
- JavaScript
Others
- Am I Responsive - - online tool used to create mockup to present responsive design of this project.
- Coolors.co - used to create color palette.
- Fontawesome - where i import font icons for this project.
- Google Fonts - where i import and use font-style for this project.
- Git - Git was used for version control by utilizing the Gitpod terminal to commit to Git and Push to GitHub.
- Gitpod - IDE used to code the project.
- GitHub - GitHub is used to store the project's code after being pushed from Git.
- Visual Studio Code for Windows - IDE used to code the project.
- Unsplash - for the webpage main background image.
- [Windows Snipping Tool] - used to save the screen shot.
Testing
7.1 Code Validation
- JS Hint - used to check JavaScript codes.
- W3C CSS Validation Service - used to validate the project css.
- Nu Html Checker - used to check the project html.
Index.html
7.2 fixed bugs
- i had a problem with the title box where even if i click start qiuz it doesn't disappear, which it should disappear.
- to solve this problem i simply change the:
- titleBox_rmv.classList.remove("title_box"); into titleBox_rmv.style.display = "none";
- titleBox_rmv.classList.add("title_box"); into titleBox_rmv.style.display = "block";
Lighthouse report
7.3 supported screens and browsers
-
Supported browsers
- Google Chrome
- Microsoft Edge
- Safari
-
Supported screens
- Such a viewport was obtained from the am i responsive website where it was used to have an appropriate size for responsive design.
Deployment
-
via gitpod
- go to and log in to github.
- after login. on the top right side of the page next to the bell icon click on the "+" and select "New repository".
- now i can create a new repository. put repository template, repository name, its description and other options, after that just go to the bottom and press "Create repository" and then it take me to gitpod.
-
via github
- go to and log in to github.
- go to repository and choose Project-2.
- after that head to setting.
- find and click "Pages" in the Code and Automation column.
- select "deploy from a branch" in Source, select "main" and "root" in Branch and save.
- click the given weblink araldwin.github.io/project-2/.
Credits
- W3C School - for more knowledge that I learned.
- Code institute README.md Template
- Google images for the background
Acknowledgements
- Mr. Rohit to my mentor
- Student Support
- Slack community
- Code institute
Disclaimer
- History Trivia quiz was created for educational purpose only.