Replace dynamite code with tested version
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<table style="display:inline; vertical-align:middle;">
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" name="input_${id}" id="input_${id}" value="${value}" size="${size if size else ''}" />
|
||||
<input type="text" name="input_${id}" id="input_${id}" value="${value}" class="math" size="${size if size else ''}" />
|
||||
</td>
|
||||
<td>
|
||||
<span id="answer_${id}"></span>
|
||||
@@ -30,24 +30,4 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
##
|
||||
## javascript for dynamic math: add this math element to the MathJax rendering queue
|
||||
## also adds to global jaxset js array
|
||||
##
|
||||
<script type="text/javascript">
|
||||
MathJax.Hub.queue.Push(function () {
|
||||
math = MathJax.Hub.getAllJax("display_${id}")[0];
|
||||
if (math){
|
||||
jaxset["${id}"] = math;
|
||||
math.Text(document.getElementById("input_${id}").value);
|
||||
// UpdateMathML(math,"${id}");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
% if msg:
|
||||
<br/>
|
||||
<span class="debug">${msg|n}</span>
|
||||
% endif
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user