This is a short example of how to use the functionality in CommonHIT. Please inspect this document's source code to see how certain functionality is being achieved.
Here is how to include the YouTube player:
Attributes:
id
class="lll-player"
lllight.js
to insert a YouTube player here.data-video-id
data-log-field
lllight.js
will create
for storing the user's interactions with the video player.
data-name
lllight.js
will use
to expose the scripting functionality of the video player.
For example, you can use JavaScript to .stop()
the playback of a video.
data-width, data-height
commonhit.js
will automatically generate
the required name
and id
attributes and link
the label
-tags to the choices.
textarea
to have workers explain their answers.
Within a div
with class="hit-question"
,
a name
attribute will be generated automatically based on the provided
data-name
-attribute.
class="hit-browser-ua"
class="hit-html5-video-support"
class="hit-screen-resolution"