Here is a working live demo: https://mhevyk.github.io/pure-js-quiz/
Quiz-game is a simple app for studying foreign languages. It allows us to fill in a vocabulary with words and study them, completing quizes and analysing their results.
- HTML5
- CSS3
- JS ES6+
- Webpack
- Eslint
- Clone the repo
git clone https://github.com/mhevyk/pure-js-quiz.git
- Install NPM packages
npm install
- Build the project
npm run build
- Run file
public/index.html
using web browser
Records should follow these rules:
- word must be unique
- word can`t contain a comma symbol
- translation can`t contain a comma symbol
- word and translation of a single record should not be equal
- translations of a single record should not be equal
If a word appears multiple times, it`s translations will be added to existing record's translations
We can add multiple records using text file. To import file correctly follow these steps:
- Select the group to which you want to add new words. If group doesn`t exist, create it.
- Select symbol, which separates word and translations in your file. App supports separators
:
,>
and=
. - Import text file, which has a content, that corresponds the following syntax:
word1 <separator> translation1, translation2, ...
word2 <separator> translation1
Text file content should also correspond adding record rules. Spaces between word, separator and translations doesn't matter.
We use a <separator>
to separate word from translation and to separate records we need to write them from a new line.
Example of correct text file content with separator >
:
apple > яблуко, яблучний
pine > груша