###zQuiz
Code: https://github.com/ZJONSSON/zQuiz
(original demo: http://zjonsson.github.com/zQuiz/)
###jQuizMe
code: https://github.com/LarryBattle/jQuizMe
Created
August 27, 2012 18:14
-
-
Save ZJONSSON/3491000 to your computer and use it in GitHub Desktop.
zQuiz rendered with jQuizMe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>zQuiz rendered with jQuizMe</title> | |
<link rel="stylesheet" type="text/css" href="http://jquizme.googlecode.com/hg/releases/pre-release%20of%20jQuizMe%202.2%20fixed/jQuizMe-2.2.css"/> | |
</head> | |
<body> | |
<p>Using jQuery <span id="jqueryVersion"></span>, jQuizMe<span id="jQuizMeVersion"></span> and zQuiz</p> | |
<h2>jQuizMe/zQuiz example</h2> | |
<div id="quizArea"></div> | |
</body> | |
<script src="http://zjonsson.github.com/zQuiz/zQuiz.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> | |
<script src="http://jquizme.googlecode.com/hg/releases/pre-release%20of%20jQuizMe%202.2%20fixed/jQuizMe-2.2.js"></script> | |
<script > | |
var englishWords = [ | |
{word:"abridge",def:"to make shorter",synonyms:["shorten","condense","abbreviate"],antonyms:["expand","enlarge","augment"],"_group":"noun"}, | |
{word:"adherent",def:"a follower, supporter",synonyms:["disciple"],antonyms:["opponent","adversary","critic","detractor"],"_group":"noun"}, | |
{word:"altercation",def:"an angry argument",synonyms:"quarrel",synonyms:["dispute","squabble"],antonyms:["agreement","accord"]}, | |
{word:"cherubic",def:"resembling an angel, sweet and innocent",synonyms:["angelic","seraphic","beatific"],antonyms:["impish","devilish","diabolic","fiendish"]}, | |
{word:"condone",_group:"noun",def:"to pardon or overlook",synonyms:["ignore","wink at","turn a blind eye to"],antonyms:["censure","condemn","disapprove"]}, | |
{word:"dissent",_group:"verb",def:"to disaggree",synonyms:["differ","dispute"],antonyms:["agree","concur"]}, | |
{word:"dissent",_group:"noun",def: "unanimity",antonyms:"harmony"}, | |
{word:"eminent",_group:"adj", def:"famour, outstanding",synonyms:["illustrious","reowned"],antonyms:["obscure","nameless","unsung","lowly"]}, | |
{word:"exorcise",_group:"verb",def:"to drive out by magic",synonyms:["expel","dispel"]}, | |
{word:"fabricate",_group:"verb",def:"to make, manifacture; make up, invent",synonyms:["put together","devise","contrive","concoct"],antonyms:["take apart","undo","destroy","demolish"]}, | |
{word:"irate",_group:"adj",def:"angry",synonyms:["incensed","infuriated","enraged"],antonyms:["calm","composed","cool","unruffled"]}, | |
{word:"marauder",_group:"noun",def:"a raider, plunderer",synonyms:["looter","pirate","freebooter"]}, | |
{word:"obesity",_group:"noun", def:"excessive fatness",synonyms:["serious overweight","extreme corpulence"],antonyms:["emaciation","gauntness","scrawniness"]}, | |
{word:"pauper",_group:"noun",def:"an extremely poor person",synonyms:["destructive person"],antonyms:["millionaire","tycoon"]}, | |
{word:"pilfer",_group:"verb",def:"steal in small quantities",synonyms:["filch","rob","swipe","purloin"]}, | |
{word:"rift",_group:"noun",def:"a split, break, breach",synonyms:["crack","fissuer","gap","cleft"],antonyms:"reconciliation"}, | |
{word:"semblance",_group:"noun",def:"a likeness; outward appearence",synonyms:["appearance","air","aura","veneer"],antonyms:["dissimilarity","contrast","total lack"]}, | |
{word:"surmount",_group:"verb",def:"to overcome, rise above",synonyms:["conquer","triumph over"],antonyms:["be vanquished","be defeated","succumb to"]}, | |
{word:"terminate",_group:"verb",def:"bring to an end",synonyms:["conclude","finish","discontinue"],antonyms:["begin","commence","initiate"]}, | |
{word:"trite",_group:"adj",def:"commonplace, overused, stale",synonyms:["banal","hackneyed","corny"],antonyms:["original","novel","fresh","innovative"]}, | |
{word:"usurp",_group:"verb",def:"to seize and hold by force or without right",synonyms:["seize illegally","commandeer","supplant"]} | |
] | |
$( function($){ | |
var quiz = zQuiz.multi(englishWords).map(function(d) { | |
return { | |
ques : d.qkey+": "+d.qdef+"<br>"+d.akey+"= ?", | |
ansSel:d.candidates, | |
ans : d.adef | |
} | |
}); | |
var lang = { ans : { praise:"Excellent!"}}; | |
$( "#quizArea" ).jQuizMe( quiz, { quizType: "multi" }, lang ); | |
}); | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment