summaryrefslogtreecommitdiff
path: root/yaksh/static
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/static')
-rw-r--r--yaksh/static/yaksh/js/add_quiz.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/yaksh/static/yaksh/js/add_quiz.js b/yaksh/static/yaksh/js/add_quiz.js
index 3da4d5c..a026ec0 100644
--- a/yaksh/static/yaksh/js/add_quiz.js
+++ b/yaksh/static/yaksh/js/add_quiz.js
@@ -7,6 +7,12 @@ function test()
{
document.getElementById("submit").innerHTML = "Save";
}
+ var template = "<p id='rendered_text'></p>"
+ $(template).insertBefore("#id_instructions");
+ $('#id_instructions').bind('keypress', function (event){
+ document.getElementById('rendered_text').innerHTML = document.getElementById('id_instructions').value ;
+ });
+ document.getElementById('rendered_text').innerHTML = document.getElementById('id_instructions').value ;
}
String.prototype.beginsWith = function (string) {