Skip to content

Commit

Permalink
web-UI merged from master
Browse files Browse the repository at this point in the history
  • Loading branch information
bvds committed Jul 3, 2009
1 parent 6632a85 commit 1a018c1
Show file tree
Hide file tree
Showing 125 changed files with 10,321 additions and 113 deletions.
2 changes: 1 addition & 1 deletion solutions
Submodule solutions updated from a8a3b7 to 2701a5
83 changes: 83 additions & 0 deletions web-UI/Documentation/AsuDocs/hint.html
@@ -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 added web-UI/Documentation/AsuDocs/narrative-22.pdf
Binary file not shown.

0 comments on commit 1a018c1

Please sign in to comment.