(click to expand)
https://annadruzhinina.github.io/Trivia-Game-UI/
This is a front-end web application developed as my first personal project while studying at General Assembly.
Trivia is a type of game in which players are asked questions about different topics and they have to get as many correct answers as possible. Trivia contests are usually organized as part of events, parties and as pub entertainment. Normally contestants are organized in teams and the team who gets the higher score wins.
Unfortunately every year we grow a bit older and we realize that our mind is not as sharp and fast as it used to be. If we don’t train our brain, it gets harder for us to remember, concentrate and learn new skills and information. Quiz questions can help prevent this process to go so fast as it serves as a form of exercise for our brain.
- JavaScript
- HTML/CSS
- Render app in browser. Hosted on github pages;
- Include seperate HTML/CSS/JavaScript files;
- Use JavaScript for DOM manipulation;
- Use semantic, valid markup for HTML and CSS (must pass validation without errors);
- Have properly indented HTML, CSS & JavaScript. In addition, vertical whitespace needs to be consistent;
- No remaining dead and/or commented out code (code that will never be called);
- Have functions and variables that are named sensibly. Remember, functions are typically named as verbs, and variables (data) are named as nouns;
A beautiful, responsive, customizable accessibility (WAI-ARIA) replacement for JavaScript popup boxes.
This:
npm install sweetalert2
Or grab from: jsdelivr CDN ;
This:
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
3. Pick one answer (the button's background is changed to grey color ) and click on the "Check Answer" button:
- if the answer is correct: the button's background is changed to green color, starScore update +5, question +1/10, and appear button "Next Question";
- if the answer is incorrect: the button's background is changed to red color, starScore dosen't update, question +1/10, and appear button "Next Question";
- Make this app a team game as well;
- Add timer;
- If the player selects the correct answer, show a screen congratulating them for choosing the right option. After a few seconds, display the next question -- do this without user input;
- Display page where users can see:
- the teams or individual score depends which tipe of game was selected at the begining;
- the time that each team(user) spent on the game;
- correct and incorrect answers by team(user);
- Calculate the winning score using each team's total score and time spent.