From b5eac421d8ccc21902a182fe87416d9322a3be67 Mon Sep 17 00:00:00 2001 From: ichuang Date: Fri, 1 Jun 2012 22:53:57 -0400 Subject: [PATCH] template for textinput dynamath (separate from textinput.html) --- templates/textinput_dynamath.html | 51 +++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 templates/textinput_dynamath.html diff --git a/templates/textinput_dynamath.html b/templates/textinput_dynamath.html new file mode 100644 index 0000000000..12021fe692 --- /dev/null +++ b/templates/textinput_dynamath.html @@ -0,0 +1,51 @@ +### +### version of textline.html which does dynammic math +### +
+ +
+ + + + + + % if state == 'unsubmitted': + + % elif state == 'correct': + + % elif state == 'incorrect': + + % elif state == 'incomplete': + + % endif + +
+ `{::}` + + +
+## +## javascript for dynamic math: add this math element to the MathJax rendering queue +## also adds to global jaxset js array +## + + + % if msg: +
+ ${msg|n} + % endif +