Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
125 changed files
with
10,321 additions
and
113 deletions.
There are no files selected for viewing
Submodule solutions
updated
from a8a3b7 to 2701a5
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | ||
"http://www.w3.org/TR/html4/strict.dtd"> | ||
<html> | ||
<head> | ||
<title>Example multiple choice</title> | ||
<style type="text/css"> | ||
@import "dojotoolkit/dojo/resources/dojo.css"; | ||
</style> | ||
|
||
<!-- required: the default dijit theme: --> | ||
<link id="themeStyles" rel="stylesheet" href="dojotoolkit/dijit/themes/tundra/tundra.css"> | ||
|
||
<link rel="stylesheet" type="text/css" href="http://math.etsu.edu/LaTeXMathML/LaTeXMathML.standardarticle.css" /> | ||
|
||
<!-- need to parse dojoType after creating toolbar --> | ||
<script src="dojotoolkit/dojo/dojo.js" type="text/javascript"></script> | ||
<script> | ||
dojo.require("dijit.dijit"); // optimize: load dijit layer | ||
dojo.require("dijit.form.Button"); | ||
|
||
function getHint() { | ||
console.log("hint button"); | ||
hinter=document.getElementById('hint'); | ||
document.getElementById('hint').innerHTML = "Think harder about \\[\\beta \\int_0^\\infty \\lambda(x) dx\\]"; | ||
try { | ||
hinter = LaTeXDivsAndRefs(LaTeXpreProcess(hinter)); | ||
} catch(err) { | ||
alert("Unknown Error: Defaulting to Original LaTeXMathML"); | ||
} | ||
AMprocessNode(hinter,false); | ||
} | ||
|
||
function getAnswer() { | ||
console.log("answer button"); | ||
hinter=document.getElementById('hint'); | ||
hinter.innerHTML = "That is correct for $\\alpha^2$."; | ||
try { | ||
hinter = LaTeXDivsAndRefs(LaTeXpreProcess(hinter)); | ||
} catch(err) { | ||
alert("Unknown Error: Defaulting to Original LaTeXMathML"); | ||
} | ||
AMprocessNode(hinter,false); | ||
} | ||
|
||
function init() { | ||
|
||
} | ||
dojo.addOnLoad(init); | ||
</script> | ||
|
||
<script type="text/javascript" src="http://math.etsu.edu/LaTeXMathML/LaTeXMathML.js"></script> | ||
|
||
</head> | ||
<body class="tundra"> | ||
test multiple choice using <a href="http://math.etsu.edu/LaTeXMathML/">LateXMathML</a> | ||
<table align="center"> | ||
<tr> | ||
<td colspan="2"> | ||
What is $\sqrt{\beta} \int_0^\infty f(x)\, dx$? Use any notation that is comfortable. | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<table> | ||
<tr> <td> | ||
<input type="radio" name="a" value="1"> I think it is $\pi$ | ||
</td></tr><tr><td> | ||
<input type="radio" name="a" value="2"> Maybe $\pi^2$ <br> | ||
</td></tr><tr><td> | ||
<button dojoType="dijit.form.Button" onclick="getAnswer()"> | ||
Answer</button> | ||
</td></tr></table> | ||
</td> | ||
<td> | ||
<button dojoType="dijit.form.Button" onclick="getHint()"> | ||
Hint</button><br> | ||
<div id="hint"></div> | ||
</td></tr> | ||
</table> | ||
See also | ||
<a href="http://www.math.union.edu/~dpvc/jsMath/">JsMath</a>. | ||
</body> | ||
</html> |
Binary file not shown.
Oops, something went wrong.