Skip to content

Instantly share code, notes, and snippets.

@schafeld
Created October 12, 2013 14:13
Show Gist options
  • Save schafeld/6950423 to your computer and use it in GitHub Desktop.
Save schafeld/6950423 to your computer and use it in GitHub Desktop.
A simple script describing a quiz. Meant to be loaded by remote quiz software.
var quiz = [
{
ques: "Silver", //question
ans: "Ag", // answer
ansInfo : "<br/>More info <a href='http://www.periodictable.com/Elements/079/index.html'>here</a>" // answer information.
},
{
ques: "Gold.",
ans: "Au",
ansInfo : "Gold-Au <br/>More info <a href='http://www.periodictable.com/Elements/079/index.html'>here</a>"
}
];
var options = {
addToEnd: " has what periodic symbol ?",
quizType: "fill" //Or you can write fillInTheBlank instead of fill.
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment