Type-in/Written Quiz

(Shmuel) #1

Hi , i would very appreciate if somebody could give me directions on how to build a quiz ,
where user need to type the name of the color he sees, and then press check button and then timeline is triggered .
(From what i saw only html is not enough , looks like it needs to be connected with javascript )

Make a web test(education) website using Hype 3 and Javascript
(๐•„๐•š๐•”๐•™๐•’๐•–๐• ๐”พ๐•’๐•ฃ๐• ๐•—๐•’๐•๐• ) #2

This exact example is in โ€œA Book About Hypeโ€ except that the user clicks a button with their favorite color. Then, the scene is loaded.

Iโ€™m on my iPad right now, so Iโ€™m describing the process from memory. Basically, youโ€™d create an on click / tap event. When that event is triggered, JavaScript is run. In your new JavaScript function, the โ€œelementโ€ ID can be used as a parameter in a Hype API function.

Thereโ€™s one for switching scenes. So, if a โ€œredโ€ element was pressed, the โ€œredโ€ scene can be loaded. The trick is to match your element names with the scene names.


Hi Shmuel:

Here is one way to create a quiz: Howto: Simple Quiz Example

There are many examples on the forums with different ways to tabulate answers and represent questions (search for quiz at the top).

Also, you may be interested in this blog post: http://blog.tumult.com/2014/04/16/creating-interactive-educational-content/

(Shmuel) #4

Thanks You,
I am looking for something like this ( i created something nearlyโ€ฆclosely)
test typing in .hype.zip (236.8 KB)

Type in quiz , help finishing