1.1.4 • Published 2 years ago

@justscreamy/quizzerino v1.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Quizzerino

Are you making a website and need to make a little quiz for the readers? Boy I know the best for you!

You can use Quizzerino to create simple, quick and functioning quiz for your little website.

How to use this?

It is simple, all you need to do is:

  1. Add script tag with src at the end of your body
<script src="https://cdn.jsdelivr.net/npm/@justscreamy/quizzerino@latest"></script>
  1. Create your quiz under that!
<script>
	new Quizzerino(
		'idOfYourEmptyQuizElement',
		'idOfYourOwnSubmitButton',
		'idOfYourElementToShowResults',
		[
			{
				text: 'Question text',
				answers: [
					{ id: 'answerId', text: 'answerText' },
					{ id: 'anotherAnswerId', text: 'anotherAnswerText' },
				],
				correct: 'answerId', // <-- id of correct answer
			}, // <-- you can have multiple questions, just use the same format
		]
	).initialize()
</script>
  1. You are done!

CSS

You can also style the quiz, it uses css classes

ElementClass
the whole questionquestion
all of the answersanswers
the answeranswer
1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago