changed the way time_left is displayed
authornishanth
Mon, 26 Apr 2010 07:48:53 +0530
changeset 55 8d78e1e62424
parent 54 49ef0f046ec5
child 56 d8d4387b3281
changed the way time_left is displayed
templates/display_question.html
--- a/templates/display_question.html	Fri Apr 23 12:27:47 2010 +0530
+++ b/templates/display_question.html	Mon Apr 26 07:48:53 2010 +0530
@@ -5,7 +5,7 @@
 		function dec_counter (){
 				time_left -= 1;
 				if (time_left) {
-						document.getElementById("time_left").value = "Time left: " + time_left + " secs";
+						document.getElementById("time_left").innerHTML = "Time left: " + time_left + " secs";
 						setTimeout("dec_counter()", 1000);
 				}
 				else {
@@ -39,5 +39,5 @@
 {% endif %}
 <input type="submit" value="Submit">
 </form>
-<input type="button" value="Time left: {{question.time_limit}} secs" id="time_left">
+<h2 id="time_left"> Time left: {{question.time_limit}} secs</h2>
 {% endblock %}